[Users] Problem processing action

Pierre Fortin pf at pfortin.com
Sun Mar 24 06:56:32 CET 2013


On Sat, 23 Mar 2013 16:21:33 -0700 sylpheed at 911networks.com wrote:

>How can I extract the "reply to:" from the original email to pass it
>to my bash file?

Simplistic & brute force; but this will get it:

filter:    execute /home/froggy/smtp-cli-keywords.sh '%F'


/home/froggy/smtp-cli-keywords.sh:
....
REPLYTO=($(cat "$1" | grep "Reply-To: "))
echo ${REPLYTO[1]}
....


The parens are important.

HTH,
Pierre



More information about the Users mailing list