Okay, I improve my question and include the procmailrc file. I'm afraid
that the spool is not save. Could you help or encouragement?
When procmail runs normal (i.e. from sendmail) the log looks like this:
___________________________ tail /var/log/procmail __________________________
...
procmail: No match on "^([ ]+.*name=|begin.* [0-9]+|Content-).*\/_(pif
|scr|vbs|sbs|com|exe|bat)_save\>"
procmail: Assigning
"PATH=/home/ayalon/sysgrp/uuddii/bin:/bin:/usr/bin:/usr/local/bin:/usr/bin/X11"
From udi(_at_)post(_dot_)tau(_dot_)ac(_dot_)il Wed Dec 12 14:04:41 2001
Subject: test 2
Folder: /var/spool/mail/uuddii 1762
______________________________ /var/log/procmail __________________________
When I run procmail from command line, the log looks like:
___________________________ tail /var/log/procmail __________________________
...
procmail: No match on "^([ ]+.*name=|begin.* [0-9]+|Content-).*\/_(pif
|scr|vbs|sbs|com|exe|bat)_save\>"
procmail: Locking "/var/spool/mail/uuddii.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/uuddii"
procmail: Opening "/var/spool/mail/uuddii"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/spool/mail/uuddii.lock"
From udi(_at_)post(_dot_)tau(_dot_)ac(_dot_)il Wed Dec 12 14:04:41 2001
Subject: test 2
Folder: /var/spool/mail/uuddii 1399
______________________________ /var/log/procmail __________________________
Thats is, one way locks and the other way dosen't ! Is it ?
Should I add the ":" in the last recipe ? (No!)
___________________________ cat /etc/procmail ______________________________
VERBOSE=yes
LOGABSTRACT=all
LOGFILE=/var/log/procmail
DATE=`date '+%y%m%d%H%M'`
SHELL=/bin/sh
EXTN="pif|scr|vbs|sbs|com|exe|bat"
:0 H
* 1^0 gamebox|casino|viagra
* 1^0 ^To:[ ]*<[ ]*>
* 1^0 ^From[: ].*(nobody@|bounce)
* 1^0 from\>.*\.localhost
* 1^0 from\>.*localhost\.
/dev/null
:0 B
* ^Hi! How are you
* ^I send you this file in order
/dev/null
:0
{
:0 fw
| /etc/local/bin/isvirus
:0 H
* ^This message
/dev/null
:0 Bfw
* $ ^([ ]+.*name=|begin.* [0-9]+|Content-).*\/[.](${EXTN})\>
* $ MATCH ?? ()\/(${EXTN})
| sed -e "/^Content-.*\.$MATCH\>/s/\.$MATCH\>/_$MATCH/g" \
-e "/^begin\>.*\.$MATCH\>/s/\.$MATCH\>/_$MATCH/g" \
-e "/^.*e*name=\".*\.$MATCH\>/s/\.$MATCH\>/_$MATCH/g"
:0 EBfw
* $ ^([ ]+.*name=|begin.* [0-9]+|Content-).*\/_(${EXTN})_save\>
* $ MATCH ?? ()\/(${EXTN})
| sed -e "s/_${MATCH}_save/.$MATCH/g"
}
______________________________ /etc/procmail ______________________________
Thenks in advansed
Udi
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail