At 02:42 PM 2/5/2011, pe...@vfemail.net wrote:
* * *
I've tried this entry in my /etc/mail/aliases file, but it returns an empty
e-mail messages:
extract: | perl -wne 'while(/[\S\.]+@[\S\.]+\w+/g){print $\n}' | mail
user
[and this one]:
extract: | cat
I have a couple of entries in my /etc/mail/aliases that manipulate the contents
of an e-mail message. For example,
file: | cat /home/user/file.incoming
receives an e-mail message and writes it to the hard drive. Another example:
format: | sed 's/^.$/~~/g' | sed 's/^$/~~/g' | tr