Find the answer to your Linux question:
Results 1 to 1 of 1
I am configuring procmail to seprate the body of the email message and the attachment sent along with the email and save it in the seprate folder. For doing this ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    7

    procmail recipe configuration for seprating body of the message and attahchment

    I am configuring procmail to seprate the body of the email message and the attachment sent along with the email and save it in the seprate folder.

    For doing this i use the following procmail recipe to perform the above mentioned .

    :0 bc
    * ^TOxxx@xyz.com
    |formail -f -I "From" >> /home/xxx/email

    This recipe i use to seprate the body of the message. It works well.

    :0fw
    | /home/siva/extract.sh
    This recipe is for seprating the attachment sent along with the email.

    The extract.sh is the file which contains the scripts to extract the attachment ....

    This also works well. The attachment saves in a seprate folder

    But the problem is while seprating the body of the message and attachment , both the body of the message and contents in attachment are saved in the same folder where the body of the message to be saved.

    I want to configure in such a way that the , body of the message should only be saved in folder mentioned for it . Not also the attachment contents should be saved in same folder where the body of the message to be saved.

    Can some one provide me the solution to solve this problem ASAP. plz post the suitable recipe which can used for this..............................
    Last edited by dsksivakumar; 06-12-2009 at 06:34 AM. Reason: To explain the problem in detail

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...