procmail
[Top] [All Lists]

Funny \/ handling?

2002-10-28 18:54:23

Using the following procmail script fragment:

    LOGFILE="${HOME}/PROCMAIL.LOG"
    VERBOSE="on"
    LOGABSTRACT="all"
    #
    :0 wh
    SENDER=| formail -rzx To:
    #
    :0 wfh
    * ? test "${SENDER}" != "foo(_at_)bar"
    | formail -I "X-Delivered-Sender: ${SENDER}"
    #
    :0 wfhE
    | formail -A "X-Diagnostic: No machine generated return address"
    #
    :0
    * ^from \/[-0-9a-z(_dot_)_+=?]+(_at_)[-0-9a-z(_dot_)_+=]+
    { ENV_FROM="${MATCH}" }
    #
    :0
    /dev/null

with the following email, (the envelope from record was intentionally
omitted):

    Received: (qmail 20654 invoked by uid 501); 29 Oct 2002 00:09:38 -0000
    Message-ID: 
<20021029000938(_dot_)20653(_dot_)qmail(_at_)somewhere(_dot_)someplace(_dot_)com>
    To: someone(_at_)somedomain(_dot_)com
    Subject: asdf
    Date: 29 Oct 2002 00:09:38 -0000

    asdf

gives a PROCMAIL.LOG, "procmail fragment < email" was used):

    procmail: [23005] Mon Oct 28 17:27:16 2002
    procmail: Assigning "LOGABSTRACT=all"
    procmail: Assigning "SENDER="
    procmail: Executing "formail,-rzx,To:"
    procmail: Program failure (67) of "formail"
    procmail: Executing " test "${SENDER}" != "foo(_at_)bar""
    procmail: Program failure (1) of " test "${SENDER}" != "foo(_at_)bar""
    procmail: Assigning "LASTFOLDER= test "${SENDER}" != "foo(_at_)bar""
    procmail: No match on " test "${SENDER}" != "foo(_at_)bar""
    procmail: Executing "formail,-A,X-Diagnostic: No machine generated return 
address"
    procmail: Assigning "MATCH="
    procmail: Matched "foo(_at_)bar"
    procmail: Match on "^from \/[-0-9a-z(_dot_)_+=?]+(_at_)[-0-9a-z(_dot_)_+=]+"
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    procmail: Assigning "ENV_FROM=foo(_at_)bar"
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    procmail: Assigning "LASTFOLDER=/dev/null"
    procmail: Opening "/dev/null"
    From foo(_at_)bar  Mon Oct 28 17:27:16 2002
     Subject: asdf
      Folder: /dev/null                                                     306

with:

    procmail v3.13.1 1999/04/05, Copyright (c) 1999, Stephen R. van den Berg
                                                            
<srb(_at_)cuci(_dot_)nl>

    Submit questions/answers to the procmail-related mailinglist by sending to:
            <procmail-users(_at_)procmail(_dot_)org>

    And of course, subscription and information requests for this list to:
            <procmail-users-request(_at_)procmail(_dot_)org>

    Locking strategies:     dotlocking
    Default rcfile:         $HOME/.procmailrc

        John

-- 

John Conover, conover(_at_)rahul(_dot_)net, http://www.johncon.com/


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>