Wrote Cameron Simpson [07/09/12 @08:18:11 +1000]: > On 08Jul2012 16:16, Jack M <[email protected]> wrote: > | > I know nothing about the details of quoted printable (apart from > | > what I've just read on wikipedia). Certainly, that message isn't > | > latin1, it's UTF-8. I suspect that the key is to find out *why* > | > that message has been sent as quoted printable latin1. > > Well, let's be precise. The byte content was an UTF-8 byte stream. The > QPer is correctly encoding stuff, but incorrectly _labelling_ the > encoding as latin1. > > | > Certainly, > | > your post here is text/plain utf-8 and reads fine. > | > | Yes, this is the other half of the mystery. Now I need a list of possible > | suspects for who is the mystery QP-er. I don't know enough about how mail > | works to make a complete list, but surely mutt itself and my SMTP server are > | possible suspects? > | > | >From the manual, as far as I can tell, the only way mutt would QP-encode my > | message for me would be if I have $encode_from set, which I do not. > | > | Is QP-encoding something that SMTP servers might ever do? I'm totally in > the > | dark on this. > > I would start by using: > > set sendmail=~/my_sendmail_wrapper.sh > > and making a small shell script "my_sendmail_wrapper.sh" that takes a > copy of the input as received by mutt. Untested example: > > #!/bin/sh > tee -a $HOME/mutt.sendmail.output.log | /usr/sbin/sendmail ${1+"$@"} > > Adjust the sendmail path to suit, etc. > > That should get you the raw bytes that mutt in sending out. Then we will > at least know if it is mutt or a mail system, and exactly what mutt is > saying about the content. > > I believe (could well be wrong) mail systems are permitted to rewrite bodies; > QP is perfeclty undoable and should be safe if done correctly. > > If you keep a copy of your sent email ($record) it would be interesting > to look at that, too.
I use mutt's built-in SMTP to send with. I have no idea how to configure sendmail, so that will be a big project. However, I do keep copies of my sent mail in $record, and when I look at the saved copy, it is not QP-encoded. Also, the mysterious QP only happens on *some* mails that I send, indeed, only on *some* of the mails with non-ASCII in them. This makes me think mutt isn't the culprit. --Jack
