procmail
[Top] [All Lists]

Re: Mailbox is still getting scrambled.

2002-01-22 19:01:11
Hi,

I've tried locking everything that can be locked and the problem is 
still happening.  Another other ideas?

Thanks

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

:0 c:$DEFAULT$LOCKEXT
/var/mail/backup

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

:0
# #####* 
^TO_(snowhosts(_at_)SunshineSnowHosts\(_dot_)com|zawada(_at_)bowfort\(_dot_)com)
* !^X-Loop: BowfortMailLoopCheck
{
    ANOMY=/usr/local/lib/anomy
    :0 fw:$DEFAULT$LOCKEXT
    |/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:$DEFAULT$LOCKEXT
       | (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:$DEFAULT$LOCKEXT
       | (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";\
       ) | $SENDMAIL -oi -t -f"$TO"
    }
}

:0:$DEFAULT$LOCKEXT
$DEFAULT




On January 22, 2002 01:21 pm, you wrote:
At 13:06 2002-01-22 -0700, Mark Simpson wrote:
I'm using the following procmail receipe and my mailbox is getting
scrambled if more than one message arrives at once.

USE FILE LOCKING

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.

HUH?  _formail_ isn't depositing messages into mailboxes.  Where are you
reading this?


LOCK THIS RECIPE

:0 c

/var/mail/backup

LOCK THIS RECIPE (probably requires a manually specified lockfile name)

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

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer:
<http://www.professional.org/procmail/disclaimer.html> Please DO NOT carbon
me on list replies.  I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
_______________________________________________
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>