procmail
[Top] [All Lists]

Re: Funny \/ handling? (fwd)

2002-10-29 02:55:10
---------- Forwarded message ----------

I have got an error message from informatik.rwth-aachen.de and
hope you don't see this letter twice.


On 29 Oct 2002, John Conover wrote:


Using the following procmail script fragment:

[...]

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



        Here, you miss the line that start with "From ";  (some friends
        call it "FROM_")  Now, this line is so important - that formail
        completes it for you.  It adds  "From foo(_at_)bar `DATE`" into the
        header.

    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"

        Formail process ... and we get the foo(_at_)bar  (:-)

    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"
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^

        MATCH is Okay.


Bye,
 Udi



_______________________________________________
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>
  • Re: Funny \/ handling? (fwd), Udi Mottelo <=