6 messages in net.sourceforge.lists.courier-users[courier-users] Re: IMAP outbox/sent ...
FromSent OnAttachments
Warren KonkelJul 29, 2004 7:07 am 
Sam VarshavchikJul 29, 2004 3:34 pm 
me...@bauchladen.atJul 30, 2004 12:27 am 
m...@rtij.nlJul 30, 2004 1:38 am 
Sam VarshavchikJul 30, 2004 4:10 am 
David GomillionJul 30, 2004 5:56 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Re: IMAP outbox/sent mail foldersActions...
From:m...@rtij.nl (m@rtij.nl)
Date:Jul 30, 2004 1:38:47 am
List:net.sourceforge.lists.courier-users

Sam Varshavchik writes:

Warren Konkel writes:

I read somewhere that there's a setting somewhere in the imap config file that will turn on auto-sending of anything placed in the Outbox, but will courier then move it to a "Sent Items" box when it's done or something?

No.

Although the Outbox is a great feature, you can do a lot yourself using cronjobs. It takes some thinking to get it right, but once it works, it works great. One can implement an outbox this way that does move the item to sent items.

I use this myself to process the occasionally misidentified spam or ham. By placing it in the right folder, a cronjob picks it up, feeds it through spamassassin, if spam sends it to spamcop, and files the message in the appropriate folder.

This is very easy to do when one user is involved. When multiple users are involved it is actually not that much harder, something like (I have real users and virtual domains):

for d in /home/*/Maildir/.Outbox/cur/ `find /var/vmail \ -path /var/vmail/*/.Outbox/cur/` do # process outbox done

Processing of a mailbox should ofcourse be done in a manner that is resilient to multiple invocations of the script, I leave that up to your imagination.

HTH, M4