November 25, 2024, 03:20:13 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: body of the email message extracting using formail in procmail: Help  (Read 12078 times)

Offline dsksivakumar

  • New Member
  • Posts: 3
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....
« Last Edit: June 04, 2009, 04:39:05 AM by dsksivakumar »

Offline dsksivakumar

  • New Member
  • Posts: 3
Re: body of the email message extracting using formail in procmail: Help
« Reply #1 on: June 04, 2009, 04:37:17 AM »
solution : use the formail comand with -f option


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