I want to ask regarding the procmail recipes.
Here is my recipe so far:
:0
* ^X-Loop: myemail@gmail\.com
/dev/null
:0
* ^Subject:.*(mytext)
# * ^Subject:.*(phonenumber)
{
:0c:
${DEFAULT}
# :0 fwh
# * ^Content-Lentgh:
# | formail -z -i"Content-Lentgh:"
#Add the loop avoidance
# ( f for piping; w for waiting for completion; h for header )
#:0 fwh
#| formail -A"X-Loop: [email protected]"
#Forward to the other folder
:0
TESTNEW/
}
Here's the problem:
I want to make filtering based on the phone number of the subject sender(ex:60102348677,etc...)because I want to send the content of this particular email to our own sms gateway.
The settings for other things has been setup and working fine except for this one.
Can anyone show me any way which can solve my problem? Thanks.