procmail
[Top] [All Lists]

Re: Unintended consequences

2006-04-10 01:27:51
On Wed, 5 Apr 2006, Professional Software Engineering wrote:


At 17:03 2006-04-05 -0400, fleet(_at_)teachout(_dot_)org wrote:

The action pipe I'm using is: /bin/echo -e $CURTIME : foreign charset :
$MATCH >> /home/fleet/updates/spam.log

MATCH in this case contains "[asterisk] Some Stupid Title [asterisk]".
Asterisk is, of course, the asterisk symbol.

I'm betting it's not actually in quotes, but you're using them here to
delineate the content from the rest of your statement.

Correct.

Place it in quotes.  Compare the output of the following for example:

OK. MATCH=* Levitra Update *

I can reassign MATCH1="$MATCH" - and echo $MATCH1 - with the same problem.
Each asterisk is considered a request for a directory listing.

If I reassign MATCH1='$MATCH' - and echo $MATCH1 - then all I get is the
variable $MATCH1 (unexpanded).

I'm thinking I could identify the asterisk (and other "dangerous" symbols)
like:
     * (\*|\|) ?? MATCH
     trashit

thereby killing processing of this message before the echo pipe action
later on.

OR just log the info and write a "report" script to get the info I want.

                                - fleet -




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