mbnames

Thomas Kahle tomka at gentoo.org
Tue Jan 10 09:57:03 GMT 2012


On 10:32 Mon 09 Jan 2012, Sebastian Spaeth wrote:
> On Sun, 8 Jan 2012 12:59:53 +0100, Paul Collignan <p at ul.collignan.fr> wrote:
> > On Sun, Jan 08, 2012 at 12:38:59PM +0100, Sebastian Spaeth wrote:
> > > On Sun, 08 Jan 2012 12:02:44 +0100, Paul Collignan <p at ul.collignan.fr> wrote:
> > > > I use offlineimap to sync a remote courrier IMAP account and a local 
> > > > Maildir. I use nametrans to get rid of the courrier INBOX. useless 
> > > > string:
> > > > nametrans = lambda foldername: re.sub('^INBOX\.*', '', foldername)
> > > > and
> > > > nametrans = lambda f: "INBOX." + f
> > > > and it works well. In fact without those two lines it does not work at 
> > > > all.
> > > I would be interested to hear why it doesn't work without those, but
> > > that's a different story.
> > the first sync works well, while the second one does not:
> > 
> > *** Processing account Perso
> > Establishing connection to rhodes.sud-ouest.org:993
> > Creating new IMAP folder '.' on server perso-remote
> 
> 
> mmmh, there was a change recently that improved our handling of
> Top-level Maildirs. Perhaps it works now? Also does your "top-level"
> maildir already contain new|cur|dir folders?
> 
> > > Can you replace that line in accounts.py:
> > > -        mbnames.add(account.name, localfolder.getvisiblename())
> > > +        mbnames.add(account.name, localfolder.getname())
> > > 
> > > and see whether the results are better?
> > > If yes, I believe we should change that in the code. We clearly want the
> > 
> > That solved my problem, thank you very much. Should I fill a bug report
> > or something? I never wrote a patch or anything…
> 
> Glad to hear that. The fix is in the latest v6.5.2-rc1 that I have just
> announced and that you could download or get from current git master.

Probably related: The -f commandline option seems to be disfunctional or
have changed functionality.  Also, now that we have bidirectional
nametrans it is not clear what the doc "untranslated" Folder name means.

Anyway, as I see it, neither the local nor the remote Foldername works
on the -f Option with 6.5.1.2

Cheers,
Thomas



-- 
Thomas Kahle
http://dev.gentoo.org/~tomka/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20120110/7b546360/attachment-0001.sig>


More information about the OfflineIMAP-project mailing list