IMAP namespace issue / office365

Roy Kidder rkidder at thirtyonegifts.com
Tue Aug 20 15:24:56 BST 2013


Greetings. I just recently started working with offlineimap and am 
having a problem that I believe is related to namespace between my local 
Courier IMAP server and the remote Office365 IMAP server. Although 
offlineimap syncs in both directions, I'm more or less using it to back 
up my remote repository. It syncs my inbox just fine, but folders 
(mailboxes) below my inbox are problematic.

The errors I get look like this:

Folder sync Work[Junk Email]:
    WARNING: ERROR in syncfolder for Work folder  Junk Email : Error 
from select: ('NO', ['Mailbox does not exist, or must be subscribed to.'])
Folder sync Work[Notes]:
    WARNING: ERROR in syncfolder for Work folder  Notes : Error from 
select: ('NO', ['Mailbox does not exist, or must be subscribed to.'])

The folders that are mentioned above exist on the remote but not on the 
local repository. I'm guessing it can't work with these folders due to 
the namespace difference which I've tried to use nametrans to correct 
for in my config file, however it doesn't seem to be working for me. For 
my local repository, I've tried the following (none of which work):

nametrans = lambda folder: re.sub('^INBOX\.', '', folder)
nametrans = lambda foldername: re.sub('^INBOX\.', '', foldername)
nametrans = lambda foldername: re.sub('^', 'INBOX\.', foldername)
nametrans = lambda foldername: re.sub('', 'INBOX.', foldername)
nametrans = lambda foldername: re.sub('^\.', 'INBOX.', foldername)
nametrans = lambda foldername: 'INBOX' + foldername
nametrans = lambda folder: 'INBOX' + folder
nametrans = lambda folder: 'INBOX.' + folder
nametrans = lambda folder: re.sub('^', 'INBOX.', folder)
nametrans = lambda f: "INBOX/" + f
nametrans = lambda f: 'INBOX.' + f
nametrans = lambda f: '.' + f

If I disable ssl and run tshark on my local repository I see the 
offlineimap trying to select folders without the "INBOX." prefix which 
makes it look like no matter what I have configured for nametrans, 
offlineimap is ignoring it.

Does anyone have any suggestions?

Thanks in advance,
Roy







More information about the OfflineIMAP-project mailing list