Offlineimap fails trying to create remote Archive folder
Martin Stabenfeldt
martin at stabenfeldt.net
Mon Sep 29 09:34:08 BST 2014
Hi,
When I run offlineimap I get this error:
> $ offlineimap
> OfflineIMAP 6.5.5
> Licensed under the GNU GPL v2+ (v2 or any later version)
> Account sync martinstabenfeldtnet:
> *** Processing account martinstabenfeldtnet
> Establishing connection to imap.gmail.com:993
> Creating folder drafts[martinstabenfeldtnet-local]
> Creating folder Archive[martinstabenfeldtnet-local]
> Creating folder archive[martinstabenfeldtnet-remote]
> ERROR: Creating folder archive on repository martinstabenfeldtnet-remote
> Folder 'archive'[martinstabenfeldtnet-remote] could not be created. Server responded: ('NO', ['[ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)'])
> ERROR: Folder 'archive'[martinstabenfeldtnet-remote] could not be created. Server responded: ('NO', ['[ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)'])
> *** Finished account 'martinstabenfeldtnet' in 0:01
> ERROR: Exceptions occurred during the run!
> ERROR: Creating folder archive on repository martinstabenfeldtnet-remote
> Folder 'archive'[martinstabenfeldtnet-remote] could not be created. Server responded: ('NO', ['[ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)'])
>
> Traceback:
> File "/usr/local/Cellar/offline-imap/6.5.6/libexec/offlineimap/repository/Base.py", line 236, in sync_folder_structure
> src_repo.makefolder(dst_name_t)
> File "/usr/local/Cellar/offline-imap/6.5.6/libexec/offlineimap/repository/IMAP.py", line 406, in makefolder
> OfflineImapError.ERROR.FOLDER)
>
> ERROR: Folder 'archive'[martinstabenfeldtnet-remote] could not be created. Server responded: ('NO', ['[ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)'])
This is my offlineimaprc file. I thought this would sync everything except the folders
that are listed in 'folder not in'. At least that's what I'm trying to make it do. :-)
> [general]
> accounts = martinstabenfeldtnet
> ui = ttyui
>
> [Account martinstabenfeldtnet]
> localrepository = martinstabenfeldtnet-local
> remoterepository = martinstabenfeldtnet-remote
> status_backend = sqlite
> postsynchook = notmuch new
>
>
> [Repository martinstabenfeldtnet-local]
> type = Maildir
> localfolders = ~/Mail/martinstabenfeldtnet
>
>
>
> [Repository martinstabenfeldtnet-remote]
> realdelete = no
>
> # IMAP with hardcoded GMail config
> type = Gmail
> maxsyncaccounts = 10
> maxconnections = 10
>
> sslcacertfile = /usr/local/opt/curl-ca-bundle/share/ca-bundle.crt
>
>
> nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
> '[Gmail]/Sent Mail': 'sent',
> '[Gmail]/Starred': 'flagged',
> '[Gmail]/Trash': 'trash',
> '[Gmail]/All Mail': 'archive',
> }.get(folder, folder)
>
>
> folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
> 'Flask',
> '[Gmail]/Important',
> '[Gmail]/Spam',
> ]
--
Martin Stabenfeldt
Tlf: +47 93441707
More information about the OfflineIMAP-project
mailing list