pazz / alot

Terminal-based Mail User Agent
GNU General Public License v3.0
703 stars 163 forks source link

RFC3156 normalization messes up emails sent with ssmtp #610

Closed do3cc closed 11 years ago

do3cc commented 11 years ago

I am not sure if I can call this a bug in alot, but I guess other people will stumble other this issue too and have a look here first.

The current trunk version of alot does a RFC3156 normalization of the message. One of the things that happen is the conversion of line endings from '\n' to '\r\n' When one uses ssmtp, like I do, mails being sent with ssmtp -t suddenly have every line ending doubled.

I filed a bug in ssmtp: https://bugs.launchpad.net/ubuntu/+source/ssmtp/+bug/1178613 and my workaround is a shell script:

!/bin/bash

cat - | sed -e 's/\r//g' | ssmtp -t

but this somewhere with a good name and use this as the sendmail command. You can use the script name without any arguments since the -t argument is already in the script. Don't forget to make your script executable

pazz commented 11 years ago

ok, this is obviously a bug in ssmtp, so i'll close this issue here. FWIW: msmtp works well for me..