Andreas Ntaflos
2009-Sep-26 00:01 UTC
[Dovecot] Sieve: redirect and keep action, possible bug
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
--
Andreas Ntaflos
Vienna, Austria
GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC 7E65 397C E2A8 090C A9B4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20090926/736e5c82/attachment-0002.bin>
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! > > AndreasYour 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