Hi Jan, > There is a working bash script on debian 9 which sends an email using this > command: > echo "Content" | mail -s "Subject" -A $PATH_TO_ATTACHMENT > -aFrom:Servername\<[email protected]\> [email protected] > > The mail is working as expected and the content is used as the mailbody. > The same command works different on debian 10. There is the content > not used as the mailbody but attached as the file ATT00001.txt
Debian 9 ships with mailutils 3.1 whereas Debian 10 ships with version 3.5. What you observe is the effect of the bug 54992, introduced in version 3.4. See https://savannah.gnu.org/bugs/index.php?54992 for the details. The bug was fixed on 2019-12-15. I haven't had enough time to roll out a new release since then (though I hope to do so soon), so the best course of action would be to recompile mailutils from Git HEAD. Drop me a note if you need any assistance with that. Regards, Sergey
