[offlineimap] Error MEssage: Folder 'junk'[Remote] could not be created. (#256)

rmporsch notifications at github.com
Sun Oct 4 13:06:47 BST 2015


I get the following error messages after I do the following steps:

1. Initial sync with my gmail account works fine (e.i. the initial set-up). All messages are correctly downloaded
2. repeated sync results in the following error:

```
Establishing connection to imap.gmail.com:993
 Creating folder junk[Remote]
 ERROR: Creating folder junk on repository Remote
  Folder 'junk'[Remote] could not be created. Server responded: ('NO', ['[ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)'])
 ERROR: Folder 'junk'[Remote] could not be created. Server responded: ('NO', ['[ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)'])
 *** Finished account 'hku' in 0:02
ERROR: Exceptions occurred during the run!
ERROR: Creating folder junk on repository Remote
  Folder 'junk'[Remote] could not be created. Server responded: ('NO', ['[ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)'])

Traceback:
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/repository/Base.py", line 242, in sync_folder_structure
    src_repo.makefolder(dst_name_t)
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/repository/IMAP.py", line 434, in makefolder
    OfflineImapError.ERROR.FOLDER)

ERROR: Folder 'junk'[Remote] could not be created. Server responded: ('NO', ['[ALREADYEXISTS] Folder name conflicts with existing folder name. (Failure)'])

Traceback:
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/accounts.py", line 263, in syncrunner
    self.__sync()
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/accounts.py", line 329, in __sync
    remoterepos.sync_folder_structure(localrepos, statusrepos)
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/repository/Base.py", line 242, in sync_folder_structure
    src_repo.makefolder(dst_name_t)
  File "/usr/local/lib/python2.7/dist-packages/offlineimap/repository/IMAP.py", line 434, in makefolder
    OfflineImapError.ERROR.FOLDER)
```

I do not know why it does not receive the information that the junk folder is already present.

Maybe my setup is wrong. Just do not see how:
here my offlineimaprc:

```
[general]
accounts = mail
# ui = quiet

[Account hku]
localrepository = Local
remoterepository = Remote

[Repository Local]
type = Maildir
localfolders = ~/.mutt/offlineimap/mail/

[Repository Remote]
#type = IMAP
type = Gmail
remoteuser = mail at mail.com
remotepass = secret
nametrans = lambda foldername: re.sub ('^\[gmail\]', 'bak',
                               re.sub ('sent_mail', 'sent',
                               re.sub ('starred', 'flagged',
                               re.sub (' ', '_', foldername.lower()))))
folderfilter = lambda foldername: foldername not in '[Gmail]/All Mail'

# Necessary as of OfflineIMAP 6.5.4
ssl= yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
```

I use offlineimap `6.5.7`

---
Reply to this email directly or view it on GitHub:
https://github.com/OfflineIMAP/offlineimap/issues/256
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20151004/4301683b/attachment-0002.html>


More information about the OfflineIMAP-project mailing list