View previous topic :: View next topic |
Author |
Message |
Seppi n00b

Joined: 31 Oct 2004 Posts: 11
|
Posted: Mon Aug 29, 2005 3:25 pm Post subject: procmail recipe |
|
|
Hope this one is not too offtopic in here, but
I have trouble to get a simple procmail recipe to run.
All I want to do is to extract the mail body using the b-flag and write the content to a file. But I always get the whole message into the file.
Code: | :O b
* ^Subject:.*test
$HOME/test.txt |
|
|
Back to top |
|
 |
papal_authority Veteran


Joined: 31 Mar 2004 Posts: 1823 Location: Canada
|
Posted: Tue Aug 30, 2005 12:10 am Post subject: |
|
|
There's a decent HOWTO here. Basically they parse the body into a variable via sed. IIRC, formail -I "" will also retrieve the body which is probably easier. HTH  _________________ The free market gave me gonorrhea. |
|
Back to top |
|
 |
|