procmail
[Top] [All Lists]

Re: Procmail isn't matching when it should (Redhat 8.0)

2002-12-11 15:25:01

(replying to myself)

More information:

I'm using the 'procmail-3.22-7' RPM as distributed by Red Hat with RH
version 8.0.  As the RPM package name implies, it's procmail v3.22r7,
which looks to me to be the current version available from procmail.org.

After having read some of the Procmail FAQ and related linked documents,
I've added a SHELL variable to my .procmailrc and removed some extraneous
backslashes.  I've only been editing my .procmailrc with vim and pico via
the shell, so I don't think linebreaks are a problem.


[...begin quote of procmailrc...]
SHELL=/bin/sh
LOGFILE=logs/procmail
VERBOSE=yes
LOGABSTRACT=all

:0c:
mail-backup

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

:0fw
| /usr/bin/spamassassin

:0:
* ^X-Spam-Flag.*YES
mail/spam

:0:
* ^TO_rt-users(_at_)lists\(_dot_)fsck\(_dot_)com
mail/rt-users

:0:
* ^TO_outlook-users(_at_)yahoogroups\(_dot_)com
mail/outlook-users

:0:
* ^TO_procmail(_at_)Lists\(_dot_)RWTH-Aachen\(_dot_)DE
mail/procmail-list

:0:
* ^TO_openldap-software(_at_)OpenLDAP\(_dot_)org
mail/openldap-software
[...end quote of procmailrc...]


Unfortunately, I still can't figure out the problem.  As the log excerpt 
below shows, procmail is still not matching rules where I believe it 
should be.


[...begin procmail log quote...]
procmail: [27929] Wed Dec 11 14:11:34 2002
procmail: Assigning "LOGABSTRACT=all"
procmail: Locking "mail-backup.lock"
procmail: Assigning "LASTFOLDER=mail-backup/msg.vk2L"
procmail: Opening "mail-backup/msg.vk2L"
procmail: Acquiring kernel-lock
From procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE  Wed Dec 11 14:11:34 
2002
 Subject: Re: BOGUS.root.xxx files
  Folder: mail-backup/msg.vk2L                                             
4198
procmail: Unlocking "mail-backup.lock"
procmail: Executing " cd mail-backup && /bin/rm -f dummy `/bin/ls -t msg.* 
| /bin/sed -e 1,128d`"
procmail: Assigning "LASTFOLDER= cd mail-backup && /bin/rm -f dummy 
`/bin/ls -t msg.* | /bin/sed -e 1,128d`"
From procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE  Wed Dec 11 14:11:34 
2002
 Subject: Re: BOGUS.root.xxx files
  Folder:  cd mail-backup && /bin/rm -f dummy `/bin/ls -t msg.* | /bin     
4198
procmail: Executing "/usr/bin/spamassassin"
procmail: [27929] Wed Dec 11 14:11:40 2002
procmail: No match on "^X-Spam-Flag.*YES"
procmail: No match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)rt-users(_at_)lists\(_dot_)fsck\(_dot_)com"
procmail: No match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)outlook-users(_at_)yahoogroups\(_dot_)com"
procmail: No match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)procmail(_at_)Lists\(_dot_)RWTH-Aachen\(_dot_)DE"
procmail: No match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)openldap-software(_at_)OpenLDAP\(_dot_)org"
procmail: Locking "/var/spool/mail/graham.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/graham"
procmail: Opening "/var/spool/mail/graham"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/spool/mail/graham.lock"
procmail: Notified comsat: "graham(_at_)7598468:/var/spool/mail/graham"
  Folder: /var/spool/mail/graham                                              
1
[...end procmail log quote...]


Perhaps there's some problem with the way the procmail RPM was compiled by
Red Hat, but I'm not sure if I should be recompiling just yet without a
better idea of what's going wrong.  I'm not 100% confident in my knowledge
of regular expressions, so it's entirely possible that I have a glaring
error in my procmailrc.  However, an earlier version of my procmailrc
*did* work on Red Hat 7.3 (with the Red Hat-distributed 'procmail-3.22-5'
RPM), and the only reason I've changed the procmailrc since then is
because it stopped working when I moved to RH 8.0.

Ideas?

-- 
Graham Freeman
Manager of Information Technology
Far Western Anthropological Research Group, Inc.
+1 530 756 3941 ext 111
graham(_at_)farwestern(_dot_)com


_______________________________________________
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>