Bugreport: maxage deleting old email from destination

Ivan Semin ivun at wirebyte.com
Mon Aug 1 16:50:48 BST 2011


> I don't understand that. What is a 'LIVE' mailbox and live sync?
I mean I am trying on a production server, where I am not allowed to
break everything to test.

> You have local and remote mailboxes. In the local mailbox you deleted old
> mails, but you don't want to delete them from remote mailbox. So you run
> offlineimap with maxage setting. But you still see old emails being
> deleted.
Well, this is a bit confusing, because offlineimap syncs both ways, so
I don't see much difference between 'remote' and 'local'. In my case
local is local dovecot and remote is gmail. I am actually interested
in syncing mail FROM gmail (because nothing arrives at the local
server) TO local server. I even tried readonly=1 for gmail repository.
That was for a different purpose - for mail backup. I delete old
messages from gmail but don't want them to delete from my local
(backup) server.

Anyway, I've done what you suggested and now I'm even more confused :).

1. Remove maxage from config. Run the sync. Now I should have all mail
in both gmail and local mailserver. I even installed a mail client and
made a screenshot showing my old mail at the local IMAP server.
Unfortunately I didn't check gmail at this point, but I'm pretty sure
they are the same.

2. I connect to local imap and execute your query to check the
internaldates. These dates seem to match the Date header (checked on a
couple of emails)

