[Dovecot] dovecot sieve enotify question

Stephan Bosch stephan at rename-it.nl
Sat Nov 13 11:23:25 EET 2010


Op 12-11-2010 18:33, Robert Schetterer schreef:
> Hi, sorry not dovecot
> but heres the question
> is it possible to use dovecot sieve enotify
> not only for notify mail i.e arrived
> but with add the incomming mail as attachment to the notification ?
>
>
> i.e.
> i have found
> a example
>
> require ["enotify", "fileinto", "variables"];
> if header :contains "X-Spam-Flag" "YES" {
>    set "from_addr" "admin at example.com";
>    set "subject" "Spam";
>    notify :message "${from_addr}: ${subject}"
>           "mailto:user at example.com";
> }
>
> is there a way to add the orginal mail as attach to the notfication mail
> , and finally perhaps delete it
>
> this would like a redirect/forward with right from_addr ( which should
> always be the default mailboxname/emailaddres
No. There is no way to put a full message into a variable and notify 
doesn't have any provisions of its own to do something like that.

There is currently also no forward-as-attachment command in general.

Regards,

Stephan.



More information about the dovecot mailing list