procmail
[Top] [All Lists]

Re: Symbolic References or Alias list

1999-01-09 15:50:18
Bill Moseley <moseley(_at_)hank(_dot_)org> writes:
I'd like to use procmail to extract the local name from an email address
and use that to look up an email address where to forward the message.

I guess I'd like to do something like

  : 0
  * ^X-Rcpt-To: \/(_dot_)*(_at_)mydomain(_dot_)org
  ! ${$MATCH}

But of course, $MATCH will contain everything after the \/, and I'd need
a way to make sure $MATCH is a defined variable.  And I don't know how
to use a variable as a symbolic reference.

Wouldn't it be easier to use fetchmail in multidrop mode, passing it
"-E X-Rcpt-To" to specify the header?  It can do this all for you and
be faster about it as well.


Philip Guenther

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