procmail
[Top] [All Lists]

Re: Can procmail be used to move mail between folders?

2001-07-28 04:14:17
* On [010728 10:33] Tim Allen <timallen(_at_)dcallen(_dot_)co(_dot_)uk> wrote:
I'm currently using procmail to sort incoming email into folders on an IMAP
server. Each user has a .procmailrc in their home directory. The email
clients are Outlook Express on NT4 machines. OE places sent mail in a "Sent
Items" folder on the IMAP server. Is it possible to get procmail to scan the
Sent Items folder to sort the contents into different folders, in the same
way in which it handles incoming email. One thought would be for each user
to BCC all emails to themselves, but that's a bit clumsy.

Any suggestions much appreciated.

Procmail will not invoke automatically when mail is placed in the sent items
folder, as this does not require the use of a LDA.  However, you can run
procmail on the commandline to process mailboxes "by hand".  Thus, if you
set up a procmailrc to do this sorting, you could run it like this:
procmail $procmailrc < mailbox

Of course, this is rather annoying to have to do by hand for each user.  So,
you could set up a cron job to do just this.  Best would be once a day
during the night (I would guess).

Without more info on the system it's difficult to say how exactly you could
do this.  Whether or not you need one cron job for each user, or if a global
one would do the trick.

-- 
Lawrence Mitchell
wence(_at_)newald(_dot_)homeip(_dot_)net
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail