zeek | 1 Aug 02:01 2012

exceptions.AttributeError, interfaces down or host unreachable


Greetings, I'm using offlineimap 6.3.4 on F16 3.1.0-7. My python is 
2.7.3. Also, to access the BigC account (noted in the error below) I'm 
using something called davmail-3.9.6-1. Davmail basically acts as an 
imap to exchange proxy.

I've been able to do clean runs on these accounts in the past. But 
within the past week I repeatedly get these errors. It's difficult for 
me to associate which account --or clearly determine what the issue is.

Any suggestions?

[root <at> fuzzy ~]# offlineimap

WARNING: UID validity problem for folder .mailboxlist (repo 
RemoteMyStuff) (saved 1343439460; got 1343596775); skipping it

WARNING: ERROR attempting to copy message 12057 for account 
BigC:Traceback (most recent call last):

   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py", 
line 250, in copymessageto
     message = self.getmessage(uid)
   File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", 
line 205, in getmessage
     res_type, data = imapobj.uid('fetch', str(uid), '(BODY.PEEK[])')
   File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 
1110, in uid
     return self._simple_command('UID', command, *args, **kw)
   File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 
(Continue reading)

Pauvre Ane | 1 Aug 14:19 2012
Picon

Offlineimap does strange things.

Hi,

  I'm using OfflineImap for multiple weeks currently, but recently, I added another account to my setup and offlineimap is now doing strange things.
Basically, I'm sync'ing multiple IMAP's server to a local maildir, and I'm using this maildir for my local imap client (thunderbird).

I've added an account from imap.laposte.net recently, and then offlineimap started doing strange thing while sync'ing this account. (You can register a test account on www.laposte.net if you need one).

