procmail
[Top] [All Lists]

Re: Forwarding mail from user+foo to foo

1997-12-12 23:45:14
rsr(_at_)macromedia(_dot_)com writes:
On December 9, 1997, Philip Guenther <guenther(_at_)gac(_dot_)edu> said:
     # If it's not a special case, forward to the part after the plus.
     # The "--" keep someone from slipping an argument to sendmail
     # by mailing to, say, <rsr+-bs(_at_)your-machine(_dot_)where(_dot_)ever>
     :0
     ! -- "$ARG"

Hmm, wait a second -- we're not checking whether $ARG is anything,
so if I send it to just rsr, the above is still matched, and
sendmail tries to mail to a blank address ...

Oh, you actually receive mail at plain "rsr"?

        :0
        * ARG ?? .
        ! -- "$ARG"

Note that ARG will always be set, so the most basic test is whether it
is null or not.  With current versions of sendmail there's no way to
tell apart the following addresses from your .procmailrc:

        rsr(_at_)wherever
        rsr+(_at_)wherever


Philip Guenther