mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-10 14:05:26 +00:00
feat(mail): enable autoreply on specific days or at a specific time
Fixes #5328
This commit is contained in:
@@ -587,6 +587,32 @@
|
||||
|
||||
return r;
|
||||
};
|
||||
|
||||
this.toggleVacationStartTime = function() {
|
||||
var v;
|
||||
|
||||
v = this.preferences.defaults.Vacation;
|
||||
|
||||
if (v.startTimeEnabled) {
|
||||
// Enabling the start date
|
||||
if (!v.startTime) {
|
||||
v.startTime = new Date();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.toggleVacationEndTime = function() {
|
||||
var v;
|
||||
|
||||
v = this.preferences.defaults.Vacation;
|
||||
|
||||
if (v.endTimeEnabled) {
|
||||
// Enabling the end date
|
||||
if (!v.endTime) {
|
||||
v.endTime = new Date();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
angular
|
||||
|
||||
Reference in New Issue
Block a user