procmail
[Top] [All Lists]

EXITCODE/HOST doesn't work as I expect...

2001-09-16 09:17:50
Hi all,

after poring over newsgroup postings and web pages, I'm still mystified.  From
what I understand, the following script *should* do virtually nothing:

# start of script
VERBOSE=yes

EXITCODE=77
HOST
# end of script
Instead, running procmail 3.21 on a NetBSD box, I see an unexpected result when
I run "procmail procmailrc < test_message" where test_message is

From: ericding(_at_)localhost(_dot_)localdomain
To: ericding(_at_)localhost(_dot_)localdomain
Subject: testing exitcode/host

hello world

Instead of doing nothing, I see the following in the stdout logging:

myhost:~ [129] procmail procmailrc < testmsg
procmail: [13261] Fri Sep 14 17:30:00 2001
procmail: Assigning "EXITCODE=77"
procmail: Assigning "HOST"
procmail: HOST mismatched "myhost.localdomain"
procmail: Locking "/var/mail/ericding.lock"
procmail: Assigning "LASTFOLDER=/var/mail/ericding"
procmail: Opening "/var/mail/ericding"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/ericding.lock"
procmail: Notified comsat: "ericding(_at_)3399:/var/mail/ericding"
 Subject: testing exitcode/host
  Folder: /var/mail/ericding                                                117

I'm confused; I thought HOST made procmail exit immediately.  Why is procmail
still insisting on delivering the mail to my default mailbox?

Thanks,
Eric


__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
_______________________________________________
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>