. fetch 1:* internaldate
* 1 FETCH (INTERNALDATE "09-May-2011 10:44:47 -0700")
* 2 FETCH (INTERNALDATE "09-May-2011 10:45:53 -0700")
* 3 FETCH (INTERNALDATE "09-May-2011 14:51:41 -0700")
* 4 FETCH (INTERNALDATE "11-May-2011 23:51:33 -0700")
* 5 FETCH (INTERNALDATE "12-May-2011 12:05:38 -0700")
* 6 FETCH (INTERNALDATE "12-May-2011 11:58:47 -0700")
* 7 FETCH (INTERNALDATE "13-May-2011 12:38:36 -0700")
* 8 FETCH (INTERNALDATE "28-Apr-2011 21:12:14 -0700")
* 9 FETCH (INTERNALDATE "28-Apr-2011 21:12:33 -0700")
* 10 FETCH (INTERNALDATE "02-May-2011 13:16:12 -0700")
* 11 FETCH (INTERNALDATE "16-May-2011 13:01:19 -0700")
* 12 FETCH (INTERNALDATE "18-May-2011 11:52:45 -0700")
* 13 FETCH (INTERNALDATE "18-May-2011 12:18:22 -0700")
* 14 FETCH (INTERNALDATE "19-May-2011 08:37:38 -0700")
* 15 FETCH (INTERNALDATE "19-May-2011 09:05:53 -0700")
* 16 FETCH (INTERNALDATE "19-May-2011 19:01:56 -0700")
* 17 FETCH (INTERNALDATE "19-May-2011 18:27:20 -0700")
* 18 FETCH (INTERNALDATE "20-May-2011 04:23:56 -0700")
* 19 FETCH (INTERNALDATE "20-May-2011 11:01:06 -0700")
* 20 FETCH (INTERNALDATE "23-May-2011 11:23:39 -0700")
* 21 FETCH (INTERNALDATE "23-May-2011 11:18:57 -0700")
* 22 FETCH (INTERNALDATE "24-May-2011 16:52:19 -0700")
* 23 FETCH (INTERNALDATE "25-May-2011 11:52:02 -0700")
* 24 FETCH (INTERNALDATE "27-May-2011 13:09:11 -0700")
* 25 FETCH (INTERNALDATE "27-May-2011 12:03:11 -0700")
* 26 FETCH (INTERNALDATE "31-Jan-2011 09:59:49 -0800")
* 27 FETCH (INTERNALDATE "31-Jan-2011 11:42:12 -0800")
* 28 FETCH (INTERNALDATE "01-Feb-2011 11:01:34 -0800")
* 29 FETCH (INTERNALDATE "02-Feb-2011 09:20:21 -0800")
* 30 FETCH (INTERNALDATE "02-Feb-2011 09:59:41 -0800")
* 31 FETCH (INTERNALDATE "03-Feb-2011 10:02:28 -0800")
* 32 FETCH (INTERNALDATE "07-Feb-2011 17:24:00 -0800")
* 33 FETCH (INTERNALDATE "09-Feb-2011 09:50:52 -0800")
* 34 FETCH (INTERNALDATE "15-Feb-2011 03:27:00 -0800")
* 35 FETCH (INTERNALDATE "17-Feb-2011 15:12:08 -0800")
* 36 FETCH (INTERNALDATE "17-Feb-2011 17:09:38 -0800")
* 37 FETCH (INTERNALDATE "18-Feb-2011 12:51:39 -0800")
* 38 FETCH (INTERNALDATE "21-Feb-2011 14:44:48 -0800")
* 39 FETCH (INTERNALDATE "21-Feb-2011 14:07:17 -0800")
* 40 FETCH (INTERNALDATE "22-Feb-2011 09:41:35 -0800")
* 41 FETCH (INTERNALDATE "22-Feb-2011 19:48:26 -0800")
* 42 FETCH (INTERNALDATE "22-Feb-2011 19:48:30 -0800")
* 43 FETCH (INTERNALDATE "23-Feb-2011 16:52:23 -0800")
* 44 FETCH (INTERNALDATE "25-Feb-2011 17:00:32 -0800")
* 45 FETCH (INTERNALDATE "28-Feb-2011 09:49:07 -0800")
* 46 FETCH (INTERNALDATE "01-Mar-2011 18:09:12 -0800")
* 47 FETCH (INTERNALDATE "02-Mar-2011 12:40:51 -0800")
* 48 FETCH (INTERNALDATE "03-Mar-2011 17:11:29 -0800")
* 49 FETCH (INTERNALDATE "14-Mar-2011 17:39:28 -0700")
* 50 FETCH (INTERNALDATE "15-Mar-2011 15:49:44 -0700")
* 51 FETCH (INTERNALDATE "02-Apr-2011 09:21:15 -0700")
* 52 FETCH (INTERNALDATE "04-Apr-2011 11:22:40 -0700")
* 53 FETCH (INTERNALDATE "14-Apr-2011 13:01:23 -0700")
* 54 FETCH (INTERNALDATE "15-Apr-2011 15:46:01 -0700")
* 55 FETCH (INTERNALDATE "15-Apr-2011 16:46:52 -0700")
* 56 FETCH (INTERNALDATE "17-Apr-2011 21:59:28 -0700")
* 57 FETCH (INTERNALDATE "25-Apr-2011 15:30:42 -0700")
* 58 FETCH (INTERNALDATE "25-Apr-2011 15:32:05 -0700")
* 59 FETCH (INTERNALDATE "25-Apr-2011 15:32:52 -0700")
* 60 FETCH (INTERNALDATE "25-Apr-2011 15:33:48 -0700")
* 61 FETCH (INTERNALDATE "25-Apr-2011 15:34:54 -0700")
* 62 FETCH (INTERNALDATE "25-Apr-2011 15:36:04 -0700")
* 63 FETCH (INTERNALDATE "25-Apr-2011 15:36:58 -0700")
* 64 FETCH (INTERNALDATE "25-Apr-2011 15:37:37 -0700")
* 65 FETCH (INTERNALDATE "29-Apr-2011 21:21:50 -0700")
* 66 FETCH (INTERNALDATE "04-May-2011 13:08:39 -0700")
* 67 FETCH (INTERNALDATE "05-May-2011 21:26:48 -0700")
* 68 FETCH (INTERNALDATE "05-May-2011 21:29:31 -0700")
* 69 FETCH (INTERNALDATE "11-May-2011 13:45:10 -0700")
* 70 FETCH (INTERNALDATE "11-May-2011 14:06:37 -0700")
* 71 FETCH (INTERNALDATE "20-May-2011 20:20:42 -0700")
* 72 FETCH (INTERNALDATE "02-Jun-2011 12:00:25 -0700")
* 73 FETCH (INTERNALDATE "02-Jun-2011 16:32:46 -0700")
* 74 FETCH (INTERNALDATE "08-Jun-2011 11:06:37 -0700")
* 75 FETCH (INTERNALDATE "10-Jun-2011 19:02:13 -0700")
* 76 FETCH (INTERNALDATE "13-Jun-2011 17:25:17 -0700")
* 77 FETCH (INTERNALDATE "13-Jun-2011 17:57:54 -0700")
* 78 FETCH (INTERNALDATE "14-Jun-2011 18:15:06 -0700")
* 79 FETCH (INTERNALDATE "17-Jun-2011 12:07:26 -0700")
* 80 FETCH (INTERNALDATE "20-Jun-2011 16:07:51 -0700")
* 81 FETCH (INTERNALDATE "20-Jun-2011 15:02:48 -0700")
* 82 FETCH (INTERNALDATE "23-Jun-2011 10:29:00 -0700")
* 83 FETCH (INTERNALDATE "23-Jun-2011 12:07:01 -0700")
* 84 FETCH (INTERNALDATE "23-Jun-2011 12:07:20 -0700")
* 85 FETCH (INTERNALDATE "28-Jun-2011 13:30:19 -0700")
* 86 FETCH (INTERNALDATE "30-Jun-2011 11:43:08 -0700")
* 87 FETCH (INTERNALDATE "05-Jul-2011 14:29:58 -0700")
* 88 FETCH (INTERNALDATE "05-Jul-2011 18:15:06 -0700")
* 89 FETCH (INTERNALDATE "06-Jul-2011 15:35:54 -0700")
* 90 FETCH (INTERNALDATE "06-Jul-2011 15:35:57 -0700")
* 91 FETCH (INTERNALDATE "06-Jul-2011 15:36:00 -0700")
* 92 FETCH (INTERNALDATE "07-Jul-2011 16:33:02 -0700")
* 93 FETCH (INTERNALDATE "07-Jul-2011 11:30:25 -0700")
* 94 FETCH (INTERNALDATE "10-Jul-2011 16:08:42 -0700")
* 95 FETCH (INTERNALDATE "11-Jul-2011 10:54:00 -0700")
* 96 FETCH (INTERNALDATE "11-Jul-2011 17:56:17 -0700")
* 97 FETCH (INTERNALDATE "11-Jul-2011 16:22:33 -0700")
* 98 FETCH (INTERNALDATE "18-Jul-2011 08:41:28 -0700")
* 99 FETCH (INTERNALDATE "19-Jul-2011 13:46:51 -0700")
* 100 FETCH (INTERNALDATE "19-Jul-2011 12:40:17 -0700")
* 101 FETCH (INTERNALDATE "20-Jul-2011 18:53:12 -0700")
* 102 FETCH (INTERNALDATE "21-Jul-2011 12:40:45 -0700")
* 103 FETCH (INTERNALDATE "21-Jul-2011 15:41:46 -0700")
* 104 FETCH (INTERNALDATE "21-Jul-2011 15:41:56 -0700")
* 105 FETCH (INTERNALDATE "21-Jul-2011 18:03:29 -0700")
* 106 FETCH (INTERNALDATE "22-Jul-2011 08:09:42 -0700")
* 107 FETCH (INTERNALDATE "22-Jul-2011 13:05:26 -0700")
* 108 FETCH (INTERNALDATE "25-Jul-2011 14:02:18 -0700")
* 109 FETCH (INTERNALDATE "28-Jul-2011 10:33:22 -0700")
* 110 FETCH (INTERNALDATE "28-Jul-2011 15:34:40 -0700")
* 111 FETCH (INTERNALDATE "05-Nov-2010 12:26:03 -0700")
* 112 FETCH (INTERNALDATE "28-Jan-2011 17:20:15 -0800")
* 113 FETCH (INTERNALDATE "24-Jan-2011 11:21:54 -0800")
* 114 FETCH (INTERNALDATE "21-Jan-2011 20:25:25 -0800")
* 115 FETCH (INTERNALDATE "21-Jan-2011 11:40:07 -0800")
* 116 FETCH (INTERNALDATE "20-Jan-2011 17:30:04 -0800")
* 117 FETCH (INTERNALDATE "20-Jan-2011 17:34:38 -0800")
* 118 FETCH (INTERNALDATE "19-Jan-2011 20:05:05 -0800")
* 119 FETCH (INTERNALDATE "19-Jan-2011 18:43:47 -0800")
* 120 FETCH (INTERNALDATE "19-Jan-2011 11:49:25 -0800")
* 121 FETCH (INTERNALDATE "17-Jan-2011 12:41:20 -0800")
* 122 FETCH (INTERNALDATE "17-Jan-2011 10:07:40 -0800")
* 123 FETCH (INTERNALDATE "28-Dec-2010 09:23:10 -0800")
* 124 FETCH (INTERNALDATE "25-Dec-2010 02:12:30 -0800")
* 125 FETCH (INTERNALDATE "25-Dec-2010 02:11:35 -0800")
* 126 FETCH (INTERNALDATE "25-Dec-2010 02:10:03 -0800")
* 127 FETCH (INTERNALDATE "13-Dec-2010 13:34:48 -0800")
* 128 FETCH (INTERNALDATE "07-Dec-2010 12:44:23 -0800")
* 129 FETCH (INTERNALDATE "07-Dec-2010 12:44:19 -0800")
* 130 FETCH (INTERNALDATE "07-Dec-2010 12:44:15 -0800")
* 131 FETCH (INTERNALDATE "07-Dec-2010 12:44:11 -0800")
* 132 FETCH (INTERNALDATE "07-Dec-2010 12:44:07 -0800")
* 133 FETCH (INTERNALDATE "03-Dec-2010 22:36:22 -0800")
. OK Fetch completed.

So we have 133 emails. There are still emails older than 180 days ago
(02-Feb-2011) - we'll check if they are deleted in the next step.

3. I set maxage=180 and rerun the sync.

Syncing 1A_invoices: Gmail -> MappedIMAP
Deleting 26 messages (49, 50, 51, 134, 135, 136, 137, 138, 139, 140,
141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154,
155, 156) in MappedIMAP[1A_invoices]

4. Trying a local imap FETCH again, still 133 emails

5. Trying a FETCH on a remote imap (gmail)

. fetch 1:* internaldate
* 1 FETCH (INTERNALDATE "09-May-2011 16:44:56 +0000")
* 2 FETCH (INTERNALDATE "09-May-2011 13:46:17 +0000")
* 3 FETCH (INTERNALDATE "09-May-2011 18:51:41 +0000")
* 4 FETCH (INTERNALDATE "12-May-2011 03:51:32 +0000")
* 5 FETCH (INTERNALDATE "12-May-2011 15:08:10 +0000")
* 6 FETCH (INTERNALDATE "12-May-2011 15:58:50 +0000")
* 7 FETCH (INTERNALDATE "13-May-2011 15:41:10 +0000")
* 8 FETCH (INTERNALDATE "29-Apr-2011 00:10:32 +0000")
* 9 FETCH (INTERNALDATE "29-Apr-2011 00:10:50 +0000")
* 10 FETCH (INTERNALDATE "02-May-2011 16:09:45 +0000")
* 11 FETCH (INTERNALDATE "16-May-2011 16:03:52 +0000")
* 12 FETCH (INTERNALDATE "18-May-2011 07:52:53 +0000")
* 13 FETCH (INTERNALDATE "18-May-2011 08:18:32 +0000")
* 14 FETCH (INTERNALDATE "19-May-2011 11:37:40 +0000")
* 15 FETCH (INTERNALDATE "19-May-2011 12:06:18 +0000")
* 16 FETCH (INTERNALDATE "19-May-2011 15:01:56 +0000")
* 17 FETCH (INTERNALDATE "19-May-2011 22:27:20 +0000")
* 18 FETCH (INTERNALDATE "20-May-2011 10:24:18 +0000")
* 19 FETCH (INTERNALDATE "20-May-2011 17:00:17 +0000")
* 20 FETCH (INTERNALDATE "23-May-2011 14:23:42 +0000")
* 21 FETCH (INTERNALDATE "23-May-2011 17:19:01 +0000")
* 22 FETCH (INTERNALDATE "24-May-2011 19:52:25 +0000")
* 23 FETCH (INTERNALDATE "25-May-2011 14:52:08 +0000")
* 24 FETCH (INTERNALDATE "27-May-2011 17:09:16 +0000")
* 25 FETCH (INTERNALDATE "27-May-2011 18:03:16 +0000")
* 26 FETCH (INTERNALDATE "31-Jan-2011 15:01:21 +0000")
* 27 FETCH (INTERNALDATE "31-Jan-2011 16:44:37 +0000")
* 28 FETCH (INTERNALDATE "01-Feb-2011 17:00:32 +0000")
* 29 FETCH (INTERNALDATE "02-Feb-2011 14:20:23 +0000")
* 30 FETCH (INTERNALDATE "02-Feb-2011 15:01:23 +0000")
* 31 FETCH (INTERNALDATE "03-Feb-2011 15:04:19 +0000")
* 32 FETCH (INTERNALDATE "07-Feb-2011 23:24:08 +0000")
* 33 FETCH (INTERNALDATE "09-Feb-2011 14:52:54 +0000")
* 34 FETCH (INTERNALDATE "15-Feb-2011 03:26:54 +0000")
* 35 FETCH (INTERNALDATE "17-Feb-2011 21:12:28 +0000")
* 36 FETCH (INTERNALDATE "18-Feb-2011 01:09:47 +0000")
* 37 FETCH (INTERNALDATE "18-Feb-2011 17:54:03 +0000")
* 38 FETCH (INTERNALDATE "21-Feb-2011 19:43:10 +0000")
* 39 FETCH (INTERNALDATE "21-Feb-2011 22:07:32 +0000")
* 40 FETCH (INTERNALDATE "22-Feb-2011 14:43:53 +0000")
* 41 FETCH (INTERNALDATE "23-Feb-2011 00:39:56 +0000")
* 42 FETCH (INTERNALDATE "23-Feb-2011 00:40:00 +0000")
* 43 FETCH (INTERNALDATE "24-Feb-2011 00:52:43 +0000")
* 44 FETCH (INTERNALDATE "26-Feb-2011 01:01:56 +0000")
* 45 FETCH (INTERNALDATE "28-Feb-2011 14:51:42 +0000")
* 46 FETCH (INTERNALDATE "02-Mar-2011 00:07:30 +0000")
* 47 FETCH (INTERNALDATE "02-Mar-2011 20:41:38 +0000")
* 48 FETCH (INTERNALDATE "04-Mar-2011 01:16:46 +0000")
* 49 FETCH (INTERNALDATE "14-Mar-2011 23:44:50 +0000")
* 50 FETCH (INTERNALDATE "15-Mar-2011 19:49:45 +0000")
* 51 FETCH (INTERNALDATE "02-Apr-2011 12:21:16 +0000")
* 52 FETCH (INTERNALDATE "04-Apr-2011 14:27:18 +0000")
* 53 FETCH (INTERNALDATE "14-Apr-2011 17:02:46 +0000")
* 54 FETCH (INTERNALDATE "15-Apr-2011 18:45:50 +0000")
* 55 FETCH (INTERNALDATE "15-Apr-2011 19:47:12 +0000")
* 56 FETCH (INTERNALDATE "18-Apr-2011 01:01:57 +0000")
* 57 FETCH (INTERNALDATE "25-Apr-2011 11:31:00 +0000")
* 58 FETCH (INTERNALDATE "25-Apr-2011 11:32:17 +0000")
* 59 FETCH (INTERNALDATE "25-Apr-2011 11:33:04 +0000")
* 60 FETCH (INTERNALDATE "25-Apr-2011 11:34:00 +0000")
* 61 FETCH (INTERNALDATE "25-Apr-2011 11:35:08 +0000")
* 62 FETCH (INTERNALDATE "25-Apr-2011 11:36:36 +0000")
* 63 FETCH (INTERNALDATE "25-Apr-2011 11:37:10 +0000")
* 64 FETCH (INTERNALDATE "25-Apr-2011 11:37:50 +0000")
* 65 FETCH (INTERNALDATE "29-Apr-2011 17:22:12 +0000")
* 66 FETCH (INTERNALDATE "04-May-2011 16:02:15 +0000")
* 67 FETCH (INTERNALDATE "05-May-2011 17:27:05 +0000")
* 68 FETCH (INTERNALDATE "05-May-2011 17:29:47 +0000")
* 69 FETCH (INTERNALDATE "11-May-2011 17:45:21 +0000")
* 70 FETCH (INTERNALDATE "11-May-2011 18:06:42 +0000")
* 71 FETCH (INTERNALDATE "20-May-2011 16:20:55 +0000")
* 72 FETCH (INTERNALDATE "02-Jun-2011 15:03:03 +0000")
* 73 FETCH (INTERNALDATE "02-Jun-2011 19:32:50 +0000")
* 74 FETCH (INTERNALDATE "08-Jun-2011 14:08:23 +0000")
* 75 FETCH (INTERNALDATE "11-Jun-2011 01:24:33 +0000")
* 76 FETCH (INTERNALDATE "13-Jun-2011 23:47:55 +0000")
* 77 FETCH (INTERNALDATE "13-Jun-2011 20:58:51 +0000")
* 78 FETCH (INTERNALDATE "14-Jun-2011 21:14:56 +0000")
* 79 FETCH (INTERNALDATE "17-Jun-2011 15:07:35 +0000")
* 80 FETCH (INTERNALDATE "20-Jun-2011 22:07:54 +0000")
* 81 FETCH (INTERNALDATE "20-Jun-2011 21:25:17 +0000")
* 82 FETCH (INTERNALDATE "23-Jun-2011 13:29:04 +0000")
* 83 FETCH (INTERNALDATE "23-Jun-2011 15:07:02 +0000")
* 84 FETCH (INTERNALDATE "23-Jun-2011 15:07:21 +0000")
* 85 FETCH (INTERNALDATE "28-Jun-2011 16:23:25 +0000")
* 86 FETCH (INTERNALDATE "30-Jun-2011 15:43:12 +0000")
* 87 FETCH (INTERNALDATE "05-Jul-2011 17:30:00 +0000")
* 88 FETCH (INTERNALDATE "05-Jul-2011 21:14:32 +0000")
* 89 FETCH (INTERNALDATE "06-Jul-2011 21:35:56 +0000")
* 90 FETCH (INTERNALDATE "06-Jul-2011 21:35:59 +0000")
* 91 FETCH (INTERNALDATE "06-Jul-2011 21:36:01 +0000")
* 92 FETCH (INTERNALDATE "07-Jul-2011 19:26:05 +0000")
* 93 FETCH (INTERNALDATE "07-Jul-2011 17:30:40 +0000")
* 94 FETCH (INTERNALDATE "10-Jul-2011 19:08:50 +0000")
* 95 FETCH (INTERNALDATE "11-Jul-2011 16:54:15 +0000")
* 96 FETCH (INTERNALDATE "11-Jul-2011 20:49:17 +0000")
* 97 FETCH (INTERNALDATE "11-Jul-2011 22:45:24 +0000")
* 98 FETCH (INTERNALDATE "18-Jul-2011 11:41:41 +0000")
* 99 FETCH (INTERNALDATE "19-Jul-2011 09:47:11 +0000")
* 100 FETCH (INTERNALDATE "19-Jul-2011 18:40:16 +0000")
* 101 FETCH (INTERNALDATE "21-Jul-2011 00:53:14 +0000")
* 102 FETCH (INTERNALDATE "21-Jul-2011 15:43:47 +0000")
* 103 FETCH (INTERNALDATE "21-Jul-2011 21:41:49 +0000")
* 104 FETCH (INTERNALDATE "21-Jul-2011 21:41:58 +0000")
* 105 FETCH (INTERNALDATE "22-Jul-2011 00:10:39 +0000")
* 106 FETCH (INTERNALDATE "22-Jul-2011 11:10:18 +0000")
* 107 FETCH (INTERNALDATE "22-Jul-2011 19:05:21 +0000")
* 108 FETCH (INTERNALDATE "25-Jul-2011 16:58:13 +0000")
* 109 FETCH (INTERNALDATE "28-Jul-2011 16:35:26 +0000")
* 110 FETCH (INTERNALDATE "28-Jul-2011 21:34:42 +0000")
* 111 FETCH (INTERNALDATE "05-Nov-2010 18:27:15 +0000")
* 112 FETCH (INTERNALDATE "28-Jan-2011 23:20:17 +0000")
* 113 FETCH (INTERNALDATE "24-Jan-2011 19:21:54 +0000")
* 114 FETCH (INTERNALDATE "22-Jan-2011 01:18:16 +0000")
* 115 FETCH (INTERNALDATE "21-Jan-2011 19:40:08 +0000")
* 116 FETCH (INTERNALDATE "21-Jan-2011 01:30:06 +0000")
* 117 FETCH (INTERNALDATE "20-Jan-2011 17:34:41 +0000")
* 118 FETCH (INTERNALDATE "20-Jan-2011 00:58:02 +0000")
* 119 FETCH (INTERNALDATE "20-Jan-2011 00:43:57 +0000")
* 120 FETCH (INTERNALDATE "19-Jan-2011 16:51:52 +0000")
* 121 FETCH (INTERNALDATE "17-Jan-2011 20:41:21 +0000")
* 122 FETCH (INTERNALDATE "17-Jan-2011 15:10:07 +0000")
* 123 FETCH (INTERNALDATE "28-Dec-2010 14:25:36 +0000")
* 124 FETCH (INTERNALDATE "25-Dec-2010 00:11:59 +0000")
* 125 FETCH (INTERNALDATE "25-Dec-2010 00:11:05 +0000")
* 126 FETCH (INTERNALDATE "25-Dec-2010 00:09:33 +0000")
* 127 FETCH (INTERNALDATE "13-Dec-2010 18:37:14 +0000")
* 128 FETCH (INTERNALDATE "07-Dec-2010 18:44:25 +0000")
* 129 FETCH (INTERNALDATE "07-Dec-2010 18:44:21 +0000")
* 130 FETCH (INTERNALDATE "07-Dec-2010 18:44:17 +0000")
* 131 FETCH (INTERNALDATE "07-Dec-2010 18:44:13 +0000")
* 132 FETCH (INTERNALDATE "07-Dec-2010 18:44:09 +0000")
* 133 FETCH (INTERNALDATE "04-Dec-2010 03:51:45 +0000")
. OK Success


