procmail
[Top] [All Lists]

"if this then that" logic doesn't seem to work

2001-04-02 06:30:07
Can anyone help me with this?

testing.rc - INTENT is to check 2 items before checking the body. If the
From and Subject match - then check the body for a particular string (in
this case: xxff).  If all of this matches, resend the message to a
particular mail address AND put a copy in my mail folder OTHERWISE -
just put a copy in my mail folder.

:0
* ^From(_dot_)123247N(_at_)knotes(_dot_)kodak(_dot_)com
* ^Subject:.*test
{
        :0 B
        *xxff
        :0 c
        ! bird(_at_)cyber(_dot_)kodak(_dot_)com
        :0
        in-testing
}

The log file shows the following:

procmail: Assigning "INCLUDERC=/home/bird/Procmail/testing.rc"
procmail: Match on "^From(_dot_)123247N(_at_)knotes(_dot_)kodak(_dot_)com"
procmail: Match on "^Subject:.*test"
procmail: No match on "xxff"
procmail: Skipped "! bird(_at_)cyber(_dot_)kodak(_dot_)com"
procmail: Assigning "LASTFOLDER=in-testing"
procmail: Opening "in-testing"
procmail: Acquiring kernel-lock
From 123247N(_at_)knotes(_dot_)kodak(_dot_)com  Mon Apr  2 08:56:37 2001
 Subject: message 1 test
  Folder:
in-testing                                                        722
procmail: Notified comsat: "bird(_at_)1449:/home/bird/mail/in-testing"
procmail: Assigning "INCLUDERC=/home/bird/Procmail/testing.rc"
procmail: Match on "^From(_dot_)123247N(_at_)knotes(_dot_)kodak(_dot_)com"
procmail: No match on "^Subject:.*test"
procmail: Skipped "! bird(_at_)cyber(_dot_)kodak(_dot_)com"
procmail: Locking "/var/mail/bird.lock"
procmail: Assigning "LASTFOLDER=/var/mail/bird"
procmail: Opening "/var/mail/bird"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/bird.lock"
From 123247N(_at_)knotes(_dot_)kodak(_dot_)com  Mon Apr  2 08:56:39 2001
 Subject: message 2
  Folder:
/var/mail/bird
722        (****WHY DID THIS GET SENT TO

BIRD(_at_)CYBER(_dot_)KODAK(_dot_)COM??)
procmail: [8910] Mon Apr  2 08:56:40 2001
procmail: Notified comsat: "bird(_at_)3874206:/var/mail/bird"
procmail: Assigning "INCLUDERC=/home/bird/Procmail/testing.rc"
procmail: Match on "^From(_dot_)123247N(_at_)knotes(_dot_)kodak(_dot_)com"
procmail: Match on "^Subject:.*test"
procmail: Match on "xxff"
procmail: Skipped "c"
procmail: Assigning "LASTFOLDER=:0"
procmail: Opening ":0"
procmail: Acquiring kernel-lock
From 123247N(_at_)knotes(_dot_)kodak(_dot_)com  Mon Apr  2 08:57:00 2001
 Subject: message 3 test
  Folder:
:0
(****WHY DIDN"T THIS GO

ANYWHERE?)

Would appreciate any help on this!
thanks
jill bird
www.kodak.com

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail