Hello, recently I started using procmail to send my high scoring spam
and virus tagged messages to /dev/null, so when I saw the backup recipe
in procmailex I thought "cool! just what I need, that'll make sure I
don't lose anything important".
So now I have this in my ~/.procmailrc :
:0 c
backup
:0 ic
| cd backup && rm -f dummy `ls -t msg.* | sed -e 1,32d`
But I'm seeing odd error messages in the log, along the lines of:
procmail: Couldn't create or rename temp file "backup/msg.vLvp"
What has me a little stumped is that these don't occur for every
message, just the occasional message, and as far as i can tell those
messages don't get backed up. Thus it doesn't seem to be a permissions
problem. Also the filenames don't already exist. Any idea's why some
messages would be unwriteable?
I've turned on verbose logging but haven't caught an unwritable event yet.
In general however the backup does seem to be working, and limited to a
set number of messages.
FYI I'm on osx 10.2.8, and have just updated to procmail 3.22.
I'm also thinking I'd like all the messages in a single file, mbox
format, I'd have to remove the current directory and create the file and
use a rule like this for the backup, right?
:0 c
$PMDIR/backup
But then how would I limit the number of backed-up messages? Anybody got
a recipe they could share?
TIA
Adrian
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail