Subject: [sup-talk] sup regexp exception..

From: [email-masked] (Erlend Simonsen)
Date: Mon, 19 Jan 2009 21:53:56 +0100

I got this with 0.6:

[Mon Jan 19 21:41:31 +0100 2009] fetching IMAP headers 1..3672
[Mon Jan 19 21:41:32 +0100 2009] done fetching IMAP headers
[Mon Jan 19 21:42:15 +0100 2009] warning: error (Iconv::IllegalSequence) decoding message body from UTF-8: " '[New File]', '"...
[Mon Jan 19 21:42:22 +0100 2009] unlocking /home/erlends/.sup/lock...
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/mbox.rb:31:in `read_header': unmatched ): /@p\237\002\000\000\000\000ly-To):(?-mix:\s*(.*?\S)\s*)$/ (RegexpError)
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:93:in `load_header'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `send'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `__pass'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:525:in `method_missing'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/message.rb:63:in `initialize'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:151:in `new'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:151:in `add_messages_from'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:167:in `each'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:155:in `upto'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:155:in `each'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `send'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `__pass'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:525:in `method_missing'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:141:in `add_messages_from'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `send'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `method_missing'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/bin/sup-sync:136
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/bin/sup-sync:131:in `each'
	from /usr/lib/ruby/gems/1.8/gems/sup-0.6/bin/sup-sync:131
	from /usr/bin/sup-sync:19:in `load'
	from /usr/bin/sup-sync:19

It was able to fetch 117 messages, though, so I fired up sup to look at
what was there and got this:

--- RegexpError from thread: poll after loading inbox
unmatched ): /\260B\367\001\000\000\000\000-mix:\s*(.*?\S)\s*)$/
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/mbox.rb:26:in `read_header'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:93:in `load_header'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `__pass'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:525:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/message.rb:213:in `load_from_source!'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/message.rb:194:in `chunks'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/message.rb:144:in `snippet'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/index.rb:182:in `sync_message'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:160:in `add_messages_from'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:167:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:155:in `upto'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/imap.rb:155:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:538:in `__pass'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:525:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:141:in `add_messages_from'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:98:in `do_poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:86:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:86:in `do_poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:85:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:85:in `do_poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/modes/poll-mode.rb:17:in `poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/poll.rb:53:in `poll'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup/util.rb:499:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/bin/sup:166
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup.rb:85:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup.rb:83:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.6/lib/sup.rb:83

I do get an obscene amount of spam and broken emails, so that might have
something to do with it. 

-- Erlend