Skip to main content

Set vacation reply

PUT 

/api/accounts/:accountId/sieve/vacation

Turns the automatic out-of-office reply on or off and saves its text and dates; returns the saved settings wrapped in vacation. The body is not wrapped: enabled, subject, message, startDate and endDate are read from its top level.

message is HTML and must not be blank when enabled is true. Dates are YYYY-MM-DD or date-times, and the end must not be before the start; outside that window no reply is sent. days is always 4 (each sender gets at most one reply in that time), and addresses is always set to the account's identity addresses, so clients cannot change either. The Sieve script is rewritten and activated, keeping filters and forwarding.

Invalid input, or a Sieve server without the vacation (or, with dates, date and relational) extension, returns 400.

Request​

Responses​

Vacation settings.