procmail
[Top] [All Lists]

[LONG] Procmail mangling mail deliveries

1995-12-21 09:06:19
        For some reason, Procmail has started doing some seriouis
mangling of mail deliveries.  This is happening at times when no other
application is accessing the delivery files in question.  For example,
two messages, delivered about an hour apart, with an intervening message
going to another folder, ended up looking like this:

-----spool-----
unfortunately, your puffhead arguments, falsehoods, innuendoes
 and hallucinations are beginning to grip people who matter. in fact
it is becoming quite trendy to besmirch MS.

Anyone who thinks Bill Gates or Microsoft is a benevolent 
80nks(_at_)toad(_dot_)com  Thu Dec 21 06:38:02 1995
Return-Path: owner-cypherpunks(_at_)toad(_dot_)com
Received: from devnull (devnull.mpd.tandem.com [131.124.4.29]) by 
galil.austnsc.tandem.com (8.7.1/8.7.1) with SMTP id AAA06363 for 
<dreschs(_at_)galil(_dot_)austnsc(_dot_)tandem(_dot_)com>; Thu, 21 Dec 1995 
00:38:01 -0600 (CST)
Received: from relay2.UU.NET by devnull (8.6.8/8.6.6)
        id AAA23393; Thu, 21 Dec 1995 00:35:38 -0600
Received: from toad.com by relay2.UU.NET with SMTP 
        id QQzvam14609; Thu, 21 Dec 1995 01:13:27 -0500 (EST)
Received: by toad.com id AA05681; Wed, 20 Dec 95 14:58:22 PST
Received: from mail.nyc.pipeline.com by toad.com id AA05672; Wed, 20 Dec 95 
14:58:09 PST
Received: from pipe2.nyc.pipeline.com 
(jya(_at_)pipe2(_dot_)nyc(_dot_)pipeline(_dot_)com [198.80.32.42]) by 
mail.nyc.pipeline.com (8.6.12/8.7.3) with ESMTP id RAA18279 for 
<cypherpunks(_at_)toad(_dot_)com>; Wed, 20 Dec 1995 17:58:01 -0500
From: John Young <jya(_at_)pipeline(_dot_)com>
Received: (jya(_at_)localhost) by pipe2.nyc.pipeline.com (8.6.9/8.6.9) id 
RAA13656; Wed, 20 Dec 1995 17:58:01 -0500
Date: Wed, 20 Dec 1995 17:58:01 -0500
Message-Id: 
<199512202258(_dot_)RAA13656(_at_)pipe2(_dot_)nyc(_dot_)pipeline(_dot_)com>
To: cypherpunks(_at_)toad(_dot_)com
Subject: Re: KOD  
Sender: owner-cypherpunks(_at_)toad(_dot_)com
Precedence: bulk
---end spool---

        I'm including my .procmailrc, in hopes that someone can see
something in it which may be causing this problem.

-----.procmailrc
PATH=/bin:/usr/bin:/usr/remote/bin:/usr/local/bin
MAILDIR=$HOME/Mail
DEFAULT=mail.misc.spool
PGPPATH=$HOME/.pgp
TZ=CST6CDT
LOCKEXT=lock

LOGFILE=$MAILDIR/dropped
:0
* (^From|^Sender|^TO).*(modsaf|paperboy).*@
/dev/null

LOGABSTRACT=no
TRAP=
LOGFILE=$MAILDIR/delivered
SUBJECT=`formail -z -xSubject:`
SENDER=`formail -z -xFrom:`

# Split digests
:0: digest.lock
* (^From|^Sender|^TO).*(-digest|risks.*owner|owner.*risks)[^][<>()@/ ]*@
* ^Subject:.*Digest
* !^X-Split-From.*Digest
| formail -cdz -aMessage-ID: -a"Sender: $SENDER" \
        -i"X-Split-From: $SUBJECT/\\$FILENO" \
        -s procmail

