The Vacation extension provides the ability to send an automatic response to (some) incoming mail, and avoid unnecessarily repeating the response. Archiveopteryx supports it fully.
In its simplest form, the vacation command checks that an inbound message is addressed to the vacation user (to exclude mailing list mail and similar), that it's safe and sensible to respond automatically to it, and that the same vacation message hasn't been sent to that address recently. If all those checks pass, then a message is sent.
More complex invocations are possible. In the following example, Alice sends one vacation response to directly addressed mail and another for mail addressed to sales@example.com. The latter response is sent with a special From address, and there will be at most one response per address per three days.
There are spaces at the ends of some lines. In order to make those clear, we've replaced them with the character ☐.
require ["date", "relational", "vacation"]; if allof( address :is :all "To" "alice@example.com", currentdate :value "lt" "date" "2008-08-15" ) { vacation "I'm away with my colleagues at some boring meeting."; ; } elsif allof( address :is :all [ "To", "Cc" ] "sales@example.com", currentdate :value "le" "date" "2008-08-15" ) { vacation :days 3 :addresses "sales@example.com" :from "Exemplaric Gadgets Pvt Ltd <sales@example.com>" text: Content-Type: text/plain; format=flowed The sales team is currently having a kickoff motivational meeting☐ at the Ananda Spa. When we return we will respond to your message☐ with such motivation that we will surely sell you the entire Taj☐ Mahal. We're looking forward to serving you! . ; }
(The second message uses the format=flowed specification and soft linebreaks, so it will be rendered as paragraph-oriented text by most mail readers.)
In case of questions, please write to info@oryx.com.
Last modified: 2008-08-04
Location: aox.org/sieve/vacation