Working 6.3.4 config breaks in 6.5.2.1

Jonas Hörsch coroa at online.de
Fri Feb 10 17:08:05 GMT 2012


Hi Michael,

that is due to a new feature in 6.5 which is two-way folder
creation. new folders on your local site wouldn't have been synced to
the remote site in 6.3.

but for that to work, 6.5 has to be able to figure out how your remote
folders would be called just given your local names. so to have it
working again you could add to your [Repository localmpe] section a line

nametrans = lambda fn: 'INBOX.' + fn

which would take the local name and generate the remote name. (WARNING:
i'm assuming here, that all your remote folders start with 'INBOX.', is
that true??).

alternatively you could also go back to what 6.3 would have done by just
saying don't try to create any new local folders remotely by putting

folderfilter = lambda fn: False

in your [Repository localmpe] section.

Cheers,

Jonas

i don't know if it helps anyone, but the strange me, to imagine the
following (if it confuses you just ignore it):

- local_nametrans(remote_nametrans(fn)) == fn must return true for all
  of your remote foldernames fn for which remote_folderfilter returns
  true
- remote_nametrans(local_nametrans(fn)) == fn must return true for all
  of your local foldernames fn for which local_folderfilter returns true



On Fri, Feb 10 2012, Michael Williams wrote:

> Hi,
>
> my working 6.3.4 configuration fails in 6.5.2.1. Here's the config (with the fully-qualified server name replaced with [SNIP]).
>
> [general]
> accounts = mpe
> ui = blinkenlights
> pythonfile = ~/usr/bin/get_pw.py
>
> [Account mpe]
> localrepository = localmpe
> remoterepository = remotempe
> presynchook = imapfilter
> postsynchook = notmuch new
>
> [Repository localmpe]
> type = Maildir
> localfolders = ~/.mail/mpe
>
> [Repository remotempe]
> type = IMAP
> remotehost = imaps.[SNIP]
> remoteuser = williams
> ssl = yes
> nametrans = lambda foldername: re.sub('^INBOX.', '', foldername)
> maxconnections = 5
> remotepasseval = get_pw("imaps.[SNIP]")
>
> Here's this working with 6.3.4 (I manually aborted it to truncate the output, but it does complete).
>
> palatino:~$ offlineimap -u ttyui
>  OfflineIMAP 6.3.4
> Copyright 2002-2011 John Goerzen & contributors.
> Licensed under the GNU GPL v2+ (v2 or any later version).
>
> Account sync mpe:
>  ***** Processing account mpe
>  Calling hook: imapfilter
>  Hook stdout: 
> Hook stderr:
>
>  Hook return code: 0
>  Copying folder structure from IMAP to Maildir
>  Establishing connection to imaps.[SNIP]:993.
> Folder sync [mpe]:
>  Syncing INBOX: IMAP -> Maildir
>  Syncing INBOX.archive: IMAP -> Maildir
>  Syncing INBOX.cranks: IMAP -> Maildir
>  Syncing INBOX.drafts: IMAP -> Maildir
>  Syncing INBOX.lists: IMAP -> Maildir
>  Establishing connection to imaps.[SNIP]:993.
>  Establishing connection to imaps.[SNIP]:993.
>  Establishing connection to imaps.[SNIP]:993.
>  Establishing connection to imaps.[SNIP]:993.
>  Syncing INBOX.lists.2005: IMAP -> Maildir
>  Syncing INBOX.lists.2005.macosx-tex: IMAP -> Maildir
>  Syncing INBOX.lists.2006: IMAP -> Maildir
>  Syncing INBOX.lists.2006.macosx-tex: IMAP -> Maildir
>  Syncing INBOX.lists.2006.numpy-discussion: IMAP -> Maildir
>  Syncing INBOX.lists.2006.scipy-user: IMAP -> Maildir
>  Syncing INBOX.lists.a2ps: IMAP -> Maildir
>  Syncing INBOX.lists.astrolrnr: IMAP -> Maildir
> ^CCTRL-C pressed, aborting...
>
> And here it is failing with 6.5.2.1.
>
> palatino:~$ offlineimap -u ttyui
> OfflineIMAP 6.5.2.1
>   Licensed under the GNU GPL v2+ (v2 or any later version)
> Account sync mpe:
>  *** Processing account mpe
>  Calling hook: imapfilter
>  Hook stdout: 
> Hook stderr:
>
>  Hook return code: 0
>  Establishing connection to imaps.[SNIP]:993
>  Creating new IMAP folder 'oxford.2007.iaus245mac' on server remotempe
>  ERROR: Creating folder oxford.2007.iaus245mac on repository remotempe
>   Folder 'oxford.2007.iaus245mac'[remotempe] could not be created. Server responded: ('NO', ['Unknown namespace.'])
>  ERROR: Folder 'oxford.2007.iaus245mac'[remotempe] could not be created. Server responded: ('NO', ['Unknown namespace.'])
>  *** Finished account 'mpe' in 0:00
> ERROR: Exceptions occurred during the run!
> ERROR: Creating folder oxford.2007.iaus245mac on repository remotempe
>   Folder 'oxford.2007.iaus245mac'[remotempe] could not be created. Server responded: ('NO', ['Unknown namespace.'])
> ERROR: Folder 'oxford.2007.iaus245mac'[remotempe] could not be created. Server responded: ('NO', ['Unknown namespace.'])
>
> Any suggestions?
>
> Mike
> _______________________________________________
> OfflineIMAP-project mailing list
> OfflineIMAP-project at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project
>
> OfflineIMAP homepage: http://software.complete.org/offlineimap




More information about the OfflineIMAP-project mailing list