Subject: [sup-talk] maildir with spaces

From: Tracy Reed <[email-masked]>
Date: Wed, 30 Nov 2011 16:48:56 -0800

I have an IMAP folder and therefore a Maildir (thanks to offlineimap) with a
space in the name. sup-add chokes on this as does sup-sync when it tries to
read the sources.yaml file.

$ sup-sync maildir:///home/treed/Maildir/mydomain/sent-mail/
/usr/lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not URI?): maildir:///home/treed/Maildir/mydomain/Sent Mail (URI::InvalidURIError)
from /usr/lib/ruby/1.8/uri/common.rb:485:in `parse'
from /usr/lib/ruby/1.8/uri/common.rb:608:in `URI'
from /usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/maildir.rb:14:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:35:in `new'
from /usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:35:in `yaml_properties'
from /usr/lib/ruby/1.8/yaml.rb:133:in `call'
from /usr/lib/ruby/1.8/yaml.rb:133:in `transfer'
from /usr/lib/ruby/1.8/yaml.rb:133:in `node_import'
from /usr/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/lib/ruby/1.8/yaml.rb:144:in `load_file'
from /usr/lib/ruby/1.8/yaml.rb:143:in `open'
from /usr/lib/ruby/1.8/yaml.rb:143:in `load_file'
from /usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:136:in `load_yaml_obj'
from /usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/source.rb:205:in `load_sources'
from /usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `send'
from /usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `method_missing'
from /usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/index.rb:92:in `load'
from /usr/lib/ruby/gems/1.8/gems/sup-0.12.1/bin/sup-sync:100
from /usr/bin/sup-sync:19:in `load'
from /usr/bin/sup-sync:19

I found this thread:

http://rubyforge.org/pipermail/sup-talk/2011-October/004770.html

but I also get parse errors when I try to escape with a \

Any hints?

Thanks

-- 
Tracy Reed
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Tracy Reed <[email-masked]>
Date: Thu, 1 Dec 2011 10:02:48 -0800

On Wed, Nov 30, 2011 at 02:16:24PM -0800, Tracy Reed spake thusly:
> accept my sincere apologies. Please submit the contents of
> /home/treed/.sup/exception-log.txt and a brief report of the
> circumstances to http://masanjin.net/sup-bugs/ so that I might
> address this problem. Thank you!

I forgot to mention: I tried to submit these to the bug tracker mentioned in
the stack trace but the url 404's. I just realized perhaps I should be
submitting this stuff to sup-devel so I will subscribe there and will post some
of these questions and the stack traces over there.

---

From: Tracy Reed <[email-masked]>
Date: Wed, 30 Nov 2011 14:16:25 -0800

As a sup newbie who has been trying to give sup a go for a month I actually
have several questions about sup but I'll start with the one in the subject:

I am running sup v0.12.1. I have a ~/.sup/hooks/before-pull.rb hook which
invokes offlineimap just as described in the wiki:

def offlineimap(*folders)
  cmd = "offlineimap -q -u Noninteractive.Basic"
    cmd << " -f #{folders * ','}" unless folders.compact.empty?
      `#{cmd} 2>&1`
      end

      def folder_names(sources)
        sources.map { |s| s.uri.split('/').last }
        end

        def inbox_sources(sources = Index.usual_sources)
          sources.find_all { |s| !s.archived? }.sort_by {|s| s.id }
          end

if (@last_fetch || Time.at(0)) < Time.now - 120
  say "Running offlineimap..."
    # only check non-auto-archived sources on the first run
      log offlineimap(@last_fetch ? nil : folder_names(inbox_sources))
        say "Finished offlineimap run."
end
@last_fetch = Time.now

I put this in place, restarted sup, hit P and nothing different seems to
happen. It returns immediately and never says "finished offlineimap run". I'm
not sure what else to say or do. What could I be missing?

Other questions:

Is there any way to have a message on the IMAP server deleted when it is
deleted in sup?

Sup seems to be a rather unknown mail client and the IRC channel is very quiet.
I hear a lot of people have moved on to other efforts such as Notmuch. Does sup
have a future? I have been using mutt since the mid 90's and it has done well.
But lately it has left me wanting better multi-email account support, more
scriptability/customization (.muttrc allows for customization but nothing like
having a built-in programming language), and ability to filter mail built-into
the client.