Typically, the first sync (removed the account's specific folder in my maildir) goes perfectly, but then it fails randomly in the next sync.
Also, when it doesn't fail, it deletes messages but download them again, and so on repeatdly.

I'm using offlineimap 6.5.4, with the patch from this mailing list for string formatting in python 2.6's,  where "{}" is changed to "{argumentIndex}".

I'm not able to get a debug output as offlineimap deadlock while syncing this account when "-d" option is given.
I'm not seeing any issues for all my other accounts.

Here's the typical output of successive run of offlineimap (no message where changed on the server or locally between the runs):

cyril <at> CocoonSe:~$ offlineimap -a StageNex
OfflineIMAP 6.5.4
  Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync StageNex:
 *** Processing account StageNex
 Establishing connection to imap.laposte.net:993
^[[CFolder INBOX [acc: StageNex]:
 Syncing INBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Syncing INBOX.INBOX: IMAP -> Maildir
Folder INBOX [acc: StageNex]:
 Establishing connection to imap.laposte.net:993
Folder INBOX.INBOX [acc: StageNex]:
 Deleting 48 messages (72531:72578) in Maildir[]
Folder INBOX.DRAFT [acc: StageNex]:
 Syncing INBOX.DRAFT: IMAP -> Maildir
Folder INBOX.TRASH [acc: StageNex]:
 Syncing INBOX.TRASH: IMAP -> Maildir
Folder INBOX.Drafts [acc: StageNex]:
 Syncing INBOX.Drafts: IMAP -> Maildir
Folder INBOX.OUTBOX [acc: StageNex]:
 Syncing INBOX.OUTBOX: IMAP -> Maildir
Folder INBOX.QUARANTAINE [acc: StageNex]:
 Syncing INBOX.QUARANTAINE: IMAP -> Maildir
Folder INBOX [acc: StageNex]:
 Copy message 72579 (1 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72580 (2 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72581 (3 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72582 (4 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72583 (5 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72584 (6 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72585 (7 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72586 (8 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72587 (9 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72588 (10 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72589 (11 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72590 (12 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72591 (13 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72592 (14 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72593 (15 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72594 (16 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72595 (17 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72596 (18 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72597 (19 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72598 (20 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72599 (21 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72600 (22 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72601 (23 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72602 (24 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72603 (25 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72604 (26 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72605 (27 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72606 (28 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72607 (29 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72608 (30 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72609 (31 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72610 (32 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72611 (33 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72612 (34 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72613 (35 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72614 (36 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72615 (37 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72616 (38 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72617 (39 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72618 (40 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72619 (41 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72620 (42 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72621 (43 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72622 (44 of 44) StageRemote:INBOX -> StageLocal
 Deleting 91 messages (1291:1381) in Maildir[]
 Deleting 48 messages (72531:72578) in IMAP[INBOX]
Account sync StageNex:
 *** Finished account 'StageNex' in 0:21

cyril <at> CocoonSe:~$ offlineimap -a StageNex
OfflineIMAP 6.5.4
  Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync StageNex:
 *** Processing account StageNex
 Establishing connection to imap.laposte.net:993
Folder INBOX [acc: StageNex]:
 Syncing INBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Syncing INBOX.INBOX: IMAP -> Maildir
 Establishing connection to imap.laposte.net:993
Folder INBOX.DRAFT [acc: StageNex]:
 Syncing INBOX.DRAFT: IMAP -> Maildir
Folder INBOX.TRASH [acc: StageNex]:
 Syncing INBOX.TRASH: IMAP -> Maildir
Folder INBOX.Drafts [acc: StageNex]:
 Syncing INBOX.Drafts: IMAP -> Maildir
Folder INBOX.OUTBOX [acc: StageNex]:
 Syncing INBOX.OUTBOX: IMAP -> Maildir
Folder INBOX.QUARANTAINE [acc: StageNex]:
 Syncing INBOX.QUARANTAINE: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 1291 (1 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1292 (2 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1293 (3 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1294 (4 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1295 (5 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1296 (6 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1297 (7 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1298 (8 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1299 (9 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1300 (10 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1301 (11 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1302 (12 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1303 (13 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1304 (14 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1305 (15 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1306 (16 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1307 (17 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1308 (18 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1309 (19 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1310 (20 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1311 (21 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1312 (22 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1313 (23 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1314 (24 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1315 (25 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1316 (26 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1317 (27 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1318 (28 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1319 (29 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1320 (30 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1321 (31 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1322 (32 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1323 (33 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1324 (34 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1325 (35 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1326 (36 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1327 (37 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1328 (38 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1329 (39 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1330 (40 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1331 (41 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1332 (42 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1333 (43 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1334 (44 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1335 (45 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1336 (46 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1337 (47 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1338 (48 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1339 (49 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1340 (50 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1341 (51 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1342 (52 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1343 (53 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1344 (54 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1345 (55 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1346 (56 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1347 (57 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1348 (58 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1349 (59 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1350 (60 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1351 (61 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1352 (62 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1353 (63 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1354 (64 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1355 (65 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1356 (66 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1357 (67 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1358 (68 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1359 (69 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1360 (70 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1361 (71 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1362 (72 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1363 (73 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1364 (74 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1365 (75 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1366 (76 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1367 (77 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1368 (78 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1369 (79 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1370 (80 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1371 (81 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1372 (82 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1373 (83 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1374 (84 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1375 (85 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1376 (86 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1377 (87 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1378 (88 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1379 (89 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1380 (90 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1381 (91 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Deleting 44 messages (72579:72622) in Maildir[]
Account sync StageNex:
 *** Finished account 'StageNex' in 0:25

cyril <at> CocoonSe:~$ offlineimap -a StageNex
OfflineIMAP 6.5.4
  Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync StageNex:
 *** Processing account StageNex
 Establishing connection to imap.laposte.net:993
Folder INBOX [acc: StageNex]:
 Syncing INBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Syncing INBOX.INBOX: IMAP -> Maildir
 Establishing connection to imap.laposte.net:993
Folder INBOX [acc: StageNex]:
 Copy message 72579 (1 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72580 (2 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72581 (3 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72582 (4 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72583 (5 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72584 (6 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72585 (7 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72586 (8 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72587 (9 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72588 (10 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72589 (11 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72590 (12 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72591 (13 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72592 (14 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72593 (15 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72594 (16 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72595 (17 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72596 (18 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72597 (19 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72598 (20 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72599 (21 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72600 (22 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72601 (23 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72602 (24 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72603 (25 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72604 (26 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72605 (27 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72606 (28 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72607 (29 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72608 (30 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72609 (31 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72610 (32 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72611 (33 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72612 (34 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72613 (35 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72614 (36 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72615 (37 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72616 (38 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72617 (39 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72618 (40 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72619 (41 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72620 (42 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72621 (43 of 44) StageRemote:INBOX -> StageLocal
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72579 (1 of 40) StageLocal: -> StageRemote
Folder INBOX [acc: StageNex]:
 Copy message 72622 (44 of 44) StageRemote:INBOX -> StageLocal
 Deleting 91 messages (1291:1381) in Maildir[]
Folder INBOX.DRAFT [acc: StageNex]:
 Syncing INBOX.DRAFT: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72580 (2 of 40) StageLocal: -> StageRemote
Folder INBOX.TRASH [acc: StageNex]:
 Syncing INBOX.TRASH: IMAP -> Maildir
Folder INBOX.Drafts [acc: StageNex]:
 Syncing INBOX.Drafts: IMAP -> Maildir
Folder INBOX.OUTBOX [acc: StageNex]:
 Syncing INBOX.OUTBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72581 (3 of 40) StageLocal: -> StageRemote
Folder INBOX.QUARANTAINE [acc: StageNex]:
 Syncing INBOX.QUARANTAINE: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72582 (4 of 40) StageLocal: -> StageRemote
 Copy message 72583 (5 of 40) StageLocal: -> StageRemote
 Copy message 72584 (6 of 40) StageLocal: -> StageRemote
 Copy message 72585 (7 of 40) StageLocal: -> StageRemote
 Copy message 72586 (8 of 40) StageLocal: -> StageRemote
 Copy message 72587 (9 of 40) StageLocal: -> StageRemote
 Copy message 72588 (10 of 40) StageLocal: -> StageRemote
 Copy message 72589 (11 of 40) StageLocal: -> StageRemote
 Copy message 72590 (12 of 40) StageLocal: -> StageRemote
 Copy message 72591 (13 of 40) StageLocal: -> StageRemote
 Copy message 72592 (14 of 40) StageLocal: -> StageRemote
 Copy message 72593 (15 of 40) StageLocal: -> StageRemote
 Copy message 72594 (16 of 40) StageLocal: -> StageRemote
 Copy message 72595 (17 of 40) StageLocal: -> StageRemote
 Copy message 72596 (18 of 40) StageLocal: -> StageRemote
 Copy message 72597 (19 of 40) StageLocal: -> StageRemote
 Copy message 72598 (20 of 40) StageLocal: -> StageRemote
 Copy message 72599 (21 of 40) StageLocal: -> StageRemote
 Copy message 72600 (22 of 40) StageLocal: -> StageRemote
 Copy message 72601 (23 of 40) StageLocal: -> StageRemote
 Copy message 72602 (24 of 40) StageLocal: -> StageRemote
 Copy message 72603 (25 of 40) StageLocal: -> StageRemote
 Copy message 72604 (26 of 40) StageLocal: -> StageRemote
 Copy message 72605 (27 of 40) StageLocal: -> StageRemote
 Copy message 72606 (28 of 40) StageLocal: -> StageRemote
 Copy message 72607 (29 of 40) StageLocal: -> StageRemote
 Copy message 72608 (30 of 40) StageLocal: -> StageRemote
 Copy message 72609 (31 of 40) StageLocal: -> StageRemote
 Copy message 72610 (32 of 40) StageLocal: -> StageRemote
 Copy message 72611 (33 of 40) StageLocal: -> StageRemote
 Copy message 72612 (34 of 40) StageLocal: -> StageRemote
 Copy message 72613 (35 of 40) StageLocal: -> StageRemote
 Copy message 72614 (36 of 40) StageLocal: -> StageRemote
 Copy message 72615 (37 of 40) StageLocal: -> StageRemote
 Copy message 72616 (38 of 40) StageLocal: -> StageRemote
 Copy message 72617 (39 of 40) StageLocal: -> StageRemote
 Copy message 72618 (40 of 40) StageLocal: -> StageRemote
 Deleting 91 messages (1291:1381) in IMAP[INBOX.INBOX]
Account sync StageNex:
 *** Finished account 'StageNex' in 0:31

cyril <at> CocoonSe:~$ offlineimap -a StageNex
OfflineIMAP 6.5.4
  Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync StageNex:
 *** Processing account StageNex
 Establishing connection to imap.laposte.net:993
Folder INBOX [acc: StageNex]:
 Syncing INBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Syncing INBOX.INBOX: IMAP -> Maildir
 Establishing connection to imap.laposte.net:993
Folder INBOX [acc: StageNex]:
 Copy message 72579 (1 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72580 (2 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72581 (3 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72582 (4 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72583 (5 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72584 (6 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72585 (7 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72586 (8 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72587 (9 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72588 (10 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72589 (11 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72590 (12 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72591 (13 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72592 (14 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72593 (15 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72594 (16 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72595 (17 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72596 (18 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72597 (19 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72598 (20 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72599 (21 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72600 (22 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72601 (23 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72602 (24 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72603 (25 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72604 (26 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72605 (27 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72606 (28 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72607 (29 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72608 (30 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72609 (31 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72610 (32 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72611 (33 of 44) StageRemote:INBOX -> StageLocal
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72590 (1 of 34) StageLocal: -> StageRemote
Folder INBOX [acc: StageNex]:
 Copy message 72612 (34 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72613 (35 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72614 (36 of 44) StageRemote:INBOX -> StageLocal
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72591 (2 of 34) StageLocal: -> StageRemote
Folder INBOX [acc: StageNex]:
 Copy message 72615 (37 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72616 (38 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72617 (39 of 44) StageRemote:INBOX -> StageLocal
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72592 (3 of 34) StageLocal: -> StageRemote
Folder INBOX [acc: StageNex]:
 Copy message 72618 (40 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72619 (41 of 44) StageRemote:INBOX -> StageLocal
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72593 (4 of 34) StageLocal: -> StageRemote
Folder INBOX [acc: StageNex]:
 Copy message 72620 (42 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72621 (43 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72622 (44 of 44) StageRemote:INBOX -> StageLocal
 Deleting 40 messages (1382:1421) in Maildir[]
 Copy message 1422 (1 of 3) StageLocal: -> StageRemote
 ERROR: [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
 ERROR: Syncing folder  [acc: StageNex]
  [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
 ERROR: ERROR in syncfolder for StageNex folder : Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/offlineimap/accounts.py", line 446, in syncfolder
    localfolder.syncmessagesto(remotefolder, statusfolder)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 526, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 409, in syncmessagesto_copy
    register = 0)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 320, in copymessageto
    rtime = self.getmessagetime(uid)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Maildir.py", line 226, in getmessagetime
    return os.path.getmtime(filepath)
  File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'

  [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
Folder INBOX.DRAFT [acc: StageNex]:
 Syncing INBOX.DRAFT: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72594 (5 of 34) StageLocal: -> StageRemote
Folder INBOX.TRASH [acc: StageNex]:
 Syncing INBOX.TRASH: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72579 (6 of 34) StageLocal: -> StageRemote
Folder INBOX.Drafts [acc: StageNex]:
 Syncing INBOX.Drafts: IMAP -> Maildir
Folder INBOX.OUTBOX [acc: StageNex]:
 Syncing INBOX.OUTBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72596 (7 of 34) StageLocal: -> StageRemote
Folder INBOX.QUARANTAINE [acc: StageNex]:
 Syncing INBOX.QUARANTAINE: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72597 (8 of 34) StageLocal: -> StageRemote
 Copy message 72598 (9 of 34) StageLocal: -> StageRemote
 Copy message 72599 (10 of 34) StageLocal: -> StageRemote
 Copy message 72600 (11 of 34) StageLocal: -> StageRemote
 Copy message 72580 (12 of 34) StageLocal: -> StageRemote
 Copy message 72602 (13 of 34) StageLocal: -> StageRemote
 Copy message 72603 (14 of 34) StageLocal: -> StageRemote
 Copy message 72595 (15 of 34) StageLocal: -> StageRemote
 Copy message 72605 (16 of 34) StageLocal: -> StageRemote
 Copy message 72606 (17 of 34) StageLocal: -> StageRemote
 Copy message 72581 (18 of 34) StageLocal: -> StageRemote
 Copy message 72608 (19 of 34) StageLocal: -> StageRemote
 Copy message 72582 (20 of 34) StageLocal: -> StageRemote
 Copy message 72604 (21 of 34) StageLocal: -> StageRemote
 Copy message 72619 (22 of 34) StageLocal: -> StageRemote
 Copy message 72620 (23 of 34) StageLocal: -> StageRemote
 Copy message 72621 (24 of 34) StageLocal: -> StageRemote
 Copy message 72622 (25 of 34) StageLocal: -> StageRemote
 Copy message 72584 (26 of 34) StageLocal: -> StageRemote
 Copy message 72583 (27 of 34) StageLocal: -> StageRemote
 Copy message 72585 (28 of 34) StageLocal: -> StageRemote
 Copy message 72607 (29 of 34) StageLocal: -> StageRemote
 Copy message 72586 (30 of 34) StageLocal: -> StageRemote
 Copy message 72587 (31 of 34) StageLocal: -> StageRemote
 Copy message 72588 (32 of 34) StageLocal: -> StageRemote
 Copy message 72589 (33 of 34) StageLocal: -> StageRemote
 Copy message 72601 (34 of 34) StageLocal: -> StageRemote
 Deleting 40 messages (1382:1421) in IMAP[INBOX.INBOX]
Account sync StageNex:
 *** Finished account 'StageNex' in 0:29
ERROR: Exceptions occurred during the run!
ERROR: [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
ERROR: Syncing folder  [acc: StageNex]
  [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
ERROR: ERROR in syncfolder for StageNex folder : Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/offlineimap/accounts.py", line 446, in syncfolder
    localfolder.syncmessagesto(remotefolder, statusfolder)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 526, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 409, in syncmessagesto_copy
    register = 0)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 320, in copymessageto
    rtime = self.getmessagetime(uid)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Maildir.py", line 226, in getmessagetime
    return os.path.getmtime(filepath)
  File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'

  [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'


Sometime the error comes from LocalStatus.py, in the line that read "os.rename(self.filename + ".tmp", self.filename)".
I've changed the code to get more information to read like this:
    def save(self):
        self.savelock.acquire()
        try:
            file = open(self.filename + ".tmp", "wt")
            file.write(magicline + "\n")
            for msg in self.messagelist.values():
                flags = msg['flags']
                flags = ''.join(sorted(flags))
                file.write("%s:%s\n" % (msg['uid'], flags))
            file.flush()
            if self.doautosave:
                os.fsync(file.fileno())
            file.close()
            if os.path.exists(self.filename + ".tmp"):
                os.rename(self.filename + ".tmp", self.filename)
            else:
                errstr = "Temporary file '%s' doesn't exist for message '%s'" % \
                    (self.filename + ".tmp", msg['uid'])
                self.ui.warn(errstr)
                # Raise the exception anyway
                os.rename(self.filename + ".tmp", self.filename)

            if self.doautosave:
                fd = os.open(os.path.dirname(self.filename), os.O_RDONLY)
                os.fsync(fd)
                os.close(fd)

        finally:
            self.savelock.release()

And, when the error happens here, the file that's not found is "~/.offlineimap/Account-StageNex/LocalStatus/dot.tmp"
Can you help me figure out the issue and solve it ?

Best regards,
Cyril

I'm not subscribed to the list.




_______________________________________________
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
chris coleman | 2 Aug 06:18 2012
Picon

Re: Offlineimap does strange things.


In my experience... the symptoms and errors that Cyril is reporting here in this detailed message.. are a glaring sign of a procedural codebase that has grown too big and complex for one person or group of people - to manage. 

We should seriously stop everything, and consider adding firepower to the project.

One way would be to adopt a free open source license IDE- use it to help us analyze what's actually going on- class diagrams, pyunit tests, code coverage analysis.  And refactor the codebase into testable, resilient, truly robust objects. 

One example: each IMAP mail server flavor - dovecot, exchange, cyrus, zarafa, gmail, yahoo, hotmail, etc., should have its own object - derived from a base IMAPServer class- and tailored to each server's peculiarities.  OfflineIMAP will detect the type of server automatically, and we will be far more successful testing the code when we have specific objects that we adapt to the specific mail server, through unit testing, and much better error reporting and logging information. 

Etc...

Your thoughts ?

-Chris



Hi,

  I'm using OfflineImap for multiple weeks currently, but recently, I added another account to my setup and offlineimap is now doing strange things.
Basically, I'm sync'ing multiple IMAP's server to a local maildir, and I'm using this maildir for my local imap client (thunderbird).

I've added an account from imap.laposte.net recently, and then offlineimap started doing strange thing while sync'ing this account. (You can register a test account on www.laposte.net if you need one).

Typically, the first sync (removed the account's specific folder in my maildir) goes perfectly, but then it fails randomly in the next sync.
Also, when it doesn't fail, it deletes messages but download them again, and so on repeatdly.

I'm using offlineimap 6.5.4, with the patch from this mailing list for string formatting in python 2.6's,  where "{}" is changed to "{argumentIndex}".

I'm not able to get a debug output as offlineimap deadlock while syncing this account when "-d" option is given.
I'm not seeing any issues for all my other accounts.

Here's the typical output of successive run of offlineimap (no message where changed on the server or locally between the runs):

cyril <at> CocoonSe:~$ offlineimap -a StageNex
OfflineIMAP 6.5.4
  Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync StageNex:
 *** Processing account StageNex
 Establishing connection to imap.laposte.net:993
^[[CFolder INBOX [acc: StageNex]:
 Syncing INBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Syncing INBOX.INBOX: IMAP -> Maildir
Folder INBOX [acc: StageNex]:
 Establishing connection to imap.laposte.net:993
Folder INBOX.INBOX [acc: StageNex]:
 Deleting 48 messages (72531:72578) in Maildir[]
Folder INBOX.DRAFT [acc: StageNex]:
 Syncing INBOX.DRAFT: IMAP -> Maildir
Folder INBOX.TRASH [acc: StageNex]:
 Syncing INBOX.TRASH: IMAP -> Maildir
Folder INBOX.Drafts [acc: StageNex]:
 Syncing INBOX.Drafts: IMAP -> Maildir
Folder INBOX.OUTBOX [acc: StageNex]:
 Syncing INBOX.OUTBOX: IMAP -> Maildir
Folder INBOX.QUARANTAINE [acc: StageNex]:
 Syncing INBOX.QUARANTAINE: IMAP -> Maildir
Folder INBOX [acc: StageNex]:
 Copy message 72579 (1 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72580 (2 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72581 (3 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72582 (4 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72583 (5 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72584 (6 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72585 (7 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72586 (8 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72587 (9 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72588 (10 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72589 (11 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72590 (12 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72591 (13 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72592 (14 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72593 (15 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72594 (16 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72595 (17 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72596 (18 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72597 (19 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72598 (20 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72599 (21 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72600 (22 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72601 (23 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72602 (24 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72603 (25 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72604 (26 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72605 (27 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72606 (28 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72607 (29 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72608 (30 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72609 (31 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72610 (32 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72611 (33 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72612 (34 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72613 (35 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72614 (36 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72615 (37 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72616 (38 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72617 (39 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72618 (40 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72619 (41 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72620 (42 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72621 (43 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72622 (44 of 44) StageRemote:INBOX -> StageLocal
 Deleting 91 messages (1291:1381) in Maildir[]
 Deleting 48 messages (72531:72578) in IMAP[INBOX]
Account sync StageNex:
 *** Finished account 'StageNex' in 0:21

cyril <at> CocoonSe:~$ offlineimap -a StageNex
OfflineIMAP 6.5.4
  Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync StageNex:
 *** Processing account StageNex
 Establishing connection to imap.laposte.net:993
Folder INBOX [acc: StageNex]:
 Syncing INBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Syncing INBOX.INBOX: IMAP -> Maildir
 Establishing connection to imap.laposte.net:993
Folder INBOX.DRAFT [acc: StageNex]:
 Syncing INBOX.DRAFT: IMAP -> Maildir
Folder INBOX.TRASH [acc: StageNex]:
 Syncing INBOX.TRASH: IMAP -> Maildir
Folder INBOX.Drafts [acc: StageNex]:
 Syncing INBOX.Drafts: IMAP -> Maildir
Folder INBOX.OUTBOX [acc: StageNex]:
 Syncing INBOX.OUTBOX: IMAP -> Maildir
Folder INBOX.QUARANTAINE [acc: StageNex]:
 Syncing INBOX.QUARANTAINE: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 1291 (1 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1292 (2 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1293 (3 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1294 (4 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1295 (5 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1296 (6 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1297 (7 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1298 (8 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1299 (9 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1300 (10 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1301 (11 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1302 (12 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1303 (13 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1304 (14 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1305 (15 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1306 (16 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1307 (17 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1308 (18 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1309 (19 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1310 (20 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1311 (21 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1312 (22 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1313 (23 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1314 (24 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1315 (25 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1316 (26 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1317 (27 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1318 (28 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1319 (29 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1320 (30 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1321 (31 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1322 (32 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1323 (33 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1324 (34 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1325 (35 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1326 (36 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1327 (37 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1328 (38 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1329 (39 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1330 (40 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1331 (41 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1332 (42 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1333 (43 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1334 (44 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1335 (45 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1336 (46 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1337 (47 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1338 (48 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1339 (49 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1340 (50 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1341 (51 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1342 (52 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1343 (53 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1344 (54 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1345 (55 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1346 (56 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1347 (57 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1348 (58 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1349 (59 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1350 (60 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1351 (61 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1352 (62 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1353 (63 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1354 (64 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1355 (65 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1356 (66 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1357 (67 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1358 (68 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1359 (69 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1360 (70 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1361 (71 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1362 (72 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1363 (73 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1364 (74 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1365 (75 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1366 (76 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1367 (77 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1368 (78 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1369 (79 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1370 (80 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1371 (81 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1372 (82 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1373 (83 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1374 (84 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1375 (85 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1376 (86 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1377 (87 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1378 (88 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1379 (89 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1380 (90 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Copy message 1381 (91 of 91) StageRemote:INBOX.INBOX -> StageLocal
 Deleting 44 messages (72579:72622) in Maildir[]
Account sync StageNex:
 *** Finished account 'StageNex' in 0:25

cyril <at> CocoonSe:~$ offlineimap -a StageNex
OfflineIMAP 6.5.4
  Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync StageNex:
 *** Processing account StageNex
 Establishing connection to imap.laposte.net:993
Folder INBOX [acc: StageNex]:
 Syncing INBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Syncing INBOX.INBOX: IMAP -> Maildir
 Establishing connection to imap.laposte.net:993
Folder INBOX [acc: StageNex]:
 Copy message 72579 (1 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72580 (2 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72581 (3 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72582 (4 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72583 (5 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72584 (6 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72585 (7 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72586 (8 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72587 (9 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72588 (10 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72589 (11 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72590 (12 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72591 (13 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72592 (14 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72593 (15 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72594 (16 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72595 (17 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72596 (18 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72597 (19 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72598 (20 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72599 (21 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72600 (22 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72601 (23 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72602 (24 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72603 (25 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72604 (26 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72605 (27 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72606 (28 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72607 (29 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72608 (30 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72609 (31 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72610 (32 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72611 (33 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72612 (34 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72613 (35 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72614 (36 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72615 (37 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72616 (38 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72617 (39 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72618 (40 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72619 (41 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72620 (42 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72621 (43 of 44) StageRemote:INBOX -> StageLocal
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72579 (1 of 40) StageLocal: -> StageRemote
Folder INBOX [acc: StageNex]:
 Copy message 72622 (44 of 44) StageRemote:INBOX -> StageLocal
 Deleting 91 messages (1291:1381) in Maildir[]
Folder INBOX.DRAFT [acc: StageNex]:
 Syncing INBOX.DRAFT: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72580 (2 of 40) StageLocal: -> StageRemote
Folder INBOX.TRASH [acc: StageNex]:
 Syncing INBOX.TRASH: IMAP -> Maildir
Folder INBOX.Drafts [acc: StageNex]:
 Syncing INBOX.Drafts: IMAP -> Maildir
Folder INBOX.OUTBOX [acc: StageNex]:
 Syncing INBOX.OUTBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72581 (3 of 40) StageLocal: -> StageRemote
Folder INBOX.QUARANTAINE [acc: StageNex]:
 Syncing INBOX.QUARANTAINE: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72582 (4 of 40) StageLocal: -> StageRemote
 Copy message 72583 (5 of 40) StageLocal: -> StageRemote
 Copy message 72584 (6 of 40) StageLocal: -> StageRemote
 Copy message 72585 (7 of 40) StageLocal: -> StageRemote
 Copy message 72586 (8 of 40) StageLocal: -> StageRemote
 Copy message 72587 (9 of 40) StageLocal: -> StageRemote
 Copy message 72588 (10 of 40) StageLocal: -> StageRemote
 Copy message 72589 (11 of 40) StageLocal: -> StageRemote
 Copy message 72590 (12 of 40) StageLocal: -> StageRemote
 Copy message 72591 (13 of 40) StageLocal: -> StageRemote
 Copy message 72592 (14 of 40) StageLocal: -> StageRemote
 Copy message 72593 (15 of 40) StageLocal: -> StageRemote
 Copy message 72594 (16 of 40) StageLocal: -> StageRemote
 Copy message 72595 (17 of 40) StageLocal: -> StageRemote
 Copy message 72596 (18 of 40) StageLocal: -> StageRemote
 Copy message 72597 (19 of 40) StageLocal: -> StageRemote
 Copy message 72598 (20 of 40) StageLocal: -> StageRemote
 Copy message 72599 (21 of 40) StageLocal: -> StageRemote
 Copy message 72600 (22 of 40) StageLocal: -> StageRemote
 Copy message 72601 (23 of 40) StageLocal: -> StageRemote
 Copy message 72602 (24 of 40) StageLocal: -> StageRemote
 Copy message 72603 (25 of 40) StageLocal: -> StageRemote
 Copy message 72604 (26 of 40) StageLocal: -> StageRemote
 Copy message 72605 (27 of 40) StageLocal: -> StageRemote
 Copy message 72606 (28 of 40) StageLocal: -> StageRemote
 Copy message 72607 (29 of 40) StageLocal: -> StageRemote
 Copy message 72608 (30 of 40) StageLocal: -> StageRemote
 Copy message 72609 (31 of 40) StageLocal: -> StageRemote
 Copy message 72610 (32 of 40) StageLocal: -> StageRemote
 Copy message 72611 (33 of 40) StageLocal: -> StageRemote
 Copy message 72612 (34 of 40) StageLocal: -> StageRemote
 Copy message 72613 (35 of 40) StageLocal: -> StageRemote
 Copy message 72614 (36 of 40) StageLocal: -> StageRemote
 Copy message 72615 (37 of 40) StageLocal: -> StageRemote
 Copy message 72616 (38 of 40) StageLocal: -> StageRemote
 Copy message 72617 (39 of 40) StageLocal: -> StageRemote
 Copy message 72618 (40 of 40) StageLocal: -> StageRemote
 Deleting 91 messages (1291:1381) in IMAP[INBOX.INBOX]
Account sync StageNex:
 *** Finished account 'StageNex' in 0:31

cyril <at> CocoonSe:~$ offlineimap -a StageNex
OfflineIMAP 6.5.4
  Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync StageNex:
 *** Processing account StageNex
 Establishing connection to imap.laposte.net:993
Folder INBOX [acc: StageNex]:
 Syncing INBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Syncing INBOX.INBOX: IMAP -> Maildir
 Establishing connection to imap.laposte.net:993
Folder INBOX [acc: StageNex]:
 Copy message 72579 (1 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72580 (2 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72581 (3 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72582 (4 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72583 (5 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72584 (6 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72585 (7 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72586 (8 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72587 (9 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72588 (10 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72589 (11 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72590 (12 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72591 (13 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72592 (14 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72593 (15 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72594 (16 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72595 (17 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72596 (18 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72597 (19 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72598 (20 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72599 (21 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72600 (22 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72601 (23 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72602 (24 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72603 (25 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72604 (26 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72605 (27 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72606 (28 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72607 (29 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72608 (30 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72609 (31 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72610 (32 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72611 (33 of 44) StageRemote:INBOX -> StageLocal
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72590 (1 of 34) StageLocal: -> StageRemote
Folder INBOX [acc: StageNex]:
 Copy message 72612 (34 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72613 (35 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72614 (36 of 44) StageRemote:INBOX -> StageLocal
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72591 (2 of 34) StageLocal: -> StageRemote
Folder INBOX [acc: StageNex]:
 Copy message 72615 (37 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72616 (38 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72617 (39 of 44) StageRemote:INBOX -> StageLocal
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72592 (3 of 34) StageLocal: -> StageRemote
Folder INBOX [acc: StageNex]:
 Copy message 72618 (40 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72619 (41 of 44) StageRemote:INBOX -> StageLocal
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72593 (4 of 34) StageLocal: -> StageRemote
Folder INBOX [acc: StageNex]:
 Copy message 72620 (42 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72621 (43 of 44) StageRemote:INBOX -> StageLocal
 Copy message 72622 (44 of 44) StageRemote:INBOX -> StageLocal
 Deleting 40 messages (1382:1421) in Maildir[]
 Copy message 1422 (1 of 3) StageLocal: -> StageRemote
 ERROR: [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
 ERROR: Syncing folder  [acc: StageNex]
  [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
 ERROR: ERROR in syncfolder for StageNex folder : Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/offlineimap/accounts.py", line 446, in syncfolder
    localfolder.syncmessagesto(remotefolder, statusfolder)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 526, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 409, in syncmessagesto_copy
    register = 0)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 320, in copymessageto
    rtime = self.getmessagetime(uid)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Maildir.py", line 226, in getmessagetime
    return os.path.getmtime(filepath)
  File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'

  [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
Folder INBOX.DRAFT [acc: StageNex]:
 Syncing INBOX.DRAFT: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72594 (5 of 34) StageLocal: -> StageRemote
Folder INBOX.TRASH [acc: StageNex]:
 Syncing INBOX.TRASH: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72579 (6 of 34) StageLocal: -> StageRemote
Folder INBOX.Drafts [acc: StageNex]:
 Syncing INBOX.Drafts: IMAP -> Maildir
Folder INBOX.OUTBOX [acc: StageNex]:
 Syncing INBOX.OUTBOX: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72596 (7 of 34) StageLocal: -> StageRemote
Folder INBOX.QUARANTAINE [acc: StageNex]:
 Syncing INBOX.QUARANTAINE: IMAP -> Maildir
Folder INBOX.INBOX [acc: StageNex]:
 Copy message 72597 (8 of 34) StageLocal: -> StageRemote
 Copy message 72598 (9 of 34) StageLocal: -> StageRemote
 Copy message 72599 (10 of 34) StageLocal: -> StageRemote
 Copy message 72600 (11 of 34) StageLocal: -> StageRemote
 Copy message 72580 (12 of 34) StageLocal: -> StageRemote
 Copy message 72602 (13 of 34) StageLocal: -> StageRemote
 Copy message 72603 (14 of 34) StageLocal: -> StageRemote
 Copy message 72595 (15 of 34) StageLocal: -> StageRemote
 Copy message 72605 (16 of 34) StageLocal: -> StageRemote
 Copy message 72606 (17 of 34) StageLocal: -> StageRemote
 Copy message 72581 (18 of 34) StageLocal: -> StageRemote
 Copy message 72608 (19 of 34) StageLocal: -> StageRemote
 Copy message 72582 (20 of 34) StageLocal: -> StageRemote
 Copy message 72604 (21 of 34) StageLocal: -> StageRemote
 Copy message 72619 (22 of 34) StageLocal: -> StageRemote
 Copy message 72620 (23 of 34) StageLocal: -> StageRemote
 Copy message 72621 (24 of 34) StageLocal: -> StageRemote
 Copy message 72622 (25 of 34) StageLocal: -> StageRemote
 Copy message 72584 (26 of 34) StageLocal: -> StageRemote
 Copy message 72583 (27 of 34) StageLocal: -> StageRemote
 Copy message 72585 (28 of 34) StageLocal: -> StageRemote
 Copy message 72607 (29 of 34) StageLocal: -> StageRemote
 Copy message 72586 (30 of 34) StageLocal: -> StageRemote
 Copy message 72587 (31 of 34) StageLocal: -> StageRemote
 Copy message 72588 (32 of 34) StageLocal: -> StageRemote
 Copy message 72589 (33 of 34) StageLocal: -> StageRemote
 Copy message 72601 (34 of 34) StageLocal: -> StageRemote
 Deleting 40 messages (1382:1421) in IMAP[INBOX.INBOX]
Account sync StageNex:
 *** Finished account 'StageNex' in 0:29
ERROR: Exceptions occurred during the run!
ERROR: [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
ERROR: Syncing folder  [acc: StageNex]
  [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
ERROR: ERROR in syncfolder for StageNex folder : Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/offlineimap/accounts.py", line 446, in syncfolder
    localfolder.syncmessagesto(remotefolder, statusfolder)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 526, in syncmessagesto
    action(dstfolder, statusfolder)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 409, in syncmessagesto_copy
    register = 0)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py", line 320, in copymessageto
    rtime = self.getmessagetime(uid)
  File "/usr/lib/python2.6/dist-packages/offlineimap/folder/Maildir.py", line 226, in getmessagetime
    return os.path.getmtime(filepath)
  File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'

  [Errno 2] No such file or directory: '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'


Sometime the error comes from LocalStatus.py, in the line that read "os.rename(self.filename + ".tmp", self.filename)".
I've changed the code to get more information to read like this:
    def save(self):
        self.savelock.acquire()
        try:
            file = open(self.filename + ".tmp", "wt")
            file.write(magicline + "\n")
            for msg in self.messagelist.values():
                flags = msg['flags']
                flags = ''.join(sorted(flags))
                file.write("%s:%s\n" % (msg['uid'], flags))
            file.flush()
            if self.doautosave:
                os.fsync(file.fileno())
            file.close()
            if os.path.exists(self.filename + ".tmp"):
                os.rename(self.filename + ".tmp", self.filename)
            else:
                errstr = "Temporary file '%s' doesn't exist for message '%s'" % \
                    (self.filename + ".tmp", msg['uid'])
                self.ui.warn(errstr)
                # Raise the exception anyway
                os.rename(self.filename + ".tmp", self.filename)

            if self.doautosave:
                fd = os.open(os.path.dirname(self.filename), os.O_RDONLY)
                os.fsync(fd)
                os.close(fd)

        finally:
            self.savelock.release()

And, when the error happens here, the file that's not found is "~/.offlineimap/Account-StageNex/LocalStatus/dot.tmp"
Can you help me figure out the issue and solve it ?

Best regards,
Cyril

I'm not subscribed to the list.


_______________________________________________
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
Abdó Roig | 2 Aug 15:40 2012
Picon

offlineimap and google chat logs

Hi,

I'm using offlineimap to keep backups of my gmail data (email + chat
logs). There is an issue regarding chat logs. The Chats IMAP folder
seems to be readonly, and for some reason offlineimap fails with error

   ERROR: Aborting sync, folder 'Chats' [acc: 'gchat']
   Server 'imap.gmail.com' closed connection, error on SELECT
'[Gmail]/Chats'. Server said: [Gmail]/Chats is not writable

even with the "readonly=True" config flag set on the corresponding
remote repository.

I attach a patch that soves the issue for me. I'm not sure if it
introduces any side effect.

Abdó Roig.
Attachment (imap_readonly.patch): application/octet-stream, 2334 bytes
_______________________________________________
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
Dmitrijs Ledkovs | 3 Aug 00:47 2012
Picon

Re: offlineimap and google chat logs

On 2 August 2012 14:40, Abdó Roig <abdo.roig <at> gmail.com> wrote:
> Hi,
>
> I'm using offlineimap to keep backups of my gmail data (email + chat
> logs). There is an issue regarding chat logs. The Chats IMAP folder
> seems to be readonly, and for some reason offlineimap fails with error
>
>    ERROR: Aborting sync, folder 'Chats' [acc: 'gchat']
>    Server 'imap.gmail.com' closed connection, error on SELECT
> '[Gmail]/Chats'. Server said: [Gmail]/Chats is not writable
>
> even with the "readonly=True" config flag set on the corresponding
> remote repository.
>
> I attach a patch that soves the issue for me. I'm not sure if it
> introduces any side effect.
>

Looks good to me.

+1

_______________________________________________
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
Thomas Kahle | 3 Aug 15:37 2012
Picon

Re: Offlineimap does strange things.

Hi,

please don't top post.

On 21:18 Wed 01 Aug 2012, chris coleman wrote:
> In my experience... the symptoms and errors that Cyril is reporting
> here in this detailed message.. are a glaring sign of a procedural
> codebase that has grown too big and complex for one person or group of
> people - to manage.

I think this statement is far to general.  Debugging network dependent
code is tricky, but how is that a 'glaring sign of a procedural
codebase'?

> We should seriously stop everything, and consider adding firepower to
> the project.

Stop what?  What does 'adding firepower' mean?

> One way would be to adopt a free open source license IDE- use it to
> help us analyze what's actually going on- class diagrams, pyunit
> tests, code coverage analysis.  And refactor the codebase into
> testable, resilient, truly robust objects.

You have made your point on the IDE issue before.  I personally don't
see how that is going to change a single problem.  No offlineimap
developer has ever reported that there are problems with managing the
code, or his or her IDE.

> One example: each IMAP mail server flavor - dovecot, exchange, cyrus,
> zarafa, gmail, yahoo, hotmail, etc., should have its own object -
> derived from a base IMAPServer class- and tailored to each server's
> peculiarities.

I'm not sure if this is a good design choice.  It makes offlineimap much
less portable.  There are RFC's and specifications for mail servers, so
in principle there should be no speical IMAPServer classes.  Of course,
reality is different, but that does not mean that we need to go back to
the dark days of vendor-specific Internet.

> OfflineIMAP will detect the type of server
> automatically, and we will be far more successful testing the code
> when we have specific objects that we adapt to the specific mail
> server, through unit testing, and much better error reporting and
> logging information.

Sure, tests would be good.  There is effort to make a test suite.  By
all means, please contribute to these efforts!

Cheers,
Thomas

> 
> 
> Etc...
> 
> 
> Your thoughts ?
> 
> -Chris
> 
> 
> 
> 
> ________________________________
> 
> 
> Hi,
> 
>   I'm using OfflineImap for multiple weeks currently, but recently,
>     I added another account to my setup and offlineimap is now doing
>     strange things.
> Basically, I'm sync'ing multiple IMAP's server to a local maildir,
>     and I'm using this maildir for my local imap client (thunderbird).
> 
> I've added an account from imap.laposte.net recently, and then offlineimap started doing strange thing
while sync'ing this account. (You can register a test account on www.laposte.net if you need one).
> 
> Typically, the first sync (removed the account's specific folder in
>     my maildir) goes perfectly, but then it fails randomly in the next
>     sync. 
> Also, when it doesn't fail, it deletes messages but download them
>     again, and so on repeatdly.
> 
> I'm using offlineimap 6.5.4, with the patch from this mailing list
>     for string formatting in python 2.6's,  where "{}" is changed to "{argumentIndex}".
> 
> I'm not able to get a debug output as offlineimap deadlock while
>     syncing this account when "-d" option is given.
> I'm not seeing any issues for all my other accounts.
> 
> Here's the typical output of successive run of offlineimap (no
>     message where changed on the server or locally between the runs):
> 
> cyril <at> CocoonSe:~$ offlineimap -a StageNex
> OfflineIMAP 6.5.4
>   Licensed under the GNU GPL v2+ (v2 or any later version)
> Account sync StageNex:
>  *** Processing account StageNex
>  Establishing connection to imap.laposte.net:993
> ^[[CFolder INBOX [acc: StageNex]:
>  Syncing INBOX: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Syncing INBOX.INBOX: IMAP -> Maildir
> Folder INBOX [acc: StageNex]:
>  Establishing connection to imap.laposte.net:993
> Folder INBOX.INBOX [acc: StageNex]:
>  Deleting 48 messages (72531:72578) in Maildir[]
> Folder INBOX.DRAFT [acc: StageNex]:
>  Syncing INBOX.DRAFT: IMAP -> Maildir
> Folder INBOX.TRASH [acc: StageNex]:
>  Syncing INBOX.TRASH: IMAP -> Maildir
> Folder INBOX.Drafts [acc: StageNex]:
>  Syncing INBOX.Drafts: IMAP -> Maildir
> Folder INBOX.OUTBOX [acc: StageNex]:
>  Syncing INBOX.OUTBOX: IMAP -> Maildir
> Folder INBOX.QUARANTAINE [acc: StageNex]:
>  Syncing INBOX.QUARANTAINE: IMAP -> Maildir
> Folder INBOX [acc: StageNex]:
>  Copy message 72579 (1 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72580 (2 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72581 (3 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72582 (4 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72583 (5 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72584 (6 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72585 (7 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72586 (8 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72587 (9 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72588 (10 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72589 (11 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72590 (12 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72591 (13 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72592 (14 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72593 (15 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72594 (16 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72595 (17 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72596 (18 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72597 (19 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72598 (20 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72599 (21 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72600 (22 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72601 (23 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72602 (24 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72603 (25 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72604 (26 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72605 (27 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72606 (28 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72607 (29 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72608 (30 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72609 (31 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72610 (32 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72611 (33 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72612 (34 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72613 (35 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72614 (36 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72615 (37 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72616 (38 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72617 (39 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72618 (40 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72619 (41 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72620 (42 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72621 (43 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72622 (44 of 44) StageRemote:INBOX -> StageLocal
>  Deleting 91 messages (1291:1381) in Maildir[]
>  Deleting 48 messages (72531:72578) in IMAP[INBOX]
> Account sync StageNex:
>  *** Finished account 'StageNex' in 0:21
> 
> cyril <at> CocoonSe:~$ offlineimap -a StageNex
> OfflineIMAP 6.5.4
>   Licensed under the GNU GPL v2+ (v2 or any later version)
> Account sync StageNex:
>  *** Processing account StageNex
>  Establishing connection to imap.laposte.net:993
> Folder INBOX [acc: StageNex]:
>  Syncing INBOX: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Syncing INBOX.INBOX: IMAP -> Maildir
>  Establishing connection to imap.laposte.net:993
> Folder INBOX.DRAFT [acc: StageNex]:
>  Syncing INBOX.DRAFT: IMAP -> Maildir
> Folder INBOX.TRASH [acc: StageNex]:
>  Syncing INBOX.TRASH: IMAP -> Maildir
> Folder INBOX.Drafts [acc: StageNex]:
>  Syncing INBOX.Drafts: IMAP -> Maildir
> Folder INBOX.OUTBOX [acc: StageNex]:
>  Syncing INBOX.OUTBOX: IMAP -> Maildir
> Folder INBOX.QUARANTAINE [acc: StageNex]:
>  Syncing INBOX.QUARANTAINE: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 1291 (1 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1292 (2 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1293 (3 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1294 (4 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1295 (5 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1296 (6 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1297 (7 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1298 (8 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1299 (9 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1300 (10 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1301 (11 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1302 (12 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1303 (13 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1304 (14 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1305 (15 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1306 (16 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1307 (17 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1308 (18 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1309 (19 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1310 (20 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1311 (21 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1312 (22 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1313 (23 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1314 (24 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1315 (25 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1316 (26 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1317 (27 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1318 (28 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1319 (29 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1320 (30 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1321 (31 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1322 (32 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1323 (33 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1324 (34 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1325 (35 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1326 (36 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1327 (37 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1328 (38 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1329 (39 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1330 (40 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1331 (41 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1332 (42 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1333 (43 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1334 (44 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1335 (45 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1336 (46 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1337 (47 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1338 (48 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1339 (49 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1340 (50 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1341 (51 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1342 (52 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1343 (53 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1344 (54 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1345 (55 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1346 (56 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1347 (57 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1348 (58 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1349 (59 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1350 (60 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1351 (61 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1352 (62 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1353 (63 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1354 (64 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1355 (65 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1356 (66 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1357 (67 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1358 (68 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1359 (69 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1360 (70 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1361 (71 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1362 (72 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1363 (73 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1364 (74 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1365 (75 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1366 (76 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1367 (77 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1368 (78 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1369 (79 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1370 (80 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1371 (81 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1372 (82 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1373 (83 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1374 (84 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1375 (85 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1376 (86 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1377 (87 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1378 (88 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1379 (89 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1380 (90 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Copy message 1381 (91 of 91) StageRemote:INBOX.INBOX ->
>       StageLocal
>  Deleting 44 messages (72579:72622) in Maildir[]
> Account sync StageNex:
>  *** Finished account 'StageNex' in 0:25
> 
> cyril <at> CocoonSe:~$ offlineimap -a StageNex
> OfflineIMAP 6.5.4
>   Licensed under the GNU GPL v2+ (v2 or any later version)
> Account sync StageNex:
>  *** Processing account StageNex
>  Establishing connection to imap.laposte.net:993
> Folder INBOX [acc: StageNex]:
>  Syncing INBOX: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Syncing INBOX.INBOX: IMAP -> Maildir
>  Establishing connection to imap.laposte.net:993
> Folder INBOX [acc: StageNex]:
>  Copy message 72579 (1 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72580 (2 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72581 (3 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72582 (4 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72583 (5 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72584 (6 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72585 (7 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72586 (8 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72587 (9 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72588 (10 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72589 (11 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72590 (12 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72591 (13 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72592 (14 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72593 (15 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72594 (16 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72595 (17 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72596 (18 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72597 (19 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72598 (20 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72599 (21 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72600 (22 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72601 (23 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72602 (24 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72603 (25 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72604 (26 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72605 (27 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72606 (28 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72607 (29 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72608 (30 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72609 (31 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72610 (32 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72611 (33 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72612 (34 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72613 (35 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72614 (36 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72615 (37 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72616 (38 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72617 (39 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72618 (40 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72619 (41 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72620 (42 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72621 (43 of 44) StageRemote:INBOX -> StageLocal
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72579 (1 of 40) StageLocal: -> StageRemote
> Folder INBOX [acc: StageNex]:
>  Copy message 72622 (44 of 44) StageRemote:INBOX -> StageLocal
>  Deleting 91 messages (1291:1381) in Maildir[]
> Folder INBOX.DRAFT [acc: StageNex]:
>  Syncing INBOX.DRAFT: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72580 (2 of 40) StageLocal: -> StageRemote
> Folder INBOX.TRASH [acc: StageNex]:
>  Syncing INBOX.TRASH: IMAP -> Maildir
> Folder INBOX.Drafts [acc: StageNex]:
>  Syncing INBOX.Drafts: IMAP -> Maildir
> Folder INBOX.OUTBOX [acc: StageNex]:
>  Syncing INBOX.OUTBOX: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72581 (3 of 40) StageLocal: -> StageRemote
> Folder INBOX.QUARANTAINE [acc: StageNex]:
>  Syncing INBOX.QUARANTAINE: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72582 (4 of 40) StageLocal: -> StageRemote
>  Copy message 72583 (5 of 40) StageLocal: -> StageRemote
>  Copy message 72584 (6 of 40) StageLocal: -> StageRemote
>  Copy message 72585 (7 of 40) StageLocal: -> StageRemote
>  Copy message 72586 (8 of 40) StageLocal: -> StageRemote
>  Copy message 72587 (9 of 40) StageLocal: -> StageRemote
>  Copy message 72588 (10 of 40) StageLocal: -> StageRemote
>  Copy message 72589 (11 of 40) StageLocal: -> StageRemote
>  Copy message 72590 (12 of 40) StageLocal: -> StageRemote
>  Copy message 72591 (13 of 40) StageLocal: -> StageRemote
>  Copy message 72592 (14 of 40) StageLocal: -> StageRemote
>  Copy message 72593 (15 of 40) StageLocal: -> StageRemote
>  Copy message 72594 (16 of 40) StageLocal: -> StageRemote
>  Copy message 72595 (17 of 40) StageLocal: -> StageRemote
>  Copy message 72596 (18 of 40) StageLocal: -> StageRemote
>  Copy message 72597 (19 of 40) StageLocal: -> StageRemote
>  Copy message 72598 (20 of 40) StageLocal: -> StageRemote
>  Copy message 72599 (21 of 40) StageLocal: -> StageRemote
>  Copy message 72600 (22 of 40) StageLocal: -> StageRemote
>  Copy message 72601 (23 of 40) StageLocal: -> StageRemote
>  Copy message 72602 (24 of 40) StageLocal: -> StageRemote
>  Copy message 72603 (25 of 40) StageLocal: -> StageRemote
>  Copy message 72604 (26 of 40) StageLocal: -> StageRemote
>  Copy message 72605 (27 of 40) StageLocal: -> StageRemote
>  Copy message 72606 (28 of 40) StageLocal: -> StageRemote
>  Copy message 72607 (29 of 40) StageLocal: -> StageRemote
>  Copy message 72608 (30 of 40) StageLocal: -> StageRemote
>  Copy message 72609 (31 of 40) StageLocal: -> StageRemote
>  Copy message 72610 (32 of 40) StageLocal: -> StageRemote
>  Copy message 72611 (33 of 40) StageLocal: -> StageRemote
>  Copy message 72612 (34 of 40) StageLocal: -> StageRemote
>  Copy message 72613 (35 of 40) StageLocal: -> StageRemote
>  Copy message 72614 (36 of 40) StageLocal: -> StageRemote
>  Copy message 72615 (37 of 40) StageLocal: -> StageRemote
>  Copy message 72616 (38 of 40) StageLocal: -> StageRemote
>  Copy message 72617 (39 of 40) StageLocal: -> StageRemote
>  Copy message 72618 (40 of 40) StageLocal: -> StageRemote
>  Deleting 91 messages (1291:1381) in IMAP[INBOX.INBOX]
> Account sync StageNex:
>  *** Finished account 'StageNex' in 0:31
> 
> cyril <at> CocoonSe:~$ offlineimap -a StageNex
> OfflineIMAP 6.5.4
>   Licensed under the GNU GPL v2+ (v2 or any later version)
> Account sync StageNex:
>  *** Processing account StageNex
>  Establishing connection to imap.laposte.net:993
> Folder INBOX [acc: StageNex]:
>  Syncing INBOX: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Syncing INBOX.INBOX: IMAP -> Maildir
>  Establishing connection to imap.laposte.net:993
> Folder INBOX [acc: StageNex]:
>  Copy message 72579 (1 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72580 (2 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72581 (3 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72582 (4 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72583 (5 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72584 (6 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72585 (7 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72586 (8 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72587 (9 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72588 (10 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72589 (11 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72590 (12 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72591 (13 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72592 (14 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72593 (15 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72594 (16 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72595 (17 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72596 (18 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72597 (19 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72598 (20 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72599 (21 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72600 (22 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72601 (23 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72602 (24 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72603 (25 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72604 (26 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72605 (27 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72606 (28 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72607 (29 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72608 (30 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72609 (31 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72610 (32 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72611 (33 of 44) StageRemote:INBOX -> StageLocal
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72590 (1 of 34) StageLocal: -> StageRemote
> Folder INBOX [acc: StageNex]:
>  Copy message 72612 (34 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72613 (35 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72614 (36 of 44) StageRemote:INBOX -> StageLocal
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72591 (2 of 34) StageLocal: -> StageRemote
> Folder INBOX [acc: StageNex]:
>  Copy message 72615 (37 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72616 (38 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72617 (39 of 44) StageRemote:INBOX -> StageLocal
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72592 (3 of 34) StageLocal: -> StageRemote
> Folder INBOX [acc: StageNex]:
>  Copy message 72618 (40 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72619 (41 of 44) StageRemote:INBOX -> StageLocal
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72593 (4 of 34) StageLocal: -> StageRemote
> Folder INBOX [acc: StageNex]:
>  Copy message 72620 (42 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72621 (43 of 44) StageRemote:INBOX -> StageLocal
>  Copy message 72622 (44 of 44) StageRemote:INBOX -> StageLocal
>  Deleting 40 messages (1382:1421) in Maildir[]
>  Copy message 1422 (1 of 3) StageLocal: -> StageRemote
>  ERROR: [Errno 2] No such file or directory:
> '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
>  ERROR: Syncing folder  [acc: StageNex]
>   [Errno 2] No such file or directory:
> '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
>  ERROR: ERROR in syncfolder for StageNex folder : Traceback (most
>       recent call last):
>   File "/usr/lib/python2.6/dist-packages/offlineimap/accounts.py",
>       line 446, in syncfolder
>     localfolder.syncmessagesto(remotefolder, statusfolder)
>   File
>       "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py",
>       line 526, in syncmessagesto
>     action(dstfolder, statusfolder)
>   File
>       "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py",
>       line 409, in syncmessagesto_copy
>     register = 0)
>   File
>       "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py",
>       line 320, in copymessageto
>     rtime = self.getmessagetime(uid)
>   File
>       "/usr/lib/python2.6/dist-packages/offlineimap/folder/Maildir.py",
>       line 226, in getmessagetime
>     return os.path.getmtime(filepath)
>   File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
>     return os.stat(filename).st_mtime
> OSError: [Errno 2] No such file or directory:
> '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
> 
>   [Errno 2] No such file or directory:
> '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
> Folder INBOX.DRAFT [acc: StageNex]:
>  Syncing INBOX.DRAFT: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72594 (5 of 34) StageLocal: -> StageRemote
> Folder INBOX.TRASH [acc: StageNex]:
>  Syncing INBOX.TRASH: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72579 (6 of 34) StageLocal: -> StageRemote
> Folder INBOX.Drafts [acc: StageNex]:
>  Syncing INBOX.Drafts: IMAP -> Maildir
> Folder INBOX.OUTBOX [acc: StageNex]:
>  Syncing INBOX.OUTBOX: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72596 (7 of 34) StageLocal: -> StageRemote
> Folder INBOX.QUARANTAINE [acc: StageNex]:
>  Syncing INBOX.QUARANTAINE: IMAP -> Maildir
> Folder INBOX.INBOX [acc: StageNex]:
>  Copy message 72597 (8 of 34) StageLocal: -> StageRemote
>  Copy message 72598 (9 of 34) StageLocal: -> StageRemote
>  Copy message 72599 (10 of 34) StageLocal: -> StageRemote
>  Copy message 72600 (11 of 34) StageLocal: -> StageRemote
>  Copy message 72580 (12 of 34) StageLocal: -> StageRemote
>  Copy message 72602 (13 of 34) StageLocal: -> StageRemote
>  Copy message 72603 (14 of 34) StageLocal: -> StageRemote
>  Copy message 72595 (15 of 34) StageLocal: -> StageRemote
>  Copy message 72605 (16 of 34) StageLocal: -> StageRemote
>  Copy message 72606 (17 of 34) StageLocal: -> StageRemote
>  Copy message 72581 (18 of 34) StageLocal: -> StageRemote
>  Copy message 72608 (19 of 34) StageLocal: -> StageRemote
>  Copy message 72582 (20 of 34) StageLocal: -> StageRemote
>  Copy message 72604 (21 of 34) StageLocal: -> StageRemote
>  Copy message 72619 (22 of 34) StageLocal: -> StageRemote
>  Copy message 72620 (23 of 34) StageLocal: -> StageRemote
>  Copy message 72621 (24 of 34) StageLocal: -> StageRemote
>  Copy message 72622 (25 of 34) StageLocal: -> StageRemote
>  Copy message 72584 (26 of 34) StageLocal: -> StageRemote
>  Copy message 72583 (27 of 34) StageLocal: -> StageRemote
>  Copy message 72585 (28 of 34) StageLocal: -> StageRemote
>  Copy message 72607 (29 of 34) StageLocal: -> StageRemote
>  Copy message 72586 (30 of 34) StageLocal: -> StageRemote
>  Copy message 72587 (31 of 34) StageLocal: -> StageRemote
>  Copy message 72588 (32 of 34) StageLocal: -> StageRemote
>  Copy message 72589 (33 of 34) StageLocal: -> StageRemote
>  Copy message 72601 (34 of 34) StageLocal: -> StageRemote
>  Deleting 40 messages (1382:1421) in IMAP[INBOX.INBOX]
> Account sync StageNex:
>  *** Finished account 'StageNex' in 0:29
> ERROR: Exceptions occurred during the run!
> ERROR: [Errno 2] No such file or directory:
> '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
> ERROR: Syncing folder  [acc: StageNex]
>   [Errno 2] No such file or directory:
> '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
> ERROR: ERROR in syncfolder for StageNex folder : Traceback (most
>       recent call last):
>   File "/usr/lib/python2.6/dist-packages/offlineimap/accounts.py",
>       line 446, in syncfolder
>     localfolder.syncmessagesto(remotefolder, statusfolder)
>   File
>       "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py",
>       line 526, in syncmessagesto
>     action(dstfolder, statusfolder)
>   File
>       "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py",
>       line 409, in syncmessagesto_copy
>     register = 0)
>   File
>       "/usr/lib/python2.6/dist-packages/offlineimap/folder/Base.py",
>       line 320, in copymessageto
>     rtime = self.getmessagetime(uid)
>   File
>       "/usr/lib/python2.6/dist-packages/offlineimap/folder/Maildir.py",
>       line 226, in getmessagetime
>     return os.path.getmtime(filepath)
>   File "/usr/lib/python2.6/genericpath.py", line 54, in getmtime
>     return os.stat(filename).st_mtime
> OSError: [Errno 2] No such file or directory:
> '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
> 
>   [Errno 2] No such file or directory:
> '/home/cyril/Mail/stage.nexvision <at> laposte.net/cur/1343821969_5.17456.CocoonSe,U=72590,FMD5=aca32a17825bff5f86362943f232925c:2,S'
> 
> 
> Sometime the error comes from LocalStatus.py, in the line that read
>     "os.rename(self.filename + ".tmp", self.filename)". 
> I've changed the code to get more information to read like this:
>     def save(self):
>         self.savelock.acquire()
>         try:
>             file = open(self.filename + ".tmp", "wt")
>             file.write(magicline + "\n")
>             for msg in self.messagelist.values():
>                 flags = msg['flags']
>                 flags = ''.join(sorted(flags))
>                 file.write("%s:%s\n" % (msg['uid'], flags))
>             file.flush()
>             if self.doautosave:
>                 os.fsync(file.fileno())
>             file.close()
>             if os.path.exists(self.filename + ".tmp"):
>                 os.rename(self.filename + ".tmp", self.filename)
>             else:
>                 errstr = "Temporary file '%s' doesn't exist for
>       message '%s'" % \
>                     (self.filename + ".tmp", msg['uid'])
>                 self.ui.warn(errstr)
>                 # Raise the exception anyway
>                 os.rename(self.filename + ".tmp", self.filename)
> 
>             if self.doautosave:
>                 fd = os.open(os.path.dirname(self.filename),
>       os.O_RDONLY)
>                 os.fsync(fd)
>                 os.close(fd)
> 
>         finally:
>             self.savelock.release()
> 
> And, when the error happens here, the file that's not found is
>     "~/.offlineimap/Account-StageNex/LocalStatus/dot.tmp"
> Can you help me figure out the issue and solve it ?
> 
> Best regards, 
> Cyril
> 
> I'm not subscribed to the list.

> _______________________________________________
> 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

--

-- 
Thomas Kahle
http://dev.gentoo.org/~tomka/
_______________________________________________
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
Sriram Karra | 3 Aug 15:40 2012
Picon

Re: Offlineimap does strange things.

On Fri, Aug 3, 2012 at 7:07 PM, Thomas Kahle <tomka <at> gentoo.org> wrote:


Sure, tests would be good.  There is effort to make a test suite.  By
all means, please contribute to these efforts!

Is there some public repo with a test-suite for IMAP?
_______________________________________________
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
Stephen Paul Weber | 3 Aug 23:13 2012
Picon

[BUG] " in folder name causes crash

I have a Gmail "folder" with quotation marks in the name.  Gmail delivers 
the names with the double quotes backslash-escaped (ala \"), but offlineimap 
crashes with

ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account '[REDACTED]'
   too many values to unpack

Traceback:
   File "/mnt/mail/offlineimap/offlineimap/accounts.py", line 212, in syncrunner
	 self.sync()
   File "/mnt/mail/offlineimap/offlineimap/accounts.py", line 271, in sync
	 remoterepos.syncfoldersto(localrepos, statusrepos)
   File "/mnt/mail/offlineimap/offlineimap/repository/Base.py", line 145, in syncfoldersto
	 src_folders = src_repo.getfolders()
   File "/mnt/mail/offlineimap/offlineimap/repository/IMAP.py", line 275, in getfolders
	 flags, delim, name = imaputil.imapsplit(string)

--

-- 
Stephen Paul Weber,  <at> singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
_______________________________________________
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
Nicolas Sebrecht | 4 Aug 00:34 2012
Picon

Re: Offlineimap does strange things.

On Fri, Aug 03, 2012 at 07:10:55PM +0530, Sriram Karra wrote:

>    Is there some public repo with a test-suite for IMAP?

  git <at> github.com:OfflineIMAP/offlineimap.git

or

  git://github.com/spaetz/offlineimap.git

% ls test
OLItest  README  __init__.py  credentials.conf.sample  tests
%

This is WIP.

There is not dedicated repository as it relies in internal API of the
code.

We might have another approach with a dedicated repository in order to
not rely on internal API and be able to test any version of OfflineIMAP.
I've started imap-mixer in the past at

  https://github.com/nicolas33/imap-mixer

and

  https://github.com/nicolas33/imap-mixer/blob/master/doc/specs/design.rst

but I had to stop as I was too busy. I think I could revive this project
if one serious guy (at least) want to help me.
Oh, and don't look for code, there isn't now.

Also, I think it is possible to make better design and specs.

--

-- 
Nicolas Sebrecht

_______________________________________________
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

Nicolas Sebrecht | 4 Aug 00:35 2012
Picon

Re: offlineimap and google chat logs

On Thu, Aug 02, 2012 at 11:47:03PM +0100, Dmitrijs Ledkovs wrote:
> On 2 August 2012 14:40, Abdó Roig <abdo.roig <at> gmail.com> wrote:
> > Hi,
> >
> > I'm using offlineimap to keep backups of my gmail data (email + chat
> > logs). There is an issue regarding chat logs. The Chats IMAP folder
> > seems to be readonly, and for some reason offlineimap fails with error
> >
> >    ERROR: Aborting sync, folder 'Chats' [acc: 'gchat']
> >    Server 'imap.gmail.com' closed connection, error on SELECT
> > '[Gmail]/Chats'. Server said: [Gmail]/Chats is not writable
> >
> > even with the "readonly=True" config flag set on the corresponding
> > remote repository.
> >
> > I attach a patch that soves the issue for me. I'm not sure if it
> > introduces any side effect.
> >
> 
> Looks good to me.
> 
> +1

Someone to merge this patch, then?

--

-- 
Nicolas Sebrecht

_______________________________________________
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


Gmane