It was my understanding that procmail exits as soon as a match is made.
However, it appears from my logs that it matches and then continues to check
the other rules and executes the last match it finds. Could someone take a look
at this and tell me if I'm missing something? I have placed --> arrows on the
multiple rule matches in the log below. TIA.
.procmailrc:
SHELL=/usr/local/bin/bash
VERBOSE=yes
LOGABSTRACT=all
MAILDIR=$HOME/Mail
PMDIR=$HOME/.procmail
LOCKFILE=$PMDIR/.lockmail
LOGFILE=$PMDIR/log
INCLUDERC=$PMDIR/rc.listserv
:0 B:
* unsubscribe solaris-test.*
! listserv
:0 B:
* unsubscribe fw-1-mailinglist.*
* ^TO_fw-1-mailinglist(_at_)(_dot_)*
! listserv
:0 B:
* unsubscribe fw-1-mailinglist-test.*
* ^TO_fw-1-mailinglist-test(_at_)(_dot_)*
! listserv
:0 BH:
* is on vacation
* ^TO_fw-1-mailinglist(_at_)(_dot_)*
! owner-fw-1-mailinglist
:0 BH:
* out of the office
* ^TO_fw-1-mailinglist(_at_)(_dot_)*
! owner-fw-1-mailinglist
:0 BH:
* out of office
* ^TO_fw-1-mailinglist(_at_)(_dot_)*
! owner-fw-1-mailinglist
:0 BH:
* is on vacation
* ^TO_fw-1-mailinglist-test(_at_)(_dot_)*
! owner-fw-1-mailinglist
:0 BH:
* out of the office
* ^TO_fw-1-mailinglist-test(_at_)(_dot_)*
! owner-fw-1-mailinglist
:0 BH:
* out of office
* ^TO_fw-1-mailinglist-test(_at_)(_dot_)*
! owner-fw-1-mailinglist
:0:
* ^TO_solaris-test(_at_)(_dot_)*
! solaris-test-remailer
:0:
* ^TO_fw-1-mailinglist(_at_)(_dot_)*
! fw-1-mailinglist-remailer
:0:
* ^TO_fw-1-mailinglist-test(_at_)(_dot_)*
! fw-1-mailinglist-test-remailer
:0:
* ^FROM_DAEMON
! bouncbot
Procmail Log entry:
procmail: Unlocking "//.procmail/.lockmail"
procmail: Assigning "INCLUDERC=//.procmail/rc.listserv"
procmail: No match on "unsubscribe solaris-test.*"
procmail: No match on "unsubscribe fw-1-mailinglist.*"
procmail: No match on "unsubscribe fw-1-mailinglist-test.*"
procmail: Match on "is on vacation"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)fw-1-mailinglist(_at_)(_dot_)*"
procmail: No match on "out of the office"
procmail: No match on "out of office"
-->procmail: Match on "is on vacation"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)fw-1-mailinglist-test(_at_)(_dot_)*"
procmail: No match on "out of the office"
procmail: No match on "out of office"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)solaris-test(_at_)(_dot_)*"
procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)fw-1-mailinglist(_at_)(_dot_)*"
-->procmail: Match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?)fw-1-mailinglist-test(_at_)(_dot_)*"
procmail: Couldn't determine implicit lockfile from "/usr/lib/sendmail"
procmail: Locking ".lock"
procmail: Executing "/usr/lib/sendmail,-oi,fw-1-mailinglist-test-remailer"
procmail: [15257] Mon Oct 22 15:21:46 2001
procmail: Assigning "LASTFOLDER=/usr/lib/sendmail -oi
fw-1-mailinglist-test-remailer"
procmail: Unlocking ".lock"
From owner-fw-1-mailinglist-test Mon Oct 22 15:21:45 2001
Subject: I am on vacation, and I'd like to spam the list about it
Folder: /usr/lib/sendmail -oi fw-1-mailinglist-test-remailer 2002
procmail: Unlocking "//.procmail/.lockmail"