Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17842

[mutt] Sending mail as html disables line breaks

$
0
0

I went from Icedove (Thunderbird) to Mutt.

I like Mutt, however i have a little problem that i hope someone here has a nice solution for, i could not find a solution on google:

Whenever i send an email, i include a signature (~/signature.html) which contains html tags. This works fine if i have the following in my .muttrc:

set content_type=text/html 

However, sending emails as html, disables line breaks i made when writing the body, in the tmp file /tmp/mutt-hostname-123456) i see the linebreaks and my signature with all the html tags, but the receiver of the email gets all the body in one big line, however the html signature looks like it should with picture and everything

another editor wont fix it since the tmp file looks correct with the linebreaks where i placed them

i tried:

  • Sending the email as text/plain instead. However this just results in that my signature gets printed, and not showed as html (you know, it shows all the html tags). However line breaks work when sending like this

  • Changing the editor to "nano %s && sed -i '/\r/<br>/g' %s" however this just gives me an error saying "There was an error" when composing an email, sed is not run (i suspect that i am not allowed to use && in the editor config variable )

Any ideas on how to fix this?

submitted by /u/_dev_random_
[link] [comments]

Viewing all articles
Browse latest Browse all 17842

Trending Articles