<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><br></span></div><div><span>Sounds like the "maxage" algorithm is </span>defective: it's ignoring the source messages older than maxage, but trying to process destination messages regardless of "age".. </div><div><br></div><div>The algorithm bug should be fixed to exclude from consideration all messages older than maxage on BOTH the source AND destination. </div><div><br></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="yui_3_2_0_4_131136502202260"><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;" class="yui_3_2_0_4_131136502202260">=========================</div><div style="font-size: 12pt; font-family: 'times new
roman', 'new york', times, serif; "><font size="2" face="Arial"></font><br>That's just a test run, it's ok if I spoil the local copy.<br>The problem is that offlineimap seems to ignore the old messages at<br>the source repo and tries to delete them from the destination (because<br>they are 'missing' at source). It also fails with an exception which<br>is a problem too.<br><br>2011/7/22 Mike Dawson <<a ymailto="mailto:mike@paiwastoon.com.af" href="mailto:mike@paiwastoon.com.af">mike@paiwastoon.com.af</a>>:<br>> Hi,<br>><br>> Not entirely sure about what might be going on with the message delete<br>> or the value returned.<br>><br>> The way maxage works is that it only looks at what is within that age on<br>> both sides. Any messages that are not within maxage will be ignored<br>> completely.<br>><br>> Thus if I were you I would backup the local copy entirely, then delete<br>> the messages from gmail, and then
run offlineimap with maxage ...<br>><br>> -Mike<br>><br>> --<br>> Mike Dawson<br>> CEO<br>> PAIWASTOON Networking Services Ltd.<br>> www.paiwastoon.af<br>><br>> "Making IT work for Afghanistan"<br>> Tel: +93 798 258 092<br>> Email: <a ymailto="mailto:mike@paiwastoon.com.af" href="mailto:mike@paiwastoon.com.af">mike@paiwastoon.com.af</a><br>><br>><br>><br>><br>> On Fri, 2011-07-22 at 09:26 +0400, Ivan Semin wrote:<br>>> I am having problems with maxage too (not sure it's the same bug though).<br>>> I have a gmail account which is 90% full. I am doing a one-way sync<br>>> (readonly=1) from gmail to my local backup server. Now I want to<br>>> delete all messages that are >3 months old from gmail, but I don't<br>>> want them deleted from the local box. So I set maxage=90 and run the<br>>> sync again. I did NOT delete any messages from gmail yet! That's what<br>>>
offlineimap 6.3.4-rc2 is doing:<br>>><br>>> Deleting 533 messages (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,<br>>> 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,<br>>> 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,<br>>> 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65,<br>>> 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82,<br>>> 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,<br>>> 100, 101, 102, 103, 104, 105, 106, 108, 109, 110, 111, 112, 113, 114,<br>>> 115, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140,<br>>> 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168,<br>>> 169, 171, 172, 173, 174, 175, 176, 178, 179, 181, 182, 184, 186, 188,<br>>> 190, 192, 194, 196, 198, 200, 202, 203, 205, 207, 209, 211, 213, 215,<br>>> 217, 219, 220, 222,
224, 226, 228, 230, 231, 233, 235, 237, 238, 240,<br>>> 242, 244, 246, 248, 250, 252, 254, 256, 258, 260, 262, 264, 266, 268,<br>>> 269, 271, 273, 275, 277, 279, 281, 283, 285, 287, 289, 290, 291, 292,<br>>> 294, 295, 297, 299, 301, 304, 305, 307, 308, 310, 312, 314, 316, 319,<br>>> 320, 322, 324, 326, 328, 330, 332, 334, 336, 338, 339, 341, 342, 344,<br>>> 346, 347, 349, 350, 351, 352, 354, 355, 357, 359, 361, 363, 365, 368,<br>>> 369, 371, 373, 375, 377, 379, 381, 383, 385, 387, 389, 391, 393, 395,<br>>> 397, 399, 401, 403, 405, 407, 408, 410, 412, 414, 416, 418, 419, 421,<br>>> 422, 423, 424, 425, 427, 429, 430, 431, 432, 434, 436, 438, 440, 442,<br>>> 443, 445, 447, 449, 451, 453, 455, 457, 459, 461, 463, 465, 467, 468,<br>>> 469, 471, 473, 475, 477, 479, 481, 483, 485, 487, 489, 491, 493, 495,<br>>> 497, 499, 501, 503, 504, 505, 506, 509, 510, 511, 512, 513, 514, 516,<br>>>
518, 521, 522, 524, 526, 528, 530, 532, 533, 536, 537, 540, 541, 543,<br>>> 545, 547, 549, 552, 553, 555, 558, 559, 561, 563, 565, 567, 583, 584,<br>>> 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 599,<br>>> 601, 602, 603, 604, 605, 607, 610, 611, 616, 617, 618, 619, 620, 621,<br>>> 624, 625, 628, 629, 631, 632, 634, 636, 638, 640, 641, 642, 643, 646,<br>>> 647, 648, 649, 651, 654, 655, 661, 662, 664, 666, 667, 668, 669, 670,<br>>> 671, 672, 673, 674, 675, 676, 677, 678, 679, 680, 681, 682, 683, 684,<br>>> 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698,<br>>> 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712,<br>>> 713, 714, 715, 716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726,<br>>> 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740,<br>>> 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753,
754,<br>>> 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768,<br>>> 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782)<br>>> in MappedIMAP[[Gmail].Sent Mail]<br>>> WARNING: ERROR attempting to sync flags for account Data:Traceback<br>>> (most recent call last):<br>>> File "/usr/lib/python2.6/site-packages/offlineimap/folder/Base.py",<br>>> line 413, in syncmessagesto<br>>> action(dstfolder, statusfolder)<br>>> File "/usr/lib/python2.6/site-packages/offlineimap/folder/Base.py",<br>>> line 329, in syncmessagesto_delete<br>>> folder.deletemessages(deletelist)<br>>> File "/usr/lib/python2.6/site-packages/offlineimap/folder/UIDMaps.py",<br>>> line 253, in deletemessages<br>>> self._mb.deletemessages(self._uidlist(self.r2l, uidlist))<br>>> File
"/usr/lib/python2.6/site-packages/offlineimap/folder/UIDMaps.py",<br>>> line 87, in _uidlist<br>>> return [mapping[x] for x in items]<br>>> KeyError: 1L<br>>><br>>> WARNING: ERROR in syncfolder for Data folder [Gmail]/Sent Mail:<br>>> Traceback (most recent call last):<br>>> File "/usr/lib/python2.6/site-packages/offlineimap/accounts.py",<br>>> line 347, in syncfolder<br>>> remotefolder.syncmessagesto(localfolder, statusfolder)<br>>> File "/usr/lib/python2.6/site-packages/offlineimap/folder/Base.py",<br>>> line 413, in syncmessagesto<br>>> action(dstfolder, statusfolder)<br>>> File "/usr/lib/python2.6/site-packages/offlineimap/folder/Base.py",<br>>> line 329, in syncmessagesto_delete<br>>> folder.deletemessages(deletelist)<br>>> File
"/usr/lib/python2.6/site-packages/offlineimap/folder/UIDMaps.py",<br>>> line 253, in deletemessages<br>>> self._mb.deletemessages(self._uidlist(self.r2l, uidlist))<br>>> File "/usr/lib/python2.6/site-packages/offlineimap/folder/UIDMaps.py",<br>>> line 87, in _uidlist<br>>> return [mapping[x] for x in items]<br>>> KeyError: 1L<br>>><br>>> Syncing [Gmail]/Spam: Gmail -> MappedIMAP<br>>> ***** Finished processing account Data<br><br></div></div></div></body></html>