procmail
[Top] [All Lists]

Re: EXITCODE procmail, qmail

2003-02-20 06:58:17
Hi -

I made the changes accordingly, and I now get a copy in the designated
mailbox, but no EXITCODE mail is sent out anymore. What's wrong now?

   Lars Hecking lhecking at nmrc.ucc.ie

:0 c
* !^TO_.*(valid_user)@domain\.net
{
         EXITCODE=100

         :0 f
         | echo "Sorry, invalid recipient. (#5.1.1)"

         :0 r
         |
 }

:0 A:
IN.SPIDERWEB

Here is the relevant log for this:
---
procmail: Match on ! 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^-a-zA-Z0-9_.])?).*(validuser)@domain\.org"
procmail: Forking "procmail"
procmail: Locking "IN.SPIDERWEB.lock"
procmail: [13016] Thu Feb 20 08:47:35 2003
procmail: Assigning "EXITCODE=100"
procmail: Executing "echo,Sorry, invalid recipient. (#5.1.1)"
procmail: Assigning "LASTFOLDER=IN.SPIDERWEB"
procmail: Opening "IN.SPIDERWEB"
procmail: Assigning "LASTFOLDER=|"
procmail: Acquiring kernel-lock
procmail: Notified comsat: "hiebaum@:/usr/home/hiebaum/mail/incoming/|"
  Folder: |                                                                  35
procmail: Unlocking "IN.SPIDERWEB.lock"
procmail: Notified comsat: 
"hiebaum(_at_)7017:/usr/home/hiebaum/mail/incoming/IN.SPIDERWEB"
From nhiebaum(_at_)yahoo(_dot_)com Thu Feb 20 13:47:34 2003
  Folder: IN.SPIDERWEB                                                     1694
---


Mail that's not addressed to my main address should be bounced back, *but*
I want to have a copy of it in my box, titled "IN.SPIDERWEB." The bouncing
works find, but putting a copy into IN.SPIDERWEB not.

 This logic is flawed. procmail cannot know whether email was addressed to
 your main address because that information is in the envelope - which
 procmail never sees.

Well ... the !^TO_ matches mails that have *not* the correct address.

-- 
CU, Niki





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