Dennis Davis wrote:
> On Mon, 13 Oct 2008, Konstantin V. Gavrilenko wrote:
> 
>> From: Konstantin V. Gavrilenko <[EMAIL PROTECTED]>
>> To: Brian Blood <[EMAIL PROTECTED]>
>> Cc: Exim-users List <[email protected]>
>> Date: Mon, 13 Oct 2008 23:40:11 +0100
>> Subject: Re: [exim] copy mail to yourself
> 
> ...
> 
>> ##Cyrus/Sieve part for moving the message from Inbox to Sent
>> if anyof ( header :contains "From" "[EMAIL PROTECTED]",
>>            header :contains "From" "[EMAIL PROTECTED]"
>>         )
>>          { fileinto "INBOX/[EMAIL PROTECTED]"; stop; }
>>
>>
>> The only downside, is that the messages would appear as New in
>> your Sent folder. but I guess there should be a workaround for
>> that too.
> 
> This may depend on your IMAP server.  See:
> 
> ftp://ftp.rfc-editor.org/in-notes/rfc5232.txt
> 
> You may be able to use the imap4flags extension to set the SEEN
> flag on the message as saved to your Sent folder.  I believe recent
> versions of the Cyrus IMAP server support the imap4flags extension.

Thanks Denis,

have tried it on Cyrus 2.3.9  and 2.3.12 "imap4flags" does not get
recognised, same "variables" :(
So it seems that Cyrus does not support the symantics described in the
latest rfc5232.

However, there is support for imapflags, so the following works

require ["fileinto", "imapflags"];

if anyof ( header :contains "From" "[EMAIL PROTECTED]",
           header :contains "From" "[EMAIL PROTECTED]"
        )
        { addflag ["\\Seen", "$MDNSent"]; fileinto "INBOX/Sent"; stop; }


thanks all for your help


-- 
Respectfully,
Konstantin V. Gavrilenko

Arhont Ltd - Information Security

web:    http://www.arhont.com
        http://www.wi-foo.com
e-mail: [EMAIL PROTECTED]

tel: +44 (0) 870 44 31337
fax: +44 (0) 208 429 3111

PGP: Key ID - 0xE81824F4
PGP: Server - keyserver.pgp.com

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to