Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Problem with mbox format
@ 2007-10-11 17:30 Christopher Warrington
  2007-10-28  3:38 ` William Morgan
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Warrington @ 2007-10-11 17:30 UTC (permalink / raw)


I've been having some problems with messages that appear to confuse the
mbox parser. For example, if, by chance, one of my messages contains
"From now on" and this starts a new line, I get this error when sup
tried to store the sent message in sent.mbox:
The problem was: 'no message-id field in header {} (source sup://sent offset 3998037)' (error type Redwood::MessageFormatError)
A backtrace follows:
/usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/message.rb:111:in `read_header': no message-id field in header {} (source sup://sent offset 3998037) (Redwood::MessageFormatError)
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/message.rb:110:in `each'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/message.rb:110:in `read_header'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/message.rb:104:in `initialize'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/sent.rb:25:in `new'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/sent.rb:25:in `write_sent_message'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/source.rb:93:in `each'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:437:in `send'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/util.rb:437:in `__pass'

         ... 7 levels...
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/lib/sup/buffer.rb:181:in `handle_input'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.1/bin/sup:186
        from /usr/bin/sup:16:in `load'
        from /usr/bin/sup:16

After this, only the part of the message before the "From " line is
visible in sup. The entire message is in sent.mbox, however. Seems like
a parsing error/escaping error on sup's part. If I knew Ruby, I would
take a look at the code. Perhaps I'll have to teach myself some Ruby.

Also, if I save a message like this for later editing, lines that start
with "From " have a '>' perpended to them which I must delete.

(Which mbox format is sup using, by the way?)

-- 
Christopher Warrington <chrisw at rice.edu>
Jones College


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-28  4:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-11 17:30 [sup-talk] Problem with mbox format Christopher Warrington
2007-10-28  3:38 ` William Morgan
2007-10-28  4:48   ` Christopher Warrington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox