Re: In a sieve script, how to direct a message to another user's mailbox on the same server?

Andy Bennett <[email protected]>
Newsgroups gmane.mail.imap.cyrus
Message-ID <[email protected]>
Hi,

> fetchmailrc:
>
> poll server.provider.com
> proto pop3
> user "user_A"
> mda "/usr/sbin/cyrdeliver user_A"
> We have made an extremely simple sieve test script:
>
> if envelope :is "to" "[email protected]"
> {
>   fileinto "user/user_B/INBOX/folder_A";
> }

The fetchmail config means that the envelope for user_A's messages (i.e. 
the ones that come from user_A's POP box) will always be user_A (in Cyrus).

Are you sure that the @ourdomain.com domain is correct?


> Now we would like to extend the script so that messages to user A are put
> into user B's mailbox (INBOX or subfolder thereof) *in addition*, provided
> they originated from a certain sender.

After successfully getting the fileinto clause to trigger, remember to mark 
the message as unseen so that the rules continue to be processed and the 
message is eventually filed into user_A's INBOX as well.



Best wishes,
@ndy

-- 
[email protected]
http://www.ashurst.eu.org/
0x7EBA75FF

------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/Tcc7e409b06bc9bfd-Md84a43e8a89cbaf92237b122
Delivery options: https://cyrus.topicbox.com/groups/info/subscription
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.