* [sup-talk] Case-sensitivity of Content-Type: more RubyMail stupidity?
@ 2009-09-12 19:10 Kevin Riggle
2009-09-26 18:17 ` William Morgan
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Riggle @ 2009-09-12 19:10 UTC (permalink / raw)
Several people from whom I receive e-mail regularly use a MUA which
generates Content-Type: headers of the form
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
The symptoms I see are that I don't get any preview text, and Sup shows
the message as consisting only of a spurious attachment of the form:
> - Attachment: sup-attachment-1252774311-2202. (8 lines)
(Note no file-type suffix.)
RFC 2045 (the MIME specification) section 5.1 says in part
> The type, subtype, and parameter names are not case sensitive. For
> example, TEXT, Text, and TeXt are all equivalent top-level media
> types.
So the above should be handled just like the many mails with headers of
the form
> Content-Type: text/plain; charset="us-ascii"; format=flowed
I get, which Sup handles perfectly.
I theorize that RubyMail is being case-sensitive where it shouldn't.
Given the number of work-arounds Sup has had to implement to compensate
for RubyMail's stupidity, and that RubyMail is currently unmaintained,
has any thought been given to switching Sup to eg. TMail
(http://tmail.rubyforge.org), which is maintained?
Failing that, thoughts on how best to work around this problem in Sup?
- Kevin
--
Kevin Riggle (kevinr at free-dissociation.com)
http://free-dissociation.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [sup-talk] Case-sensitivity of Content-Type: more RubyMail stupidity?
2009-09-12 19:10 [sup-talk] Case-sensitivity of Content-Type: more RubyMail stupidity? Kevin Riggle
@ 2009-09-26 18:17 ` William Morgan
2009-09-26 21:35 ` Kevin Riggle
0 siblings, 1 reply; 5+ messages in thread
From: William Morgan @ 2009-09-26 18:17 UTC (permalink / raw)
Reformatted excerpts from Kevin Riggle's message of 2009-09-12:
> I theorize that RubyMail is being case-sensitive where it shouldn't.
Although I love criticizing RubyMail, I think this is Sup's fault. I
don't think it's in RubyMail's proper purview to canonicalize header
values (though header names are fine).
Anyways, I think I've fixed this in git. Give it a try.
> Given the number of work-arounds Sup has had to implement to
> compensate for RubyMail's stupidity, and that RubyMail is currently
> unmaintained, has any thought been given to switching Sup to eg. TMail
> (http://tmail.rubyforge.org), which is maintained?
It's certainly an option, but with so many workarounds invested in
RubyMail, I'm not sure it's a win. A patch that magically makes
everything work would certainly be considered.
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [sup-talk] Case-sensitivity of Content-Type: more RubyMail stupidity?
2009-09-26 18:17 ` William Morgan
@ 2009-09-26 21:35 ` Kevin Riggle
2009-09-27 1:46 ` William Morgan
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Riggle @ 2009-09-26 21:35 UTC (permalink / raw)
Excerpts from William Morgan's message of Sat Sep 26 14:17:14 -0400 2009:
> Reformatted excerpts from Kevin Riggle's message of 2009-09-12:
> > I theorize that RubyMail is being case-sensitive where it shouldn't.
>
> Although I love criticizing RubyMail, I think this is Sup's fault. I
> don't think it's in RubyMail's proper purview to canonicalize header
> values (though header names are fine).
>
> Anyways, I think I've fixed this in git. Give it a try.
>
Updated to next, restarted Sup, went to open a message, and got this crash:
(Appears to be individual messages, not all messages.)
--- NoMethodError from thread: load messages for thread-view-mode
undefined method `downcase' for nil:NilClass
./lib/sup/message.rb:439:in `message_to_chunks'
./lib/sup/message.rb:239:in `load_from_source!'
./lib/sup/modes/thread-index-mode.rb:108:in `select'
./lib/sup/hook.rb:121:in `each_with_index'
./lib/sup/thread.rb:68:in `each'
./lib/sup/thread.rb:168:in `each_with_stuff'
./lib/sup/thread.rb:67:in `each'
./lib/sup/modes/thread-index-mode.rb:105:in `each_with_index'
./lib/sup/modes/thread-index-mode.rb:105:in `select'
./lib/sup/buffer.rb:716:in `say'
./lib/sup/util.rb:520:in `send'
./lib/sup/util.rb:520:in `method_missing'
./lib/sup/modes/thread-index-mode.rb:104:in `select'
./lib/sup.rb:77:in `reporting_thread'
./lib/sup.rb:75:in `initialize'
./lib/sup.rb:75:in `new'
./lib/sup.rb:75:in `reporting_thread'
./lib/sup/modes/thread-index-mode.rb:101:in `select'
./lib/sup/mode.rb:51:in `send'
./lib/sup/mode.rb:51:in `handle_input'
./lib/sup/buffer.rb:267:in `handle_input'
bin/sup:238
- Kevin
--
Kevin Riggle (kevinr at free-dissociation.com)
http://free-dissociation.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-09-27 7:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-12 19:10 [sup-talk] Case-sensitivity of Content-Type: more RubyMail stupidity? Kevin Riggle
2009-09-26 18:17 ` William Morgan
2009-09-26 21:35 ` Kevin Riggle
2009-09-27 1:46 ` William Morgan
2009-09-27 7:10 ` Kevin Riggle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox