I'm hoping to set up my personal IMAP server so that it has an automatic 
'refiltering' folder (mailbox). Currently I'm attempting to achieve this 
by having fetchmail run with this script:

  defaults protocol POP3, keep, no fetchall, mda "/usr/sbin/cyrdeliver %T"
  poll "server", user ashley, pass notmyrealpassword, is ashley, no keep, 
fetchall

I'm running Cyrus 2.1.3CVS200204, as found in Debian sid. This is what 
happens:

1. The user (me) puts some messages to be refiltered through sieve in my 
INBOX.

2. fetchmail grabs everything out of the INBOX via the POP3 server 
(deleting it), and passes it to cyrdeliver.

3. cyrdeliver filters everything through the sieve script in my home 
directory.

4. The sieve script puts things in various mailbox folders. It never puts 
anything in my INBOX, but defaults to a different folder.

So far so good, and pretty clever I thought, except that I run into 
Cyrus' duplicate-delivery prevention, which just quietly discards the 
messages because of course it's already seen them. Now duplicate-delivery 
prevention is fine, except in this one case. I don't suppose there's some 
flag I could pass to cyrdeliver, is there, that would switch off 
duplicate delivery prevention but still sieve?

Actually a big reason for doing this is that I keep all my outgoing mail 
and would like that automatically filtered too. I can easily set my mail 
client to leave outgoing messages in some mailbox and this seems the 
easiest way.

Any ideas would be helpful...

-- 
Ashley Yakeley, Seattle WA

Reply via email to