Comments (13)
I was just doing the usual sync thing.
from lieer.
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.
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.
from lieer.
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.
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.
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.
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.
from lieer.
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.
from lieer.
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.
I think this should no longer be an issue since TRASH and SPAM messages are synced.
from lieer.
Related Issues (20)
- Access blocked: Lieerโs request is invalid HOT 6
- Unable to run `gmi init` - 'Namespace' object has no attribute 'verbose' HOT 1
- Google API polling frequency recommendation HOT 1
- Is there a way to start the first sync using the emails downloaded with google takeout? HOT 3
- Re-authentication in 1.5, and it needs a GUI HOT 9
- 1.5 fails to authenticate (Debian testing) HOT 9
- gmi send error on dry-run HOT 1
- Recent releases not published on PyPI HOT 2
- module 'notmuch2' has no attribute 'Database' HOT 2
- Is it possible to use a regex in --ignore-tags-local ? HOT 1
- FYI email read in gmail becomes unread in notmuch and gmail upon sync HOT 2
- gmi fails to init if notmuch is set up with all defaults HOT 1
- OSX Instructions HOT 10
- gmi pull only pulls one mail.
- State changes not pushed back to gmail: when relative to current dir `.` HOT 4
- import mbox file from google takeout of gmail HOT 1
- Cannot import mail with inbox tag unaltered HOT 5
- Please document what do do if .state.gmailieer.json gets zeroed or corrupted HOT 3
- Mails with large attachments sent but with error HOT 4
- Can't use manually crafted credentials file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lieer.