Can't restart offlineimap after interruption

Damien Cassou damien.cassou at gmail.com
Wed Apr 25 13:18:41 BST 2012


Hi,

I have a lot of emails to download with offlineimap and can't download
them all at once because it takes too long. Each time I interrupt
offlineimap with CTRL+C and later try to restart it, I always get an
error similar to:

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

Here is some debug information, please also find debug.log attached.

I'm *not* subscribed to the mailing list.

$ ./offlineimap.py --info
OfflineIMAP 6.5.3.1
  Licensed under the GNU GPL v2+ (v2 or any later version)
Remote repository 'Gmail-Remote': type 'Gmail'
Host: imap.gmail.com Port: 993 SSL: 1
Establishing connection to imap.gmail.com:993
Server supports ID extension.
Server welcome string: * OK Gimap ready for requests from
128.93.62.129 g6if27720635wig.17
Server capabilities: ('IMAP4REV1', 'UNSELECT', 'IDLE', 'NAMESPACE',
'QUOTA', 'ID', 'XLIST', 'CHILDREN', 'X-GM-EXT-1', 'UIDPLUS',
'COMPRESS=DEFLATE')

folderfilter= lambda foldername: foldername not in ['[Gmail]/All
Mail', '[Gmail]/Spam']

nametrans= lambda folder: re.sub('^inbox$', 'INBOX',
re.sub(' +', '_',
re.sub(r'.*/(.*)$', r'\1', folder).lower()))

Folderlist:
 [...]
 Xdivertissement -> xdivertissement
 [...]

Local repository 'Gmail-Local': type 'Maildir'
Folderlist:
 [...]
 xdivertissement
 [...]


$ ./offlineimap.py -f xdivertissement -d imap > debug.log 2>&1
<see attached file>

$ cat ~/.offlineimaprc
[general]
ui = ttyui
accounts = GMail

[Account GMail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote

[Repository Gmail-Local]
# Use the following 2 lines to get a local folder:
type = Maildir
localfolders = ~/Mail/GMail.maildir

[Repository Gmail-Remote]
type = Gmail
remoteuser = damien.cassou at gmail.com
realdelete = no
folderfilter = lambda foldername: foldername not in ['[Gmail]/All
Mail', '[Gmail]/Spam']

# "[Gmail]/Some Folder" --> some_folder
nametrans = lambda folder: re.sub('^inbox$', 'INBOX',
	                   re.sub(' +', '_',
          		   re.sub(r'.*/(.*)$', r'\1', folder).lower()))

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.log
Type: application/octet-stream
Size: 36380 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20120425/0f3deccd/attachment-0002.obj>


More information about the OfflineIMAP-project mailing list