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
> 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
> 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\ DtlsI 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
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