I have an email alias and I want to capture some items in the email body and put it in a database.
I'm using Linux and Bash.
In /etc/aliases I have:
In /usr/bin/bexpense, I have:
echo $1 $2 >> bexpense.out
If I just run /usr/bin/bexpense with as "bexpense test test" I get "test test" in bexpense.out.
If I send email to firstname.lastname@example.org
, I get a blank line in bexpense.out.
How do I get the subject and body of the email?