i need to do some operation over each email i received on a specific adress, first a i made a rule in procmail and pipe the mail in a bash file
| mybash.sh
In the bash file i save the mail in a tmp folder, it seem's to be a MIME file that i can open like a mail with mutt :
mutt -f mytmpmail
I now need to send this mail again, but i tryed with msmtp
mytmpmail | msmtp address@example.com
But i the received mail the MIME mail appear as text in the body, i tried with mailx and it was the same.
With mutt -s "subject" -a mytmpmail adress@ex.com
it appear as a attachment but it's still a text file...
I only need to forward the mail "as it" because i extract attachment of the mail and if attachment don't meet the required specification i need to send it elsewhere.
ps : sorry for my english