New folder creation on REMOTE (DO READ)

Vincent Beffara vbeffara at ens-lyon.fr
Mon Sep 19 13:57:31 BST 2011


Hi,

SS> Do let me know if and how things work (or break), the change should
SS> be rather safe even if it requires one more nametrans setting.

It does not work very well :-( My setup is like this:


[Repository here]

type = IMAP
folderfilter = lambda f: not re.search('^_', f)
nametrans = lambda f: re.sub ('^INBOX/INBOX$', 'INBOX', 'INBOX/' + f)

[Repository ensl_imap]

type = IMAP
nametrans = lambda f: re.sub ('^INBOX/', '', f)


and I get an error on a folder that exists on both sides (and was synced
perfectly well before the change, it is not a new folder):


ERROR: Exceptions occurred during the run!
 ERROR: Creating folder enseignement on repository here
  Folder 'enseignement'[here] could not be created.
  Server responded: ('NO', ['[ALREADYEXISTS] Mailbox already exists:
                                             enseignement'])
 ERROR: Folder 'enseignement'[here] could not be created.
 Server responded: ('NO', ['[ALREADYEXISTS] Mailbox already exists:
                                            enseignement'])

                                            
My reverse nametrans is a bit clumsy but it should work. Am I doing the
right thing?                                                           

      /v

-- 
|                 |   UMPA - ENS Lyon   | Mél: vbeffara at ens-lyon.fr |
| Vincent Beffara |  46 allée d'Italie  | Tél: (+33) 4 72 72 85 25  |
|                 | 69364 Lyon Cedex 07 | Fax: (+33) 4 72 72 84 80  |





More information about the OfflineIMAP-project mailing list