[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: procmail: $MATCH erst später substituieren



Hallo,

Am Fre, 17 Nov 2006, Daniel Leidert schrieb:
[..]
>MAILLIST_DEBIAN_DEVEL   = "$DELIVERMAIL -e -a $LOGNAME -m user.$LOGNAME.ml.debian.devel"
>MAILLIST_DEBIAN_DEVEL_A = "$DELIVERMAIL -e -a $LOGNAME -m user.$LOGNAME.ml.debian.devel-announce"
[..]
>:0
>* ^List-Id: .*debian-.+\.lists\.debian\.org
>* ^X-Mailing-List: <debian-\/[^@]+
>| /bin/sed 1d | $MAILLIST_DEBIAN
>:0 e
>{ EXITCODE=75 HOST }

Wieso willst du fuer die MLs eigene Variablen? Und beim sed wuerde ich
uebrigens auch noch kontrollieren, dass es das Richtige erwischt.
Versuch's mal mit:

MAILLIST_DEBIAN_BASE = "$DELIVERMAIL -e -a $LOGNAME -m user.$LOGNAME.ml.debian"
# [..]
:0
* ^List-Id: .*debian-.+\.lists\.debian\.org
* ^X-Mailing-List: <debian-\/[^@]+
| /bin/sed '1{/^From /d;}' | ${MAILLIST_DEBIAN_BASE}.$MATCH
:0 e
{ EXITCODE=75 HOST }

BTW: Procmail kennt ein 'INCLUDERC', auch das kann die Sache
uebersichtlicher machen.

HTH,
-dnh

-- 
"Usenet is like a herd of performing elephants with diarrhea -- massive,
difficult to redirect, awe-inspiring, entertaining, and a source of mind-
boggling amounts of excrement when you least expect it."  -- spaf (1992)



Reply to: