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