Derek has this recipe,,
| :0:
| * ^Delivered-to:.*\/(dev|doc|horde|imp|kronolith|turba)@lists\.horde\.org
| * MATCH ?? ()\/[^(_at_)]+
| $INBOXES/list-horde-$MATCH
but he finds,
| Things seem to work, but my procmail regular expressions need some help. :)
| I want the final $MATCH to be just the list name or the part before the @,
| but the final $MATCH seems to vary greatly. Here are samples from my log
| file.
|
|
| procmail: Matched "imp(_at_)lists(_dot_)horde(_dot_)org"
| procmail: Match on
"^Delivered-to:.*\/(dev|doc|horde|imp|kronolith|turba)@lists\.horde\.org"
| procmail: Matched "imp(_at_)lists(_dot_)horde"
| procmail: Match on "()\/[^(_at_)]+"
|
| procmail: Matched "horde(_at_)lists(_dot_)horde(_dot_)org"
| procmail: Match on
"^Delivered-to:.*\/(dev|doc|horde|imp|kronolith|turba)@lists\.horde\.org"
| procmail: Matched "horde(_at_)lists(_dot_)hor"
| procmail: Match on "()\/[^(_at_)]+"
|
| procmail: Matched "dev(_at_)lists(_dot_)horde(_dot_)org"
| procmail: Match on
"^Delivered-to:.*\/(dev|doc|horde|imp|kronolith|turba)@lists\.horde\.org"
| procmail: Matched "dev(_at_)lists(_dot_)horde"
| procmail: Match on "()\/[^(_at_)]+"
|
| procmail: Matched "kronolith(_at_)lists(_dot_)horde(_dot_)org"
| procmail: Match on
"^Delivered-to:.*\/(dev|doc|horde|imp|kronolith|turba)@lists\.horde\.org"
| procmail: Matched "kronolith(_at_)lists"
| procmail: Match on "()\/[^(_at_)]+"
|
| procmail: Matched "turba(_at_)lists(_dot_)horde(_dot_)org"
| procmail: Match on
"^Delivered-to:.*\/(dev|doc|horde|imp|kronolith|turba)@lists\.horde\.org"
| procmail: Matched "turba(_at_)lists(_dot_)hor"
| procmail: Match on "()\/[^(_at_)]+"
There was a problem with reusing MATCH within a single recipe that was fixed
several versions ago. Upgrading to 3.15 will help if that's the cause of the
trouble here.
For now, while you're still using 3.10,
:0
* ^Delivered-to:.*\/(dev|doc|horde|imp|kronolith|turba)@lists\.horde\.org
{ LONGMATCH=$MATCH }
:0A:
* LONGMATCH ?? ^^\/[^(_at_)]+
$INBOXES/list-horde-$MATCH
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail