LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Three actions in a recipe of Procmail (http://www.linuxquestions.org/questions/linux-software-2/three-actions-in-a-recipe-of-procmail-115888/)

Borelian 11-14-2003 04:46 AM

Three actions in a recipe of Procmail
 
Hi.

I'm filtering my emails using Procmail... I want to do:

1.- Encrypt all mails comming from a specific address (any@email.com)
2.- Save it in a "special" folder (Encrypted)
3.- Send me an email notifing this new message.

i'm using this:

:0
* ^From:.*any@email.com
{
:0 fbw
| gpg -r my@email.com -a -e

:0
$MAILDIR/.Encrypted/

:0
| echo "Subject: Received an Special message" | $SENDMAIL -oi my@email.com

}

The first recipe is working well (the encription), and the second is executed but not the third. if i change the order between the the second and third recipes, it execute the second but not the third.

Any help?

Thanks.

libCog 11-11-2012 06:48 AM

Did you ever figure this out?

I'm interested in doing the same, so a working solution would be interesting.


All times are GMT -5. The time now is 01:34 PM.