* [sup-talk] Using sup-config to add a GMail account as source
@ 2007-12-14 20:58 Jjgod Jiang
0 siblings, 0 replies; 4+ messages in thread
From: Jjgod Jiang @ 2007-12-14 20:58 UTC (permalink / raw)
Hi,
What's wrong with the IMAP server address I entered? It seemed correct to me.
What is the IMAP server (host, or host:port notation)? (enter for
"imap.gmail.com"): imap.gmail.com:993
What's the folder path? (enter for "INBOX"):
Whoopsie! I couldn't build a URI from that: bad component(expected
host component): imap.gmail.com:993
Try again? (enter for "n"):
I installed sup 0.3 via gem.
- Jiang
^ permalink raw reply [flat|nested] 4+ messages in thread
* [sup-talk] Using sup-config to add a GMail account as source
2007-12-14 20:58 Jjgod Jiang
@ 2007-12-14 22:25 ` William Morgan
0 siblings, 0 replies; 4+ messages in thread
From: William Morgan @ 2007-12-14 22:25 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [sup-talk] Using sup-config to add a GMail account as source
@ 2007-12-14 20:58 Jjgod Jiang
2007-12-14 22:25 ` William Morgan
0 siblings, 1 reply; 4+ messages in thread
From: Jjgod Jiang @ 2007-12-14 20:58 UTC (permalink / raw)
Hi,
What's wrong with the IMAP server address I entered? It seemed correct to me.
What is the IMAP server (host, or host:port notation)? (enter for
"imap.gmail.com"): imap.gmail.com:993
What's the folder path? (enter for "INBOX"):
Whoopsie! I couldn't build a URI from that: bad component(expected
host component): imap.gmail.com:993
Try again? (enter for "n"):
I installed sup 0.3 via gem.
- Jiang
^ permalink raw reply [flat|nested] 4+ messages in thread
* [sup-talk] Using sup-config to add a GMail account as source
@ 2007-12-14 20:55 Jjgod Jiang
0 siblings, 0 replies; 4+ messages in thread
From: Jjgod Jiang @ 2007-12-14 20:55 UTC (permalink / raw)
Hi,
What's wrong with the IMAP server address I entered? It seemed correct to me.
What is the IMAP server (host, or host:port notation)? (enter for
"imap.gmail.com"): imap.gmail.com:993
What's the folder path? (enter for "INBOX"):
Whoopsie! I couldn't build a URI from that: bad component(expected
host component): imap.gmail.com:993
Try again? (enter for "n"):
I installed sup 0.3 via gem.
- Jiang
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-12-14 22:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-14 20:58 [sup-talk] Using sup-config to add a GMail account as source Jjgod Jiang
-- strict thread matches above, loose matches on Subject: below --
2007-12-14 20:58 Jjgod Jiang
2007-12-14 22:25 ` William Morgan
2007-12-14 20:55 Jjgod Jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox