Subject: [sup-talk] UTF-8 message sending patch

From: [email-masked] (Helge Titlestad)
Date: Mon, 27 Apr 2009 22:00:44 +0200

Hi,
I just installed sup and noticed that it didn't play extremely well
with utf-8 out of the box.

http://sup.rubyforge.org/wiki/wiki.pl?UTF8 together with the String 
hack from http://www.nabble.com/UTF-8-woes-td21598658.html#a21598658 
fixed the viewing parts (I think), but it's still unacceptable to
send raw utf-8 in email headers.

So I fixed it with another little hack (to edit-message-mode.rb),
which sets Content-Transfer-Encoding to 8-bit and more importantly
tries to convert any utf-8 headers to quoted printable.

I think the patch (attached) fixes my problems, but it's probably far
from complete. It doesn't detect non-utf8-but-still-illegal-strings,
it assumes every header except Subject is an address, and so on.

Any feedback is welcome. (:
-- 
alge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sup-utf8-message-sending.patch
Type: application/octet-stream
Size: 1904 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090427/6cae2b53/attachment.obj>

---

From: [email-masked] (William Morgan)
Date: Wed, 29 Apr 2009 15:38:23 -0700

> it assumes every header except Subject is an address, and so on.

Thanks! Good timing on this; it was near the top of my todo list.
I will probably edit this a bit and merge it in as part of a bigger
utf-8 fixing branch.
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (William Morgan)
Date: Thu, 28 May 2009 08:11:25 -0700

> Any feedback is welcome. (:

This has all been added in. If you get a chance, please try the current
master branch of Sup and see if it has the behavior you desire. Thanks!
-- 
William <wmorgan-sup at masanjin.net>