Excerpts from Jjgod Jiang's message of Fri Dec 14 12:58:57 -0800 2007:
> What's wrong with the IMAP server address I entered? It seemed correct
> to me.

Oops, that's a bug. I've fixed it in SVN. Below is a patch you can use.
You can also use sup-add manually instead of going through sup-config.

Index: lib/sup/imap.rb
===================================================================
--- lib/sup/imap.rb     (revision 765)
+++ lib/sup/imap.rb     (working copy)
@@ -72,11 +72,7 @@
   end
 
   def self.suggest_labels_for path
-    if path =~ /inbox/i
-      [path.intern]
-    else
-      []
-    end
+    path =~ /([^\/]*inbox[^\/]*)/i ? [$1.downcase.intern] : []
   end
 
   def host; @parsed_uri.host; end
Index: bin/sup-config
===================================================================
--- bin/sup-config      (revision 765)
+++ bin/sup-config      (working copy)
@@ -96,7 +96,7 @@
         $last_folder = fn
 
         fn = "/#{fn}" # lame
-        if srv =~ /^(\w+):(\d+)$/
+        if srv =~ /^(\S+):(\d+)$/
           host, port = $1, $2.to_i
         else
           host, port = srv, nil

-- 
William <[EMAIL PROTECTED]>
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to