procmail
[Top] [All Lists]

Mailbox is getting scrambled.

2002-01-22 13:12:37
Hi,

I'm using the following procmail receipe and my mailbox is getting scrambled
if more than one message arrives at once.

From my understanding, I can't lock any formail receipes, so the basic 
delivery method is it drops out at the end and then delivers the message.

According to the manual, it says the mailbox is locked at this happens.

I can't manually delivery it to a mailbox, because it is being used on a 
number of mailboxes, and it's then being piped onto majordomo and the like.

Can anyone see what I'm doing wrong?

Thanks
Mark Simpson


LOGFILE=/var/log/procmail
#VERBOSE=on

:0 c
/var/mail/backup

:0 ic
| cd /var/mail/backup && rm -f dummy `ls -t msg.* | sed -e 1,100d`

:0
* !^X-Loop: BowfortMailLoopCheck
{
    ANOMY=/usr/local/lib/anomy
    :0 fw
    |/usr/local/lib/anomy/bin/sanitizer.pl /etc/sanitizer.cfg

    :0 Bc
    * ^\*\*\*\* Bowfort Technologies Virus Scan \*\*\*\*
    {
       SUBJECT=`formail -xSubject:`
       ARRIVED=`formail -xDate:`
       TO=`formail -xTo:`
       FROM=`formail -xFrom:`

       :0 ic
       | (formail -rt -A"X-Loop: BowfortMailLoopCheck" -i"Subject: Possible 
Virus Detected"; \
       echo "Possible Virus Received from $FROM destined for $TO on 
$ARRIVED";\
       echo "with the subject: $SUBJECT"; \
       echo " "; \
       ) | $SENDMAIL -oi -t -f"$TO" zawada(_at_)bowfort(_dot_)com

       :0 i
       | (formail -rt -A"X-Loop: BowfortMailLoopCheck";\
       echo "ATTENTION:";\
       echo " ";\
       echo "The Mailer-Daemon at $HOST successfully received email from 
you";\
       echo "on $ARRIVED with the Subject: $SUBJECT";\
       echo " ";\
       echo "However, your email contained an attachment which appears as 
if";\
       echo "it contained a virus.  It could be a false alarm, but 99% of";\
       echo "the time it is a virus.";\
       ) | $SENDMAIL -oi -t -f"$TO"
    }
}
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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