Excerpts from mail: (08-Feb-98) Re: substituting for dirname by David W Tamkin
I'd rather make it more flexible:
* $ ^TO_$LOGNAME\+\/.*
Um, why don't you just use $1? Then you could handle Bcc:'s sent to the
e-mail address with the plus in it. I'm fairly sure recent versions of
sendmail configured to use procmail as the LDA and for plus addressing will
set procmail's $1 to whatever comes after the plus.
ARG = $1
* ARG ?? ^^foo^^
You can't test $1 directly, hence the assignment to ARG.