Pigeonhole / Bug with "duplicate" ?

Stephan Bosch stephan at rename-it.nl
Fri Apr 28 01:39:49 EEST 2017


Op 4/25/2017 om 11:52 AM schreef Gilles Chauvin:
> Hello,
>
> Previously, while running Dovecot 2.2.27/Pigeonhole 0.4.16 the
> following code snippet was working as one would expect:
>
>   if duplicate {
>     addflag ["\\seen", "Duplicate"];
>     fileinto "Duplicate";
>     stop;
>   }
>
>   if address :contains "to" "user.email at example.com" {
>     addflag "$label1";
>   }
>
>
> After upgrading to Dovecot 2.2.29.1/Pigeonhole 0.4.18 it's not working
> anymore. When an e-mail is sent to the user the "$label1" isn't
> applied at all to the message (in the case it's NOT a duplicate).
>
> Downgrading to Dovecot 2.2.29.1/Pigeonhole 0.4.17 exposes the same
> incorrect behaviour.
>
> Downgrading to Dovecot 2.2.29.1/Pigeonhole 0.4.16 is OK.
>
> When running pigeonhole 0.4.17 & 0.4.18, commenting the "if duplicate
> {}" block restores the expected behaviour.
>
>
> Looks like a bug that appeared in 0.4.17? Am I correct?

This bug is much older than that. It was exposed by recent changes though.

This should fix it:

https://github.com/dovecot/pigeonhole/commit/3e1a17a286ab0e084577fc267a442cb12aed1cbc

Regards,

Stephan.



More information about the dovecot mailing list