[Dovecot] sieve: deleteheader sometimes fails [bug]
Daniel Piddock
dgp-dove at corefiling.co.uk
Wed May 1 17:58:27 EEST 2013
On 01/05/13 14:51, Stephan Bosch wrote:
> 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.
Hi Stephen,
I'm totally sure. The mails end up with two Subject headers so the
addheader line is executing correctly. The bug doesn't even need the
fileinto and stop lines, I'm not sure why I included them.
Cheers,
Dan
More information about the dovecot
mailing list