Kendall Grant Clark
2008-Aug-05 22:57 UTC
[sup-talk] sup doesn''t like ''[Gmail]'' in maildir URI
Folks, I just switched email to Gmail; so far, so good. I use offlineimap to grab [Gmail] and INBOX; but when I add a maildir URI with sup-add that includes the path component ''[Gmail]'', it bitches about illegal URI. So I encoded the ''['' and '']'' characters -- would be nice if sup-add offered to do that automagically -- but then sup-add bitches about ~/path/%5BGmail%5D/cur not being a director, when of course it *is* a directory... Leads me to believe there''s still something wrong with the encoded [Gmail] bit, since ~/path/INBOX works fine. Has anyone else seen and solved this problem? I''m using sup 0.6, which is otherwise excellent. Cheers, Kendall Clark
Kendall Grant Clark wrote:> Folks, > > I just switched email to Gmail; so far, so good. I use offlineimap to grab > [Gmail] and INBOX; but when I add a maildir URI with sup-add that includes > the path component ''[Gmail]'', it bitches about illegal URI. > > So I encoded the ''['' and '']'' characters -- would be nice if sup-add offered to > do that automagically -- but then sup-add bitches about ~/path/%5BGmail%5D/cur > not being a director, when of course it *is* a directory... Leads me to > believe there''s still something wrong with the encoded [Gmail] bit, since > ~/path/INBOX works fine. > > Has anyone else seen and solved this problem? I''m using sup 0.6, which is > otherwise excellent.For Gmail, you probably want to just grab the ''All Mail'' folder. All your mail goes there (imagine that!), so tracking INBOX is unnecessary. Especially since sup will complain if you ever clear out the inbox. To get around the URI problem, I use `nametrans` in ~/.offlineimaprc to clean up the folder names: nametrans = lambda s: s.replace(''['','''').replace('']'','''').replace('' '', ''_'') In English, remove brackets and turn spaces into underscores. Cheers, jeff
Kendall Clark
2008-Aug-06 13:38 UTC
[sup-talk] sup doesn''t like ''[Gmail]'' in maildir URI
On Tue, Aug 5, 2008 at 7:17 PM, Jeff Balogh <its.jeff.balogh at gmail.com> wrote:> For Gmail, you probably want to just grab the ''All Mail'' folder. All your mail > goes there (imagine that!), so tracking INBOX is unnecessary. Especially since > sup will complain if you ever clear out the inbox. > > To get around the URI problem, I use `nametrans` in ~/.offlineimaprc to clean up > the folder names: > > nametrans = lambda s: s.replace(''['','''').replace('']'','''').replace('' '', ''_'') > > In English, remove brackets and turn spaces into underscores.Thanks, Jeff -- both suggestions worked nicely. Cheers, Kendall