Add "." to all the subdirs
svend at ciffer.net
Tue Mar 27 22:17:11 BST 2012
Pier <pierg75 at yahoo.it> writes:
> I'm using offlineimap to locally sync a remote imap repository.
> I was using this nametrans to add a "." to use Dovecot as local IMAP
> nametrans = lambda foldername: re.sub('^.INBOX$' , '.', re.sub('^',
> '.' , foldername))
> Now with the release 6.5.2 I'm not able to sync it any more.
> I get the message:
> ERROR: Aborting sync, folder '.' [acc: 'REMOTEACCOUNT']
> getfolder() asked for a nonexisting folder '.'.
> I tried several other settings but none worked.
> How can I do it with the new version?
I was getting a similar error after upgrading. I found that translating
INBOX to "." did not work; translating INBOX to "" did. (Using "" to
refer to the top-level maildir seems to work best.)
Here is the nametrans I am using:
def my_nametrans( foldername ):
if foldername == 'INBOX':
return '.' + foldername
More information about the OfflineIMAP-project