Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
procmail recipe
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Seppi
n00b
n00b


Joined: 31 Oct 2004
Posts: 11

PostPosted: Mon Aug 29, 2005 3:25 pm    Post subject: procmail recipe Reply with quote

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
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Tue Aug 30, 2005 12:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum