I have a saved mail (in Maildir format) including all headers and attachments.
I would like to send this file as email (with all the given headers intact) to a new email address, something like:
$ cat mail.txt |forwardMail
which should basically connect to the MTA, use
firstname.lastname@example.org as the "RCPT TO" and the contents of
mail.txt as the DATA.
I tried things like the following, but it doesn't handle headers and attachments gracefully; also, I have to specify the subject on the cmdline (while it is already defined in
$ cat mail.txt | mail -s "foo" email@example.com