procmail
[Top] [All Lists]

Using procmail to store into IMAP folders

2004-04-09 03:28:28


Hi all,

I'm running procmail on my ISP's mail server to filter incoming mail 
into several IMAP folders. I have noticed that the IMAP folders are 
stored as traditional mbox files, except there is a special message 
first (with subject "IMAP4 Server Data-DO NOT DELETE"). So I have been 
storing messages by just using a simple rule like this:

:0:
* <some filtering rule>
$HOME/Mail/<some mailbox>

which will just append the message to the mailbox file.

But I'm suspecting this is unsafe - what if the server is maintaining 
some other data structure apart from the mailbox, which will not be 
updated when I do this operation? Also this assumes procmail and the 
IMAP server uses the same file locking mechanism. Should I be using some 
simple command line IMAP client to do the filing instead? If so, any 
suggestions?

I'm asking this now because I'm having sever problems with *lost 
messages* when using Mozilla with Junk Control as mail client. Since 
noone else has reported a similar problem I assume it must be something 
specifc with my situation, perhaps corrupted IMAP folders. Also, I have 
used Gnus and Outlook, and both complains on bad UID numbers.

The IMAP server responds with:

* OK bele.abc.se Solstice (tm) Internet Mail Server (tm) IMAP4 service @ 
2.0 - at Tue, 24 Feb 2004 21:53:46 +0100 (MET)


--
Johan



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>