Giter Club home page Giter Club logo

Comments (13)

julian-klode avatar julian-klode commented on August 28, 2024

I was just doing the usual sync thing.

from lieer.

julian-klode avatar julian-klode commented on August 28, 2024

I guess the correct thing to do is to just re-download the message if it went missing on the local disk for some reason (not sure why it went missing in the first place, but that's a different story).

from lieer.

julian-klode avatar julian-klode commented on August 28, 2024

A full sync fixed it, BTW. Maybe a full sync should be triggered automatically in such a case? Or maybe there should be a warning if the files are missing, but fetch them and continue (so that you can run a full sync eventually when you have time).

from lieer.

gauteh avatar gauteh commented on August 28, 2024

from lieer.

julian-klode avatar julian-klode commented on August 28, 2024

OK, so the message was available on the remote side (queried the gid of the message via API explorer) and I'm not aware of me changing tags on it - maybe locally, but I don't recall touching the emails remotely. It only disappeared locally but I'm not sure why.

from lieer.

julian-klode avatar julian-klode commented on August 28, 2024

OK, I'm digging through the history list. Meta info from my log was:

Jun 02 00:38:09 jak-x230 gmi[9725]: remote historyId: 12103618
Jun 02 00:38:09 jak-x230 gmi[9725]: pull: partial synchronization.. (hid: 12103095)

In revision 12103168, the message and several others received the TRASH label:

  {
   "id": "12103168",
   "messages": [
    {
     "id": "15bac9a5ba0b826b",
     "threadId": "15bac9a5ba0b826b"
    },
    {
     "id": "15bac9a6ad3a52ce",
     "threadId": "15bac9a5ba0b826b"
    },
    {
     "id": "15baca3b0b0ba06c",
     "threadId": "15bac9a5ba0b826b"
    },
    {
     "id": "15baf137daaf5954",
     "threadId": "15bac9a5ba0b826b"
    },
    {
     "id": "15bb1608c62507f3",
     "threadId": "15bac9a5ba0b826b"
    },
    {
     "id": "15bb1bc17569b718",
     "threadId": "15bac9a5ba0b826b"
    },
    {
     "id": "15bb1fc16b05a649",
     "threadId": "15bac9a5ba0b826b"
    },
    {
     "id": "15c62fa47e0c5434",
     "threadId": "15bac9a5ba0b826b"
    },
    {
     "id": "15c65baf1cd5b23d",
     "threadId": "15bac9a5ba0b826b"
    }
   ],
   "labelsAdded": [
    {
     "message": {
      "id": "15bac9a5ba0b826b",
      "threadId": "15bac9a5ba0b826b",
      "labelIds": [
       "IMPORTANT",
       "Label_41",
       "CATEGORY_PERSONAL",
       "TRASH",
       "SENT"
      ]
     },
     "labelIds": [
      "TRASH"
     ]
    },
    {
     "message": {
      "id": "15bac9a6ad3a52ce",
      "threadId": "15bac9a5ba0b826b",
      "labelIds": [
       "IMPORTANT",
       "Label_41",
       "CATEGORY_PERSONAL",
       "TRASH",
       "SENT"
      ]
     },
     "labelIds": [
      "TRASH"
     ]
    },
    {
     "message": {
      "id": "15baca3b0b0ba06c",
      "threadId": "15bac9a5ba0b826b",
      "labelIds": [
       "IMPORTANT",
       "Label_41",
       "CATEGORY_PERSONAL",
       "TRASH"
      ]
     },
     "labelIds": [
      "TRASH"
     ]
    },
    {
     "message": {
      "id": "15baf137daaf5954",
      "threadId": "15bac9a5ba0b826b",
      "labelIds": [
       "IMPORTANT",
       "Label_41",
       "CATEGORY_PERSONAL",
       "TRASH",
       "Label_12"
      ]
     },
     "labelIds": [
      "TRASH"
     ]
    },
    {
     "message": {
      "id": "15bb1608c62507f3",
      "threadId": "15bac9a5ba0b826b",
      "labelIds": [
       "IMPORTANT",
       "Label_41",
       "CATEGORY_PERSONAL",
       "TRASH",
       "SENT"
      ]
     },
     "labelIds": [
      "TRASH"
     ]
    },
    {
     "message": {
      "id": "15bb1bc17569b718",
      "threadId": "15bac9a5ba0b826b",
      "labelIds": [
       "IMPORTANT",
       "Label_41",
       "CATEGORY_PERSONAL",
       "TRASH",
       "SENT"
      ]
     },
     "labelIds": [
      "TRASH"
     ]
    },
    {
     "message": {
      "id": "15bb1fc16b05a649",
      "threadId": "15bac9a5ba0b826b",
      "labelIds": [
       "IMPORTANT",
       "Label_41",
       "CATEGORY_PERSONAL",
       "TRASH",
       "Label_12"
      ]
     },
     "labelIds": [
      "TRASH"
     ]
    },
    {
     "message": {
      "id": "15c62fa47e0c5434",
      "threadId": "15bac9a5ba0b826b",
      "labelIds": [
       "IMPORTANT",
       "CATEGORY_PERSONAL",
       "TRASH",
       "SENT"
      ]
     },
     "labelIds": [
      "TRASH"
     ]
    },
    {
     "message": {
      "id": "15c65baf1cd5b23d",
      "threadId": "15bac9a5ba0b826b",
      "labelIds": [
       "CATEGORY_PERSONAL",
       "TRASH",
       "Label_12",
       "INBOX"
      ]
     },
     "labelIds": [
      "TRASH"
     ]
    }
   ]
  },

from lieer.

julian-klode avatar julian-klode commented on August 28, 2024

Ah no, there was an earlier failure:

Jun 02 00:23:09 jak-x230 gmi[12218]: remote historyId: 12103548
Jun 02 00:23:09 jak-x230 gmi[12218]: pull: partial synchronization.. (hid: 12103095)

I also just noticed that the trash label adding revision 12103168 is not the same as the one from the gmi output: 12103618.

from lieer.

julian-klode avatar julian-klode commented on August 28, 2024

So the changes to that message on the remote side were:

12103168 +TRASH
12103211 -TRASH
12103807 -Label_41

I guess the culprit might be the +TRASH -TRASH pair in the same pull?

from lieer.

gauteh avatar gauteh commented on August 28, 2024

from lieer.

julian-klode avatar julian-klode commented on August 28, 2024

I believe inside the if 'labelsRemoved' in h: case of Gmailiieer.partial_pull(), it checks # in case a not_sync tag has been added and removes stuff from added lists, and (re-)adds to the deleted list. But the not_sync tag has been removed there, not added, so it's the wrong way around AFAICT.

from lieer.

gauteh avatar gauteh commented on August 28, 2024

from lieer.

julian-klode avatar julian-klode commented on August 28, 2024

I had that issue again (with an email I archived remotely IIRC), and it started working again after I trashed and untrashed the message in question in the gmail web UI.

from lieer.

gauteh avatar gauteh commented on August 28, 2024

I think this should no longer be an issue since TRASH and SPAM messages are synced.

from lieer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.