:0 Wh: msgid.lock
| formail -cz -D 10240 msgid.cache

LASTFOLDER=

:0
* !^From .*(smd|stend|dreschs)
* !^Subject:.*Re:
* !^FROM_DAEMON
* ^Subject:.*PGP.*(trade|exchange)
{

 :0 cW
 | pgp -kaf +batchmode >& /dev/null

 :0 a
 {

  :0 c
  | (formail -rti 'X-Secure: always-secure discard-receipt' ; \
     echo "\tThank you.  Here's my PGP public key:"; \
     sh -c 'pgp -kxfa +batchmode dreschs 2> /dev/null') | $SENDMAIL -oi -t

  :0:
  mail.keys.added.spool

 }
 
:0 E
 {

  :0 c
  | (formail -rti 'X-Secure: insecure discard-receipt'; \
     cat $HOME/.pgp/PGPexchange.reject) |  $SENDMAIL -oi -t

  :0:
  mail.keys.bad.spool

 }

}

LOGABSTRACT=all
TRAP="formail -zc -ISubject -I'From ' -X ''; echo ''"

ARGUMENT=$1
:0:
* ARGUMENT ?? ^^[^/ ]+^^
$1.spool

:0 c:
* (^From|^Sender|^TO).*alert[^][<>()@/ ]*@
list.alert.spool

:0 c:
* (^From|^Sender|^TO).*assist[^][<>()@/ ]*@
list.assist.spool

:0 c:
* (^From|^Sender|^TO).*bbdb[^][<>()@/ ]*@
list.bbdb.spool

:0 c:
* (^From|^Sender|^TO).*best-of-security[^][<>()@/ ]*@
list.best-of-security.spool

:0 c:
* (^From|^Sender|^TO).*bugtraq[^][<>()@/ ]*@
list.bugtraq.spool

:0 c:
* (^From|^Sender|^TO).*cert[^][<>()@/ ]*@
list.cert.spool

:0 c:
* (^From|^Sender|^TO).*ciac-bulletin[^][<>()@/ ]*@
list.ciac.bulletin.spool

:0 c:
* (^From|^Sender|^TO).*cypherpunks[^][<>()@/ ]*@
list.cypherpunks.spool

:0 c:
* (^From|^Sender|^TO).*mgt[^][<>()@/ ]*@
list.ddn.management.spool

:0 c:
* (^From|^Sender|^TO).*scc[^][<>()@/ ]*@
list.ddn.security.spool

:0 c:
* (^From|^Sender|^TO).*firewalls[^][<>()@/ ]*@
list.firewalls.spool

:0 c:
* (^From|^Sender|^TO).*ids[^][<>()@/ ]*@
list.ids.spool

:0 c:
* (^From|^Sender|^TO).*iris-on-line[^][<>()@/ ]*@
list.iris-on-line.spool

:0 c:
* (^From|^Sender|^TO).*plp[^][<>()@/ ]*@
list.plp.spool

:0 c:
* (^From|^Sender|^TO).*risks[^][<>()@/ ]*@
list.risks.spool

:0 c:
* (^From|^Sender|^TO).*socks[^][<>()@/ ]*@
list.socks.spool

:0 c:
* (^From|^Sender|^TO).*xpm[^][<>()@/ ]*@
list.xpm.spool

LOGABSTRACT=no

:0:
* LASTFOLDER ?? ^^[^/ ]+^^
/dev/null

LOGABSTRACT=all

:0 c:
* (^From|^Sender|^TO).aclu[^][<>()@/ ]*@
list.aclu

:0 c:
* (^From|^Sender|^TO).*(ding|gnus)[^][<>()@/ ]*@
list.ding.spool

:0 c:
* (^From|^Sender|^TO).*jokes[^][<>()@/ ]*@
list.jokes.spool

:0 c:
* (^From|^Sender|^TO)*lost-souls[^][<>()@/ ]*@
list.lost-souls.spool

