问题
I'm trying to set up a script on my VPS where it'll email backup files. I found that mutt
seems to be the email to use for attachments, but I'm getting a weird text file appearing in each email and can't figure out why.
The text file is a few dozen bytes at the most, and is either called 1.txt
with attachments or TEXT.txt
without attachments.
It even happens on super simple examples like this:
echo "Test body" | mutt -s "Test subject" me@email.com
I tried it on dropmail.me and it didn't show the attachment, so I assume it's a minor issue that Yahoo processes wrongly. I had a google but couldn't find the right terms to search for, since it's only ever happened when sending email through mutt
. Sending through sendmail
is fine.
Here is a pastebin of the raw data of an email with no attachments.
来源:https://stackoverflow.com/questions/48436217/mutt-on-linux-has-empty-text-attachments-that-appear-in-yahoo-mail