On Thu, 02 Sep 1999 17:15:31 +0300, Liviu Daia
<Liviu(_dot_)Daia(_at_)imar(_dot_)ro>
wrote:
On 2 September 1999, Mail Forward
<diacom-all(_at_)diacom-systemhaus(_dot_)de>
wrote:
can someone maybe help before i spend hours of understanding how
to do or if it's possible at all:
(If you do not have access to the manuals locally, you can find them
at <http://www.iki.fi/era/procmail/>)
all incomming mails should be forwarded to what's in X-Envelope-To
Depending on the expected content of this "X-Envelope-To:" (that is,
bare address vs. "User <user(_at_)somewhere>"), you might try
:0
* ^X-Envelope-To:[ ]+\/.*
! $MATCH
I believe you should even be able to use this for full, commented
addresses, if you just include proper quoting:
:0
* ^X-Envelope-To:[ ]*\/[^ ].*
! "$MATCH"
This should work (with a real Sendmail at least) even if MATCH
contains funny stuff like "User <user(_at_)somewhere>".
if this is not possible with a mail it must be forwarded to x(_at_)y(_dot_)z
Sorry, I can't parse this.
Something like this, after the previous recipe, perhaps?
:0
! x(_at_)y(_dot_)z
Anything matched by the previous recipe will terminate processing as
soon as the forward succeeds. Whatever reaches as far as this recipe
will, in other words, not have matched the previous recipe, and thus
not contain an X-Envelope-To header.
(If you also want to somehow handle the case when the X-Envelope-To
header is present but contains an erroneous address, you will perhaps
need to elaborate your question a bit.)
/* era */
--
Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition