procmail
[Top] [All Lists]

Re: procmail error

2010-02-28 16:22:46
On Sun, 2010-02-28 at 11:21 -0500, Patrick Shanahan wrote:
* JW Simpson <john(_at_)swajime(_dot_)com> [02-28-10 09:59]:

It looks like EXTENSION was not set before calling that line.
Add a line just prior to that one:
    LOG="EXTENSION == '$EXTENSION'$NL"


So now the error will still happen but the log entry will be different?


If that's all you do?  Then yes ...

My point was that you have an unset variable for some reason for that
particular e-mail.

Google is your friend:
http://www.google.com/search?q=%22procmail+-a%22+EXTENSION 

Read comment #3 on this page -> http://www.dankohn.com/archives/321

The '-a' flag to procmail requires an argument:
$ man procmail | grep -A2 -- '^[[:space:]]*-a argument'
       -a argument
            This  will  set  $1 to be equal to argument.  Each
succeeding -a argument will set the next number variable ($2, $3, etc).
It can be used to pass meta information along to
            procmail.  This is typically done by passing along the $(_at_)x
information from the sendmail mailer rule.

At the very least, EXTENSION implies (by nomenclature) that "something"
should precede $EXTENSION in the call to procmail -a.

It looks like you are missing quotation marks (string delimiters) around
"$EXTENSION".  The difference is that /""/ is not unset and // is unset.
(The /'s are added for visibility purposes only.)

The point of suggesting that you LOG the variable's contents is to get
you into the mindset of troubleshooting your problems and researching
the answers ... before asking for help.

You should read Sean's disclaimer here ->
http://74.125.47.132/search?q=cache:WQt695mJQ6EJ:www.professional.org/procmail/+site:http://www.professional.org/procmail/+%22NO+EXCUSE%22&cd=1&hl=en&ct=clnk&gl=us&client=firefox-a
 




-- 
JW Simpson <john(_at_)swajime(_dot_)com>
SwaJime's Cove℠

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

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