:0 c:
* (^From|^Sender|^TO).*procmail[^][<>()@/ ]*@
list.procmail.spool

:0 c:
* (^From|^Sender|^TO).*(tjm|tmiller)[^][<>()@/ ]*@
* !(^From|^Sender|^TO).*(flfowler|Jason_Montgomery|jmm0021|jmont)[^][<>()@/ ]*@
mail.cerebus.spool

:0:
* (^From|^Sender|^TO).*easysw[^][<>()@/ ]*@
mail.esp.spool

:0 c:
* (^From|^Sender|^TO).*goff[^][<>()@/ ]*@
mail.goff.spool

:0 c:
* (^From|^Sender|^TO).*dsy[^][<>()@/ ]*@
mail.hordes.spool

:0 c:
* (^From|^Sender|^TO).*(flfowler|Jason_Montgomery|jmm0021|jmont)[^][<>()@/ ]*@
mail.jason.spool

:0 c:
* (^From|^Sender|^TO).*yesowitc[^][<>()@/ ]*@
mail.marcie

:0:
* (^From|^Sender|^TO).*patrol[^][<>()@/ ]*@
mail.patrol.spool

:0 c:
* (^From|^Sender|^TO).*pencom[^][<>()@/ ]*@
mail.pencom.spool

:0 c:
* (^From|^Sender|^TO).*cmiller[^][<>()@/ ]*@
mail.rose.spool

:0 c:
* (^From|^Sender|^TO).*royse[^][<>()@/ ]*@
mail.royse.spool

LOGABSTRACT=no
TRAP=

:0
* !LASTFOLDER ?? ^^[^/ ]+^^
* ^(From|In-Reply-To):.*(smd|stend|dreschs)
{

 :0 c:
 * ^Newsgroups:
 postings.spool

 :0:
 * ^Subject: PGPsendmail response
 mail.pgpsendmail.spool

 :0:
 * ^Subject: cron output
 mail.cron.spool

 :0 c:
 mail.grendel.spool

}

:0 E
{

  :0:
  * ^From .*(smd|stend|dreschs)
  mail.forward.spool

  LOGABSTRACT=all
  TRAP="formail -zc -ISubject -I'From ' -X ''; echo ''"
  PRECEDENCE=`formail -z -xPrecedence: -s awk '{print $1}'`
  PRIORITY=`formail -z -xPriority: -s awk '{print $1}'`

  :0 c:
  * PRECEDENCE ?? ^^[^/ ]+^^
  mail.misc.${PRECEDENCE}.spool

  :0 cE:
  * PRECEDENCE ?? ^^[^/ ]+^^
  mail.misc.${PRIORITY}.spool

  :0 c:
  * (^From|^Sender|^TO)(_dot_)*(_at_)(_dot_)*(ppgsoft|soundcity).*
  mail.misc.junk.spool


  :0 c:
  * ^FROM_MAILER
  mail.mailers.spool

  :0 c:
  * ^FROM_DAEMON
  mail.daemon.spool

  :0 c:
  mail.misc.spool

}

LOGABSTRACT=no

:0 fw
| formail -i"Resent-To: stend(_at_)cris(_dot_)com"
# -i"Subject: [`basename $LASTFOLDER .spool`] $SUBJECT" \
# -i"Resent-From: dreschs(_at_)austnsc(_dot_)tandem(_dot_)com"

:0
! stend(_at_)cris(_dot_)com
---end .procmailrc---

-- 
#include <disclaimer.h>                         /* Sten Drescher */
To get my PGP public key, send me email with your public key and
        Subject: PGP key exchange
Key fingerprint =  90 5F 1D FD A6 7C 84 5E  A9 D3 90 16 B2 44 C4 F3
Junk email is NOT appreciated.  If I want to buy something, I'll find
you.

<Prev in Thread] Current Thread [Next in Thread>
  • [LONG] Procmail mangling mail deliveries, Sten Drescher <=