From mboxrd@z Thu Jan 1 00:00:00 1970 From: its.jeff.balogh@gmail.com (Jeff Balogh) Date: Tue, 05 Aug 2008 19:17:12 -0400 Subject: [sup-talk] sup doesn't like '[Gmail]' in maildir URI In-Reply-To: <1217976772-sup-7788@k-desktop.int.clarkparsia.com> References: <1217976772-sup-7788@k-desktop.int.clarkparsia.com> Message-ID: <1217977678-sup-288@archie> 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