procmail
[Top] [All Lists]

Help on attachment

1997-04-19 03:50:00

Hi everybody,

We have the following receipe (given below).
What it does is if the subject field contains "cprofile" then it will
cat the content of "ctest" file to the sender and all mails are
transferred
to my new address.

My question :
Is there any way by which we can attach a file named "product.zip"
along with it, which will go as an attachement to the sender along with
the content of "ctest" file. i.e. Sender should receive the content of
"ctest" file & also receive "product.zip" as an attachment. Is this
possible ??
If yes, can anybody help me in making changes to the below given receipe.
I did read "best_of_procmail_list" but could not find any solution. Any
help will be highly appreciated. 

Please send responses directly to me as I'm not currently a subscriber
to the list.

Thank you all in advance.
Nanu

######### Recipe Starts ##########
:0 ch
*   ^Subject:.*cprofile
* ! ^FROM_DAEMON
* ! ^X-Loop: haripati(_at_)cyberspace\(_dot_)org
| ( formail -rA"X-loop: haripati(_at_)cyberspace(_dot_)org"; \
        cat $HOME/.procmail/ctest ) | $SENDMAIL -oi -t 

:0
! grenleaf(_at_)bom2(_dot_)vsnl(_dot_)net(_dot_)in
######### Recipe Ends Here ##########


<Prev in Thread] Current Thread [Next in Thread>
  • Help on attachment, grenleaf <=