Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: dsksivakumar on June 03, 2009, 09:09:28 AM

Title: body of the email message extracting using formail in procmail: Help
Post by: dsksivakumar on June 03, 2009, 09:09:28 AM
i am using formail in procmailrc file  to extract he body of the message.

The receipe which i use to separate the body of the message is
 
:0 bc
* ^TOaaa@xxxxx.com
      | formail -I "from"  >> /home/xxx/email

The body of the message extracts and save to /home/xxx/email.......

The problem is , when the body of message is extracted it is saved in /home/xxx/email folder with some extra content as
From: foo@bar  wed 27 19/04/09.

The  From:foo@bar  is  the default address which formail subsitutes if the sent id is not found...

 What sutiable receipe can be added so that  only the body of the message is saved  without the default sent id.. ie: From:foo@bar  .....    plz help ASAP....
Title: Re: body of the email message extracting using formail in procmail: Help
Post by: dsksivakumar on June 04, 2009, 04:37:17 AM
solution : use the formail comand with -f option


      | formail -I -f "from"  >> /home/xxx/email