procmail
[Top] [All Lists]

Re: procmail, a refiling program and the exitcode

1997-03-05 09:20:18
Stephane Bortzmeyer <bortzmeyer(_at_)pasteur(_dot_)fr> writes:
I use exmh as the main mail agent and I refile mail messages directly in 
MH folders with recipes like:

:0
* ^TO(linuxisp|taylor-uucp|LINUX-ATALK|uupc-info-digest)@
| /usr/lib/mh/rcvstore +Listes/ISP

(Yes, I know procmail can store in MH folders without rcvstore but, 
unfortunately, procmail does not update the "unseen" sequence, surprising 
exmh. The above recipe is suggested in exmh documentation.)

If you're going to be updating the sequences file then you need to
consider the possibility of your .mh_sequences file being munged.  To
avoid multiple rcvstore's doing that you should use a locallockfile in
your procmail recipe.  Of course, if exmh doesn't lock it as well then
you can still run into conflicts, so you should bug the exmh
maintainers to do so and update the docs.

:0:$HOME/Mail/Listes/ISP/.mh_sequences.lock
* ^TO(linuxisp|taylor-uucp|LINUX-ATALK|uupc-info-digest)@
| /usr/lib/mh/rcvstore +Listes/ISP


I recently had a disk full and I apparently lose messages. The procmail 
logfile shows:

Subject: [HELP.9703-0341] Netscape/modem
 Folder: /usr/lib/mh/rcvstore +Boulot/Help                               
1378
rcvstore: error writing rcvstore006674: No space left on device

So apparently, rcvstore noticed the problem but procmail considered the 
mail delivered since it wasn't stored anywhere else.

Is it because I should have used 'w' in the recipe? man page says:
...

Yes, that should take care of your problem.


Philip Guenther

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