It has been solid today but in the previous week I would run into frequent
crashes. Crash dumps included below.

Thanks for any insight you can provide!

[Tue Nov 22 10:10:35 -0800 2011] ERROR: oh crap, an exception
----------------------------------------------------------------
I'm very sorry. It seems that an error occurred in Sup. Please
accept my sincere apologies. Please submit the contents of
/home/treed/.sup/exception-log.txt and a brief report of the
circumstances to http://masanjin.net/sup-bugs/ so that I might
address this problem. Thank you!

Sincerely,
William
----------------------------------------------------------------
--- RuntimeError from thread: main
unknown drawable object: nil in #<Redwood::LabelListMode:0x7f232bd3c8b8> for line 2
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/scroll-mode.rb:200:in `draw_line'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/line-cursor-mode.rb:52:in `draw_line'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/line-cursor-mode.rb:121:in `cursor_up'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/mode.rb:59:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/mode.rb:59:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:277:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/bin/sup:260
/usr/bin/sup:19:in `load'
/usr/bin/sup:19

[Tue Nov 22 10:17:01 -0800 2011] ERROR: oh crap, an exception
----------------------------------------------------------------
I'm very sorry. It seems that an error occurred in Sup. Please
accept my sincere apologies. Please submit the contents of
/home/treed/.sup/exception-log.txt and a brief report of the
circumstances to http://masanjin.net/sup-bugs/ so that I might
address this problem. Thank you!

Sincerely,
William
----------------------------------------------------------------
--- ArgumentError from thread: load messages for thread-view-mode
buffer not on stack: #<Redwood::Buffer:0x7fb04c156928>: "backup.mydomain.com LOLLERSKATES results"
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:440:in `kill_buffer'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:431:in `kill_buffer_safely'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:647:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:129:in `call'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:129:in `select'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:78:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:109:in `select'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:159:in `launch_another_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:141:in `launch_next_thread_after'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:652:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:617:in `delete_and_then'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:580:in `delete_and_next'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/mode.rb:59:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/mode.rb:59:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:277:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/bin/sup:260
/usr/bin/sup:19:in `load'
/usr/bin/sup:19

[Tue Nov 22 10:34:09 -0800 2011] ERROR: oh crap, an exception
----------------------------------------------------------------
I'm very sorry. It seems that an error occurred in Sup. Please
accept my sincere apologies. Please submit the contents of
/home/treed/.sup/exception-log.txt and a brief report of the
circumstances to http://masanjin.net/sup-bugs/ so that I might
address this problem. Thank you!

