Difference between revisions of "Vacation"

From Mailutils
Jump to navigationJump to search
m
m
Line 10: Line 10:
 
           [:reply_prefix <''prefix'': string>]
 
           [:reply_prefix <''prefix'': string>]
 
           [:sender <''addr'': email>]
 
           [:sender <''addr'': email>]
             <''reply_text'': string>
+
          [:file]
 +
             <''reply_text_or_file_name'': string>
  
 
''Vacation'' returns a message ''reply_text'' to the sender of the message being processed informing them that the recipient is currently not reading their mail.  The message is sent to each sender once per reply interval specified by the ''ndays'' tagged parameter.  The reply is formatted as a MIME message with ''reply_text'' as its body and ''subject'' as its <tt>Subject</tt> header.  If <tt>:subject</tt> is not supplied, the <tt>Subject</tt> line is created by prefixing the subject of the original message with the
 
''Vacation'' returns a message ''reply_text'' to the sender of the message being processed informing them that the recipient is currently not reading their mail.  The message is sent to each sender once per reply interval specified by the ''ndays'' tagged parameter.  The reply is formatted as a MIME message with ''reply_text'' as its body and ''subject'' as its <tt>Subject</tt> header.  If <tt>:subject</tt> is not supplied, the <tt>Subject</tt> line is created by prefixing the subject of the original message with the

Revision as of 12:52, 27 December 2010

Vacation is an E-mail autoresponder implemented as a Sieve extension action.

Syntax

 vacation [:days <ndays: number>]
          [:subject <subject: string>]
          [:aliases <address-list: list>]
          [:addresses <noreply-address-list: list>]
          [:reply_regex <expr: string>]
          [:reply_prefix <prefix: string>]
          [:sender <addr: email>]
          [:file]
           <reply_text_or_file_name: string>

Vacation returns a message reply_text to the sender of the message being processed informing them that the recipient is currently not reading their mail. The message is sent to each sender once per reply interval specified by the ndays tagged parameter. The reply is formatted as a MIME message with reply_text as its body and subject as its Subject header. If :subject is not supplied, the Subject line is created by prefixing the subject of the original message with the reply prefix ("Re: ", by default). To avoid unnecessary duplication, this mechanism is suppressed if the original subject already begins with the reply prefix.


Sample usage

  require "vacation";
  
  vacation :days 7 :reply_regex "^(re|aw|sv|ang|odp|rv)(\[[0-9]+\])?:[[:blank:]]" text:
  I am not able to attend your mail now, because I am on vacation until 2010-07-01.
  I will reply to you when I am back.

  Best regards,
  Ty Coon
  .
  ;