procmail
[Top] [All Lists]

Re: identifying no "From" header

2005-07-25 09:00:14
Udi Mottelo schreef:

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

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



Create an executable test.rc:

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

  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