6. Just to prove I'm not a complete idiot, complaining about the
deleted mail which is not being deleted, I remove maxage and run the
sync again.

Syncing 1A_invoices: Gmail -> MappedIMAP
Copy message 49 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 50 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 51 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 134 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 135 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 136 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 137 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 138 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 139 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 140 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 141 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 142 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 143 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 144 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 145 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 146 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 147 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 148 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 149 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 150 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 151 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 152 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 153 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 154 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 155 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message 156 Gmail[1A_invoices] -> MappedIMAP[1A_invoices]
Copy message -11 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -26 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -25 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -24 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -23 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -22 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -21 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -20 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]

at this point it hung somehow (gmail is unstable today, this may be
the reason), so I killed it and started again:

Syncing 1A_invoices: Gmail -> MappedIMAP
Deleting 8 messages (141, 150, 151, 152, 153, 154, 155, 156) in
MappedIMAP[1A_invoices]
Copy message -11 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -18 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -17 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -16 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -15 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -14 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -13 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -12 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -2 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -10 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -9 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -8 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -7 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -6 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -5 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -4 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -3 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]
Copy message -1 MappedIMAP[1A_invoices] -> Gmail[1A_invoices]

Again, logging in to local imap - 133 emails. Remote gmail - 133 emails.

I don't understand:
- what are negative UIDs?
- what did it delete? The IDs 153, 154, 155, 156 are the most
confusing, because there were just 133 emails in the folder. Are those
different IDs?
- what did it copy? It actually downloaded something, it wasn't just instant!

Now I suspect it's just the debug output which is wrong, but that
needs an explaination anyway. It actually deleted something when I add
maxage and actually downloads something when I remove it. If I just
rerun the sync with the same parameters - nothing happens.




More information about the OfflineIMAP-project mailing list