Op 5/1/2013 3:18 PM, Daniel Piddock schreef:> Hi,
>
> We're using Dovecot 2.1.16 with Pigeonhole 0.3.4. Mail is delivered by
> exim4 to the dovecot LDA.
>
> Sometimes users are unable to delete headers. I've narrowed the problem
> down to preceding the deleteheader command with a query against the body.
>
> A simple example:
> """
> require ["body", "editheader", "fileinto"];
> if body :contains "!TEST!" {
> fileinto "INBOX.Trash";
> stop;
> }
> deleteheader "Subject";
> addheader "Subject" "Testing";
> """
>
> Putting the "deleteheader" above the "if body" causes
it to be deleted
> correctly. Although I've used Subject in this example it happens for
> other headers.
Are you sure the fileinto; stop; part is not being executed? In that
case this behavior whould be correct.
Regards,
Stephan.