From 4f616c9efaf89b47a77ff368b52b41a2500bf16d Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 17 Aug 2007 16:57:47 +0200 Subject: [PATCH 1/1] introduce EQ_TO --- procmail/eqdomains | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/procmail/eqdomains b/procmail/eqdomains index 45e66e4..b5e434d 100644 --- a/procmail/eqdomains +++ b/procmail/eqdomains @@ -12,13 +12,22 @@ { :0 * ORIG_LOCAL ?? ^\/[^=]+ - { EQ_LOCAL="$MATCH" } + { + EQ_LOCAL="$MATCH" + EQ_TO="$MATCH" + } :0 * ORIG_LOCAL ?? .+=\/.+ - { EQ_DOMAIN="$MATCH" } + { + EQ_DOMAIN="$MATCH" - LOG="eqdomain: message to $EQ_LOCAL@$EQ_DOMAIN via $ORIG_DOMAIN$NL" + :0 + * EQ_LOCAL ?? . + { EQ_TO="$EQ_TO@$EQ_DOMAIN" } + } + + LOG="eqdomain: message to $EQ_TO via $ORIG_DOMAIN$NL" } } -- 2.39.5