Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Some initial problems with sup
@ 2008-01-04 22:54 Giorgio Lando
  2008-01-05  0:09 ` William Morgan
  0 siblings, 1 reply; 3+ messages in thread
From: Giorgio Lando @ 2008-01-04 22:54 UTC (permalink / raw)


Hi, I am a new user of sup and I like it a lot. I plan to switch
gradually from mutt.

I have a first problem with gmail imap folders for Drafts and Sent Mail
(the inbox works fine):
their relative path is [Gmail]/Drafts and [Gmail]/Sent Mail. Thus they
include a space and square brackets. If I try to use them in
sources.yaml, but I get:

/usr/lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not URI?): imaps://imap.gmail.com/[Gmail]/Drafts (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.3/lib/sup/imap.rb:62:in `initialize'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup.rb:29:in `new'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup.rb:29: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'
         ... 7 levels...
        from /usr/lib/ruby/gems/1.8/gems/sup-0.3/lib/sup/index.rb:108:in `load'
        from /usr/lib/ruby/gems/1.8/gems/sup-0.3/bin/sup-sync:111
        from /usr/bin/sup-sync:16:in `load'
        from /usr/bin/sup-sync:16

I tried to escape them with \:

uri: imaps://imap.gmail.com/\[Gmail\]/Drafts

But I get exactly the same error message. Is there a proper way to
escape the characters?
Giorgio Lando



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] Some initial problems with sup
  2008-01-04 22:54 [sup-talk] Some initial problems with sup Giorgio Lando
@ 2008-01-05  0:09 ` William Morgan
  2008-01-05  0:57   ` Giorgio Lando
  0 siblings, 1 reply; 3+ messages in thread
From: William Morgan @ 2008-01-05  0:09 UTC (permalink / raw)


Excerpts from Giorgio Lando's message of Fri Jan 04 14:54:48 -0800 2008:
> Hi, I am a new user of sup and I like it a lot. I plan to switch
> gradually from mutt.

Yay!

> /usr/lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not URI?):

Bah. I thought I was going to be so cool by treating everything as a
URI, but it's caused nothing but hassle.

You need to URL-encode them. Something like this:

  $ irb -rcgi
  >> CGI::escape "[Drafts]"
  => "%5BDrafts%5D"

HTH,

-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] Some initial problems with sup
  2008-01-05  0:09 ` William Morgan
@ 2008-01-05  0:57   ` Giorgio Lando
  0 siblings, 0 replies; 3+ messages in thread
From: Giorgio Lando @ 2008-01-05  0:57 UTC (permalink / raw)


>   $ irb -rcgi
>   >> CGI::escape "[Drafts]"
>   => "%5BDrafts%5D"
 
Thanks, this works (actually it doesn't work, but this depends from
gmail: it seems that these names of folders are not right / do not exist in my account;
nothing related to sup)
Giorgio


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-05  0:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-04 22:54 [sup-talk] Some initial problems with sup Giorgio Lando
2008-01-05  0:09 ` William Morgan
2008-01-05  0:57   ` Giorgio Lando

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox