Sieve outgoing mail sorting question.

Rob Siemborski rjs3 at andrew.cmu.edu
Wed Oct 1 13:59:32 EDT 2003


On Wed, 1 Oct 2003, Denis V. Suhanov wrote:

> Is there a way to use sieve for sorting an outgoing mail? For example, I
> have  folders  user.test.work.received  and user.test.work.sent and want
> all  work-related  incoming  mail  to  go to the user.test.work.received
> (this  part  works  just  fine)  but  also  all  outgoing  mail to go to
> user.test.work.sent?  I  am  not  sure what is the right way to do it. I
> tried something like this:
>
> if allof(header :contains "from" "user at domain.org",
>          header :contains "to" "workdomain.com") {
>    fileinto "work.sent";
> }

If you can configure your MUA to do it without sieve, do that...

Otherwise, you might be able to simulate it by configuring your MUA to
send you a copy of the message like

To: bigboss at yourcompany.com
Bcc: user+worksent at doamin.org

and then have sieve filter on that address.  It's clunky but its the only
way to get sieve to do this (it only filters on mail delivered via
LMTP--not IMAP).

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper





More information about the Info-cyrus mailing list