mail messages parse
Hi to all
i'm new here. I've a problem with mail messages.
I've to extract header, body and attach from a mail (qmail format) and insert this information into a database. With sed I can extract all header, with grep I can found From, Subject, Date but I've problem with multiline To and CC field.
What can I use to do this? Is possible to do this with bash scripting?
I've read formail docs, but how can I use formail with a file (qmail store every message in a single file) instead of a mbox?
thanks,
Andrea
|