[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Procmail forward to cell phone



Christopher Fowler wrote:
> Here is my current rule that forwards email from a sales rep to
> Mail/Sales
> -------------------------------------------
> :0
> * ^From.*XXXXX at outpostsentinel.com
> Mail/Sales
> -------------------------------------------
> 
> I want to modify this rule to do 2 things
> 
> 1.  Put the mail in Mail/Sales
> 2.  Forward the mail to my cell phone.


To do this you will need a copy of the rule (each procmail ruleset can 
only have one destination)

Here's an idea, first check to see if the email is from the sales 
weasel, if so then open a copy ":0c" and if the subject contains 
"IMPORTANT" then use smssent to forward a copy to you, else continue and 
send the original to Mail/Sales

:0
* ^From.*XXXXX at outpostsentinel.com
{
     :0c
     * ^Subject: IMPORTANT
     |/path/to/smssend

     :0
     Mail/Sales
}

If you don't care about the "Subject" check, then just delete that line 
and it will just send a copy to your phone and file the original in 
Mail/Sales.

hth,

-Jim P.