El día Thursday, January 24, 2013 a las 03:33:21PM +0100, Matthias Apitz escribió:
> > Hi, > > I want to send out an e-mail with an inline JPEG attachments... > > I set (based on some hint) in my .muttrc > > set attach_format="%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] " > > which seems to be the default in any case if I look into muttrc(5) > and I use from the cmd line: > > $ mutt -s "mail test" -a file.jpg test.html -- [email protected] < test.txt > Thanks for the hint that the toogle of 'inline' ./. 'attachment' is only working for dialog mode usage of mutt; I ended up with something like: $ mutt -e 'set sendmail="cat"' -s test -a test.html test.jpg -- [email protected] < test.txt > mail.txt and modified later the resulting file mail.txt by hand (or later with a shell or perl script) before handing it over to the MTA sendmail; on thing to mention is, that the Content-Disposition of 'inline' is not enough; the image in addition needs as well some line like Content-ID: <test.jpg@whatever> and the the reference in the HTML file must be accordinly as <img src="cid:test.jpg@whatever" /> Just for the records if someone later googles this thread... matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: [email protected] | - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | - No proprietary attachments phone: +49-170-4527211 | - Respect for open standards
