[Dovecot] change subject with dovecot+sieve
Esteban Torres Rodríguez
mortenol.torres at gmail.com
Thu Nov 25 10:16:58 EET 2010
2010/11/24 Esteban Torres Rodríguez <mortenol.torres at gmail.com>
> Timo Sirainen wrote:
>
> On Tue, 2010-11-23 at 18:05 +0100, Esteban Torres Rodríguez wrote:
>
> I'm using to make the filter sieve and would like to reject filter and
> change the subject of emails that filter.
>
> I have created the filter and it works correctly, but reject comes with the
>
> following subject: "Mail Delivery Subsystem"
>
> How I can do?
>
>
> You didn't mention what Dovecot version. That should be the From: field.
> Depending on what Sieve you use the Subject: should be different.
>
> But anyway.. looking at the current Pigeonhole code, it doesn't look
>
> like it uses LDA's rejection_subject or rejection_reason settings at
> all. Stephan, can you add support for those? Or is there a reason why
> you can't use mail_send_rejection()? Maybe those APIs could be changed
>
> to avoid all of this code duplication..
>
>
> Versions:
> -dovecot-1.1.7-0_84.el5
> -dovecot-sieve-1.1.5-8.el5
>
> The rule I am using is:
>
> require ["reject"];
>
> if anyof (address :is "from" "nagios at domain1.com") {
> redirect "newaddress at domain2.com";
> }
>
> elsif anyof (not address :is "from" "nagios at domain1.com") {
> reject text:
>
> Hello world.
>
> bye
>
> .
> ;
> }
>
>
> subject label does not work:
>
> :subject "This is the new subject"
>
>
>
>
>
More information about the dovecot
mailing list