mbnames

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Jan 9 09:32:07 GMT 2012


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.

Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20120109/0089a801/attachment-0001.sig>


More information about the OfflineIMAP-project mailing list