[Dovecot] Sieve: redirect and keep action, possible bug

Pascal Volk user+dovecot at localhost.localdomain.org
Sat Sep 26 03:17:34 EEST 2009


On 09/26/2009 02:01 AM Andreas Ntaflos wrote:
> Hi,
> 
> Using Dovecot 1.2.4 and the new Sieve implementation in version 0.1.12, 
> I ran into a problem that could indicate a bug in Sieve.
> 
> The following is a simple script (as generated by Horde's Ingo 
> application) to redirect incoming mail and also keep a copy of the 
> message in the local inbox:
> 
> if true {
>     redirect "foo at example.org";
> }
> 
> if true {
>     keep;
>     stop;
> }
> 
> Problem is, it doesn't work as expected: no copy of the message is kept 
> in the local inbox. However, if I explicitly tell Sieve to "fileinto" it 
> works fine:
> 
> require ["fileinto"];
> 
> if true {
>     redirect "foo at example.org";
> }
> 
> if true {
>     fileinto "INBOX";
>     stop;
> }
> 
> Is this a bug in Sieve or am I wrong about how "keep" works? 
> 
> Thanks in advance!
> 
> Andreas

Your script looks strange for me. I'm simply using:

# sieve script start
redirect "user at example.com";
keep;
# sieve script end (no conditions)

All emails is forwarded to user at example.com and will be saved in the inbox.


Regards,
Pascal
-- 
The trapper recommends today: face1e55.0926902 at localdomain.org


More information about the dovecot mailing list