Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] Using sup-config to add a GMail account as source
Date: Fri, 14 Dec 2007 14:25:33 -0800	[thread overview]
Message-ID: <1197670914-sup-3742@south> (raw)
In-Reply-To: <ddd65cda0712141258s2b0ebd85i29ff972f0c5f623d@mail.gmail.com>

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 <wmorgan-sup at masanjin.net>


  reply	other threads:[~2007-12-14 22:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-14 20:58 Jjgod Jiang
2007-12-14 22:25 ` William Morgan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-12-14 20:58 Jjgod Jiang
2007-12-14 20:55 Jjgod Jiang

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=1197670914-sup-3742@south \
    --to=wmorgan-sup@masanjin.net \
    /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