I wrote earlier Tuesday showing how a delivery to multiple
(maildir) directories could be flummoxed and not produce an
error message:
:0 w
DUMMY=| ( rm -rf FolderA FolderB FolderC dummy;\
touch FolderA FolderB FolderC )
:0
FolderA/ FolderB/ FolderC/
LOG = "ERRORCODE is $?; LASTFOLDER is $LASTFOLDER
" # [I fixed this line now in this current message -- dman]
:0e
{ ERROR_FOUND }
7:24pm [~/Mail] 656[0]> procmail -m multidelivery.rc < $SPAMPLE
procmail: [1988] Tue Mar 27 19:24:16 2007
procmail: Assigning "DUMMY="
procmail: [1988] Tue Mar 27 19:24:16 2007
procmail: Executing " ( rm -rf FolderA FolderB FolderC dummy;\
touch FolderA FolderB FolderC )"
procmail: Unable to treat as directory "FolderA"
procmail: Skipped "FolderB/ FolderC/"
procmail: Assigning "LASTFOLDER=FolderA"
procmail: Opening "FolderA"
procmail: Acquiring kernel-lock
From Danielsijie(_at_)wanadoo(_dot_)fr Sat Aug 6 23:40:41 2005
Subject: Dating site for sexoholics
Folder: FolderA 1744
Then I signed off as follows:
Dallman (at least it put the mail somewhere)
I decided to double-check this part. I slightly changed my first
recipe as follows:
:0 w
DUMMY=| ( rm -rf FolderA FolderB FolderC dummy;\
touch FolderA FolderB FolderC;\
chmod u-w FolderA FolderB FolderC )
(Rest is as above.) Then I ran it. Now procmail couldn't
write to any of the mailboxes. It did, indeed, try hard to
save the message. See the last part of the run's log below,
which wasn't in the one quoted above (because, one presumes,
that mail had actually been saved somewhere on the filesystem).
2:05am [~/Mail] 811[1]> procmail -m multidelivery.rc < $SPAMPLE
procmail: [28369] Wed Mar 28 02:08:16 2007
procmail: Assigning "DUMMY="
procmail: [28369] Wed Mar 28 02:08:16 2007
procmail: Executing " ( rm -rf FolderA FolderB FolderC dummy;\
touch FolderA FolderB FolderC;\
chmod u-w FolderA FolderB FolderC )"
procmail: Unable to treat as directory "FolderA"
procmail: Skipped "FolderB/ FolderC/"
procmail: Assigning "LASTFOLDER=FolderA"
procmail: Opening "FolderA"
procmail: Error while writing to "FolderA"
procmail: Assigning "LOG=ERRORCODE is 0; LASTFOLDER is FolderA"
ERRORCODE is 0; LASTFOLDER is FolderA
procmail: Assigning "LOG="
procmail: Assigning "ERROR_FOUND"
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
From Danielsijie(_at_)wanadoo(_dot_)fr Sat Aug 6 23:40:41 2005
Subject: Dating site for sexoholics
Folder: /dev/null 1744
In short, I think it's reassuring that procmail is still trying to
save this message.
Dallman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail