procmail
[Top] [All Lists]

Re: substituting for dirname

1998-02-09 11:30:31
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

        :0
        * ARG ?? ^^foo^^
        foo-folder

You can't test $1 directly, hence the assignment to ARG.

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