Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: chrisw@rice.edu (Christopher Warrington)
Subject: [sup-talk] Problem with mbox format
Date: Thu, 11 Oct 2007 12:30:30 -0500	[thread overview]
Message-ID: <1192123770-sup-3583@chris-tablet> (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


             reply	other threads:[~2007-10-11 17:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-11 17:30 Christopher Warrington [this message]
2007-10-28  3:38 ` William Morgan
2007-10-28  4:48   ` Christopher Warrington

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1192123770-sup-3583@chris-tablet \
    --to=chrisw@rice.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox