* [sup-talk] Adding maildir folder with a space
@ 2011-10-08 3:50 Martin Miller
2011-10-08 11:48 ` Hamish D
0 siblings, 1 reply; 4+ messages in thread
From: Martin Miller @ 2011-10-08 3:50 UTC (permalink / raw)
To: sup-talk
Hi I'm trying to add a source folder that has a space in the name, but I can't
find the right way escape the space in my URI. Currently I have this in my
sources.yaml and it's not working:
- !masanjin.net,2006-10-01/Redwood/Maildir
uri: maildir:/home/marty/lavabit/Acct%20Dtls
usual: true
archived: false
id: 7
labels:
- register
This is the error I get in the log:
WARNING: problem getting messages from maildir:/home/marty/lavabit/Acct%20Dtls:
/home/marty/lavabit/Acct%20Dtls/cur not a directory
Is it possible to use a folder name with a space?
Martin
--
Martin Miller
witsquash.com
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup-talk] Adding maildir folder with a space
2011-10-08 3:50 [sup-talk] Adding maildir folder with a space Martin Miller
@ 2011-10-08 11:48 ` Hamish D
2011-10-08 17:14 ` Martin Miller
0 siblings, 1 reply; 4+ messages in thread
From: Hamish D @ 2011-10-08 11:48 UTC (permalink / raw)
To: Martin Miller; +Cc: sup-talk
> find the right way escape the space in my URI.
The URI is a file path in this case, so the usual way of putting a
space in is to put a backslash in front of the space. So for
sources.yaml you could do:
uri: maildir:/home/marty/lavabit/Acct\ Dtls
Hamish
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup-talk] Adding maildir folder with a space
2011-10-08 11:48 ` Hamish D
@ 2011-10-08 17:14 ` Martin Miller
2011-10-08 17:53 ` Gaute Hope
0 siblings, 1 reply; 4+ messages in thread
From: Martin Miller @ 2011-10-08 17:14 UTC (permalink / raw)
To: Hamish D; +Cc: sup-talk
> The URI is a file path in this case, so the usual way of putting a
> space in is to put a backslash in front of the space. So for
> sources.yaml you could do:
>
> uri: maildir:/home/marty/lavabit/Acct\ Dtls
I should have mentioned that I tried that before. The error looks like this:
--- URI::InvalidURIError from thread: main
bad URI(is not URI?): maildir:/home/marty/lavabit/Acct\ Dtls
/usr/lib/ruby/1.9.1/uri/common.rb:156:in `split'
/usr/lib/ruby/1.9.1/uri/common.rb:174:in `parse'
/usr/lib/ruby/1.9.1/uri/common.rb:628:in `parse'
/usr/lib/ruby/1.9.1/uri/common.rb:854:in `URI'
--
Martin Miller
witsquash.com
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup-talk] Adding maildir folder with a space
2011-10-08 17:14 ` Martin Miller
@ 2011-10-08 17:53 ` Gaute Hope
0 siblings, 0 replies; 4+ messages in thread
From: Gaute Hope @ 2011-10-08 17:53 UTC (permalink / raw)
To: Sup Talk
Excerpts from Martin Miller's message of 2011-10-08 19:14:34 +0200:
> > The URI is a file path in this case, so the usual way of putting a
> > space in is to put a backslash in front of the space. So for
> > sources.yaml you could do:
> >
> > uri: maildir:/home/marty/lavabit/Acct\ Dtls
>
> I should have mentioned that I tried that before. The error looks like this:
> --- URI::InvalidURIError from thread: main
> bad URI(is not URI?): maildir:/home/marty/lavabit/Acct\ Dtls
> /usr/lib/ruby/1.9.1/uri/common.rb:156:in `split'
> /usr/lib/ruby/1.9.1/uri/common.rb:174:in `parse'
> /usr/lib/ruby/1.9.1/uri/common.rb:628:in `parse'
> /usr/lib/ruby/1.9.1/uri/common.rb:854:in `URI'
>
Don't you need to have three slashes: maildir:///path/to/dir
- Gaute
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-08 17:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-08 3:50 [sup-talk] Adding maildir folder with a space Martin Miller
2011-10-08 11:48 ` Hamish D
2011-10-08 17:14 ` Martin Miller
2011-10-08 17:53 ` Gaute Hope
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox