25 Jul
2010
25 Jul
'10
2:22 p.m.
Hi,
For my manager I need to write a script to extract the From: e-mail addresses from his e-mail account.
Use reformail with "-x":
http://www.courier-mta.org/reformail.html
Extracting headers
The -x and -X options extract the indicated headers from the message, and print them to standard output. Multiple -x and -X options can be specified at the same time, and may be intermixed.
The -x option extracts and prints the contents of the header. The -X option prints the name of the header as well.