[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] Adding maildir folder with a space



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