Re: [Exim] List filter rules

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Greg Matheson
Datum:  
To: exim-users
Betreff: Re: [Exim] List filter rules
On Wed, 30 Oct 2002, Nigel Metheringham wrote:

> # poorly identified
> elif $sender_address contains "owner-" then
>     if $sender_address matches "owner-([a-z0-9-]+)-outgoing@" then
>         save Maildir/.list.${lc:$1}/
>     elif $sender_address matches "owner-([a-z0-9-]+)@" then
>         save Maildir/.list.${lc:$1}/
>     elif $header_sender: matches "owner-([a-z0-9-]+)@" then
>         save Maildir/.list.${lc:$1}/
>     else
>         save Maildir/.list.unknown/
>     endif
>     finish


I tried to adjust this to filter mail of the form
list-owner@list, with these lines:

elif $sender_address contains "owner" then
        if $sender_address matches "owner-([a-z0-9-]+)-outgoing@" then
                save Mail/${lc:$1}
        elif $sender_address matches "owner-([a-z0-9-]+)@" then
                save Mail/${lc:$1}
        elif $header_sender: matches "owner-([a-z0-9-]+)@" then
                save Mail/${lc:$1}
        elif $sender_address matches "([a-z0-9-]+)-owner@" then
                save Mail/${lc:$1}
        else
                save Mail/unknown
        endif


But mail with this header:

>From mailbox-owner@??? Wed Oct 30 08:59:57 2002

Return-path: <mailbox-owner@???>
Envelope-to: greg@localhost
Delivery-date: Wed, 30 Oct 2002 08:59:57 +0800
Received: from [127.0.0.1] (helo=localhost)
        by 6505.LM-1042 with esmtp (Exim 4.10)
        id H4RREV-006OAN-00
        for greg@localhost; Wed, 30 Oct 2002 08:44:55 +0800
[etc]


piped to exim -bf .forward produces this message:

    Sender taken from "From" line
    Sender    = mailbox-owner@???
    Recipient = greg@???
    Testing Exim filter file .forward


    Save message to: Mail/unknown
    Finish
    Filtering set up at least one significant delivery or other action.
    No other deliveries will occur.


Why isn't "mailbox-owner@???" matching on
"([a-z0-9-]+)-owner@"

--
Greg Matheson                Everybody's talking about
Chinmin College              a new way of walking.
                             --Memphis Jazz Band
Taiwan Penpals Archive <URL: http://penpals.chinmin.edu.tw/>