procmail
[Top] [All Lists]

Re: Special characters in variables

2003-06-07 21:27:49
On Sat, Jun 07, 2003 at 04:57:48PM +0100, Alan Clifford wrote:

Is there a procmail solution rather than using grep?

Almost always.  Exceptions that I know of are related to bounds, the
handling of \< and \> and grep's -f option.

* ? echo "${MARP_TOCC}" | grep -s -e "${MARP_REPLY_FROM}\|${MARP_REPLY_TO}"

This would seem to be the same as:

 * $ MARP_TOCC ?? ${MARP_REPLY_FROM}\|${MARP_REPLY_TO}

unless your `grep` deals strangely with the OR bar.  Also, if you're
launching grep in a subshell in a condition, you may want to use the
"-q" option to suppress output.

-- 
  Paul Chvostek                                             
<paul(_at_)it(_dot_)ca>
  Operations / Abuse / Whatever
  it.canada, hosting and development                   http://www.it.ca/


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