Sincerely,
William
----------------------------------------------------------------
--- ArgumentError from thread: load messages for thread-view-mode
buffer not on stack: #<Redwood::Buffer:0x7f09b3d7ddb8>: "new-fw1.mydomain.com LOLLERSKATES results"
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:440:in `kill_buffer'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:431:in `kill_buffer_safely'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:647:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:129:in `call'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:129:in `select'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:78:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:109:in `select'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:159:in `launch_another_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:141:in `launch_next_thread_after'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:652:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:617:in `delete_and_then'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:580:in `delete_and_next'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/mode.rb:59:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/mode.rb:59:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:277:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/bin/sup:260
/usr/bin/sup:19:in `load'
/usr/bin/sup:19

[Tue Nov 22 10:50:19 -0800 2011] ERROR: oh crap, an exception
----------------------------------------------------------------
I'm very sorry. It seems that an error occurred in Sup. Please
accept my sincere apologies. Please submit the contents of
/home/treed/.sup/exception-log.txt and a brief report of the
circumstances to http://masanjin.net/sup-bugs/ so that I might
address this problem. Thank you!

Sincerely,
William
----------------------------------------------------------------
--- ArgumentError from thread: load messages for thread-view-mode
buffer not on stack: #<Redwood::Buffer:0x7fc47f1be4a0>: "** PROBLEM Service Alert: newsdb2/Disk Space is WARNING **"
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:440:in `kill_buffer'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:431:in `kill_buffer_safely'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:647:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:129:in `call'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:129:in `select'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:78:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:109:in `select'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:159:in `launch_another_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:141:in `launch_next_thread_after'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:652:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:617:in `delete_and_then'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-view-mode.rb:580:in `delete_and_next'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/mode.rb:59:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/mode.rb:59:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:277:in `handle_input'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/bin/sup:260
/usr/bin/sup:19:in `load'
/usr/bin/sup:19

[Tue Nov 22 11:16:19 -0800 2011] ERROR: oh crap, an exception
----------------------------------------------------------------
I'm very sorry. It seems that an error occurred in Sup. Please
accept my sincere apologies. Please submit the contents of
/home/treed/.sup/exception-log.txt and a brief report of the
circumstances to http://masanjin.net/sup-bugs/ so that I might
address this problem. Thank you!

Sincerely,
William
----------------------------------------------------------------
--- NoMethodError from thread: checking for idleness
undefined method `write' for nil:NilClass
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/scroll-mode.rb:245:in `draw_line_from_string'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/scroll-mode.rb:182:in `draw_line'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/scroll-mode.rb:48:in `draw'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/scroll-mode.rb:48:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/scroll-mode.rb:48:in `draw'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:119:in `draw'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:103:in `redraw'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:339:in `draw_screen'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/buffer.rb:769:in `clear'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:471:in `flush_index'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/inbox-mode.rb:119:in `handle_idle_update'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/update.rb:26:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/update.rb:26:in `relay'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/update.rb:26:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/update.rb:26:in `relay'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/idle.rb:29:in `start'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:78:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/idle.rb:25:in `start'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:609:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/bin/sup:223
/usr/bin/sup:19:in `load'
/usr/bin/sup:19

[Tue Nov 22 11:18:29 -0800 2011] ERROR: oh crap, an exception
----------------------------------------------------------------
I'm very sorry. It seems that an error occurred in Sup. Please
accept my sincere apologies. Please submit the contents of
/home/treed/.sup/exception-log.txt and a brief report of the
circumstances to http://masanjin.net/sup-bugs/ so that I might
address this problem. Thank you!

Sincerely,
William
----------------------------------------------------------------
--- NoMethodError from thread: load threads for thread-index-mode
undefined method `has_label?' for nil:NilClass
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:833:in `text_for_thread_at'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:781:in `regen_text'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:444:in `map_with_index'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/hook.rb:55:in `each_with_index'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:444:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:444:in `each_with_index'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/util.rb:444:in `map_with_index'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:781:in `regen_text'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:242:in `update'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:643:in `__unprotected_load_n_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/thread.rb:340:in `load_n_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/index.rb:151:in `each_id_by_date'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/index.rb:246:in `each_id'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/index.rb:246:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/index.rb:246:in `each_id'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/index.rb:151:in `each_id_by_date'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/thread.rb:334:in `load_n_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:640:in `__unprotected_load_n_threads'
(eval):12:in `load_n_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:624:in `load_n_threads_background'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:78:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup.rb:76:in `reporting_thread'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:623:in `load_n_threads_background'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:694:in `__unprotected_load_threads'
(eval):12:in `load_threads'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:89:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/line-cursor-mode.rb:22:in `call'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/line-cursor-mode.rb:22:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/line-cursor-mode.rb:22:in `each'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/line-cursor-mode.rb:22:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/line-cursor-mode.rb:19:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/line-cursor-mode.rb:19:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/thread-index-mode.rb:60:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/lib/sup/modes/inbox-mode.rb:14:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/bin/sup:194:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.12.1/bin/sup:194
/usr/bin/sup:19:in `load'
/usr/bin/sup:19

---

From: Scott Shook <[email-masked]>
Date: Thu, 01 Dec 2011 08:54:10 -0500

I had this same problem and I ended up creating symlinks without a space
in the name. Keep the offlineimap config the same but change sup source
to the symlink'd folder.

I.E.
> maildir:///home/treed/Maildir/mydomain/Sent Mail (URI::InvalidURIError)
ln -s /home/treed/Maildir/mydomain/Sent\ Mail /home/treed/Maildir/mydomain/Sent

Scott