procmail
[Top] [All Lists]

Re: identifying no "From" header

2005-07-25 09:53:47
On Mon, 25 Jul 2005, Ruud H.G. van Tol wrote:

Udi Mottelo schreef:

echo "Hello" | formail | procmail ./procmailrc
  Formail will add the From_ as needed.

Nice. The 'Hello' will then be in the body.

        BTW.  If you write:

echo "From: hello" | formail ...

        Formail will paste this "From:" line as part of the header
        Just for you Lloyd (:-)



Create an executable test.rc:

----------------------------
#!/usr/local/bin/procmail -m

        Hi this is the first time that I see procmail in shebang
        line - yes, I buy it!  (:-)

B,
  Udi



 DEFAULT = '/dev/null'

 :0
 * ^^\/(.*$)*
 { LOG = "H:$MATCH:" }

 :0
 * B ?? ^^\/(.*$)*
 { LOG = "B:$MATCH:" }
----------------------------

and you can do:

 echo "Hello again" | formail | test.rc


First do 'which procmail' to find the location of procmail on your
system, and adjust the 'shebang' accordingly.
http://en.wikipedia.org/wiki/Shebang

-- 
Grtz, Ruud


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.


---------------------------------------------------------------------------
Udi Mottelo - Unix System Administrator.
Faculty of Engineering - Tel-Aviv University
E-Mail: uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il    Phone: +972-3-6409446
---------------------------------------------------------------------------

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail