On Sat, Jun 20, 2015 at 04:52:11AM +0100, David Woodfall wrote: > > I have a script that emails a cover.txt message plus a pdf > attachment, but the message, while being readable, shows as an > attachment too: > > [-- Attachment #1 --] > [-- Type: text/plain, Encoding: 7bit, Size: 0.4K --] > > Is there a way of having it send inline?
That's just how MIME works, that is, since the message has one non-ASCII part, the entire message must be MIME encoded with a plaintext portion. If you wanted, you could uuencode the attachment, but using MIME is the better practice. For recipients with a GUI mail client, this should appear as you'd expect - a text message with an attached file. In mutt, the text should appear "inline" (that is, without using an external viewer or going to the file menu), but how else would you expect to see the attached file if it doesn't show you the various components of the message? w