* [sup-talk] UTF-8 message sending patch
@ 2009-04-27 20:00 Helge Titlestad
2009-04-29 22:38 ` William Morgan
2009-05-28 15:11 ` William Morgan
0 siblings, 2 replies; 3+ messages in thread
From: Helge Titlestad @ 2009-04-27 20:00 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [sup-talk] UTF-8 message sending patch
2009-04-27 20:00 [sup-talk] UTF-8 message sending patch Helge Titlestad
@ 2009-04-29 22:38 ` William Morgan
2009-05-28 15:11 ` William Morgan
1 sibling, 0 replies; 3+ messages in thread
From: William Morgan @ 2009-04-29 22:38 UTC (permalink / raw)
Reformatted excerpts from Helge Titlestad's message of 2009-04-27:
> 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.
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [sup-talk] UTF-8 message sending patch
2009-04-27 20:00 [sup-talk] UTF-8 message sending patch Helge Titlestad
2009-04-29 22:38 ` William Morgan
@ 2009-05-28 15:11 ` William Morgan
1 sibling, 0 replies; 3+ messages in thread
From: William Morgan @ 2009-05-28 15:11 UTC (permalink / raw)
Reformatted excerpts from Helge Titlestad's message of 2009-04-27:
> 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. (:
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>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-28 15:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-27 20:00 [sup-talk] UTF-8 message sending patch Helge Titlestad
2009-04-29 22:38 ` William Morgan
2009-05-28 15:11 ` William Morgan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox