gauteh / lieer

Fast email-fetching and sending and two-way tag synchronization between notmuch and GMail
http://lieer.gaute.vetsj.com
Other
497 stars 60 forks source link

Caught in "historyId is too old" loop #203

Closed mjg closed 2 years ago

mjg commented 2 years ago

With an unchanged lieeer 1.3 I suddenly ended up in a "historyId is too old" loop a few days ago:

push: everything is up-to-date.
pull: partial synchronization.. (hid: 47913)
pull: historyId is too old, full sync required.
fetching messages: 100%|█████████████████████████████████████████| 39/39 [00:00<00:00, 48.09it/s]
removing deleted: 0it [00:00, ?it/s]
receiving content: everything up-to-date.
receiving metadata: 100%|███████████████████████████████████████| 39/39 [00:00<00:00, 109.93it/s]
pull: complete, removing resume file
current historyId: 47913, current revision: 670957

And the next run gives exactly the same message with the same numbers, and they agree with both the state file and its backup.

The very first time that this happened the numbers switched from 49017/638749 to the ones above, as if GMails history IDs went backwards - or maybe one of the API-pages gives a 404 for reasons different from lieer's expectations?

[The same happens on another much larger GMail account where I don't want to try the full fetch just yet...]

mjg commented 2 years ago

And sure enough, after a few days, and after forcing a mailbox change, but few minutes after posting this issue, things went back to normal. Still stomped, but maybe at some point the GMail api does answer "since x" when x is too old.

gauteh commented 2 years ago

Good 😊

lør. 11. sep. 2021, 17:30 skrev Michael J Gruber @.***>:

Closed #203 https://github.com/gauteh/lieer/issues/203.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gauteh/lieer/issues/203#event-5287670266, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAN36Y5FQ56XRYJ72N42HLUBNYZTANCNFSM5D3AQI7Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.