procmail
[Top] [All Lists]

Recipe Modification Errors

1997-08-16 04:16:00
I made some modifications to a couple of simple recipes
and can't figure out the errors. It's embarrassingly
baffling, to say the least. It's after 3:30AM and
maybe I'm just too blurry-eyed?

In this one, I simply want the web inquiry form (mail)
to route into mailfolder Aaawww.IN which it does,
but I keep getting a duplicate in the main in-box.

:0 hc:
* !^FROM_DAEMON
* !^X-Loop: homes4u(_at_)garlic\(_dot_)com
#* ^TOhomes4u(_at_)garlic\(_dot_)com
#* ^TOcoldwell(_at_)banker\(_dot_)com
* ^From: nobody(_at_)quake\(_dot_)garlic\(_dot_)com
* ^From: nobody(_at_)garlic\(_dot_)com
* ^From: nobody
* ^Subject: Inquiry & Referral(WWW)

:0 c:
Aaawww.IN

I'm baffled by the first error line below, and the
one that says "closing brace unexpected" ... I didn't
use any braces!
$ cat pmlog
procmail: Error while writing to ""
procmail: Skipped "* ^From: nobody(_at_)quake\(_dot_)garlic\(_dot_)com"
procmail: Skipped "* ^From: nobody(_at_)garlic\(_dot_)com"
procmail: Skipped "* ^From: nobody"
procmail: Skipped "* ^Subject: Inquiry & Referral(WWW)"
procmail: Error while writing to ""
procmail: Skipped "* !^X-Loop: homes4u(_at_)garlic\(_dot_)com"
procmail: Skipped "* ^From: Mailer-daemon(_at_)(_dot_)*\(_dot_)com"
procmail: Skipped "* ^From: MAILER-DAEMON(_at_)(_dot_)*\(_dot_)com"
procmail: Skipped "* ^TOhomes4u(_at_)garlic\(_dot_)com"
procmail: Skipped "* ^TOhomes4u(_at_)quake\(_dot_)garlic\(_dot_)com"
procmail: Skipped "* ^TOcoldwell(_at_)banker\(_dot_)com"
procmail: Skipped "* ^Subject:.*Returned Mail.*"
procmail: Skipped "* ^Subject:.*Undeliverable Mail.*"
procmail: Skipped "{"
procmail: Closing brace unexpected
procmail: Lock failure on "/usr/spool/mail/homes4u.lock"
>From nobody Sat Aug 16 02:48:27 1997
Subject: Inquiry & Referral(WWW)
Folder: /usr/spool/mail/homes4u 895


Here I simply want to put any bounces from bad e-mail
addresses that were responded to from the web inquiry
form into mailfolder Areject1.IN after extracting
the (bad) e-mail address and writing it to reject1.log
for cleaning up the master e-mail log written from a perl
script that processes the form.

:0 hc:
#* !^FROM_DAEMON
* !^X-Loop: homes4u(_at_)garlic\(_dot_)com
* ^From: Mailer-daemon(_at_)(_dot_)*\(_dot_)com
* ^From: MAILER-DAEMON(_at_)(_dot_)*\(_dot_)com
* ^TOhomes4u(_at_)garlic\(_dot_)com
* ^TOhomes4u(_at_)quake\(_dot_)garlic\(_dot_)com
* ^TOcoldwell(_at_)banker\(_dot_)com
* ^Subject:.*Returned Mail.*
* ^Subject:.*Undeliverable Mail.*

{
:0 c:
* ^From: Mailer-daemon(_at_)(_dot_)*\(_dot_)com
* ^From: MAILER-DAEMON(_at_)(_dot_)*\(_dot_)com
| formail -rtzxTo: >> $HOME/procmail/reject1.log
}

:0 a:
Areject1.IN

Nothing shows up in Areject1.IN and no reject1.log -
I just can't figure out the bad modification screw ups
here either. Here's the final attempt test log after
hours of trying different stuff.

cat pmlog
procmail: Skipped "* ^From: nobody(_at_)quake\(_dot_)garlic\(_dot_)com"
procmail: Skipped "* ^From: nobody(_at_)garlic\(_dot_)com"
procmail: Skipped "* ^From: nobody"
procmail: Skipped "* ^Subject: Inquiry & Referral(WWW)"
procmail: Error while writing to ""
procmail: Skipped "* !^X-Loop: homes4u(_at_)garlic\(_dot_)com"
procmail: Skipped "* ^From: Mailer-daemon(_at_)(_dot_)*\(_dot_)com"
procmail: Skipped "* ^From: MAILER-DAEMON(_at_)(_dot_)*\(_dot_)com"
procmail: Skipped "* ^TOhomes4u(_at_)garlic\(_dot_)com"
procmail: Skipped "* ^TOhomes4u(_at_)quake\(_dot_)garlic\(_dot_)com"
procmail: Skipped "* ^TOcoldwell(_at_)banker\(_dot_)com"
procmail: Skipped "* ^Subject:.*Returned Mail.*"
procmail: Skipped "* ^Subject:.*Undeliverable Mail.*"
procmail: Skipped "{"
procmail: Closing brace unexpected
procmail: Lock failure on "/usr/spool/mail/homes4u.lock"
>From MAILER-DAEMON Sat Aug 16 03:07:08 1997
Subject: Returned mail: Host unknown (Name server: china-gold.com: host not fo
Folder: /usr/spool/mail/homes4u 1148

Thanks in advance for any assistance.

Eric

<Prev in Thread] Current Thread [Next in Thread>