procmail
[Top] [All Lists]

Re: .forward does call autoreply.proc but no message gets sent

2002-03-01 16:12:53
Hi

Getting closer.

It seems there is more than a few errors in the .proc
I created a .procmailrc in place of .forward , cut n pasted the code and
added logfile and verbose.

the script fails on the match

* $^To:.*$LOGNAME

Take it out and it works (ish) but $DOMAIN contains a list like
www.domain1.com www.domain2.com www.domain2.net
which it seems to try and match against $LOGNAME but since
$LOGNAME="obantec-dial" it fails.

Hardcoding $DOMAIN to "obantec-dial" still fails so i think its a problem
with  * $^To:.*$LOGNAME

I assume $=$DOMAIN

Extract from test log

procmail: Executing "groups $LOGNAME | awk "{print \$NF}""
procmail: Assigning "GROUP=domain1"
procmail: Executing "ls -o -I domain* /home/domain | grep $GROUP |awk
"{print \$(NF-2)}""
procmail: Assigning "DOMAIN=example1.obantec.net
guest.obantec.net
homedsl.cjb.net
www.obantec.net"
procmail: No match on "^To:.*obantec-dial"
^^^ this is the match that fails ^^^ which is using * $^To:.*$LOGNAME

Mark
--
Obantec Support
www.obantec.net
WebHosting and Domains
Nominet UK Tag Holder
----- Original Message -----
From: "David W. Tamkin" <dattier(_at_)ripco(_dot_)com>
To: <procmail-users(_at_)procmail(_dot_)org>
Sent: Friday, March 01, 2002 7:41 PM
Subject: Re: .forward does call autoreply.proc but no message gets sent


Sean told "Support,"

| >* $^To:.*$LOGNAME
|
| $ at the beginning is so totally unnecessary.

Yes, it is necessary.

| >* !^X-Loop: $LOGNAME

"Support" should add one there as well.


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

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