procmail
[Top] [All Lists]

Help! Disk full and loosing messages.

1996-05-28 21:43:52
I use procmail 3.11pre4 to split my mail up into various input folders
in my home directory, rather than delivering it all into the mail
spool.

Unfortunately, other people's home directories are on the same
partition as mine, and occasionally they run the filesystem out of
space.  It seems that procmail just tosses the mail when this happens,
leaving a log message like "procmail: Truncated file to former size"
in my log file (which often has part of a disk block left to record
this fact).

I would like procmail to exit with code 75 when this happens, so that
my mail stays in the spool directory (which still has space) until my
home partition clears up a bit.  I am running procmail with the "-t"
flag, but this doesn't help.  For example, I get in my log file:

procmail: No space left to finish writing 
"/home/am2/dm/Mail/incoming/backup/msg.B0a"
procmail: Truncated file to former size
From dm(_at_)garage(_dot_)uun(_dot_)org  Tue May 28 21:31:08 1996
 Subject: test2
  Folder:  cd $INDIR/backup && rm -f dummy `ls -t msg.* | sed -e 1,32d`     602
procmail: No space left to finish writing "/home/am2/dm/Mail/incoming/dm"
procmail: Truncated file to former size
From dm(_at_)garage(_dot_)uun(_dot_)org  Tue May 28 21:31:08 1996
 Subject: test2
  Folder: /home/am2/dm/Mail/incoming/dm                                     601

But no further mention of "test2".  In fact, I didn't even get a
bounce message from this (bouncing to a different machine with disk
space, obviously).  This mail message just got completely lost after
it couldn't be delivered to the two mail folders.

Is there some way to avoid loosing mail in this case?  If mail gets
delivered to one folder and not to the other, I still don't mind
exiting with code 75.  I'd rather get two copies of a mail message
in my backup folder than none in my mailbox.

Thanks,
David

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