-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workaround #48 #49
Workaround #48 #49
Conversation
This adds a notmuch "unknown" tag whenever a label id which cannot be found in the list of available label ids is retrieved from a message. Notice the "unknown" tag is never synchronized.
Thanks; good that you figured out a way to get around this. I don't think I want to merge this right away since there must be some other underlying error. Could you try to put in the offending label in https://developers.google.com/gmail/api/v1/reference/users/labels/get ? Maybe we have to manually fetch the label if it didn't get fetched the first time. |
If we can confirm that this is indeed a non-existant label, maybe it would be better to just not add anything and ignore it. It would possibly delete the label on the GMail side in the future so I think we should have a switch which allows this. It is likely to only be an issue on initial sync anyway. Then we can just advice the user to enable this switch if he/she wants. |
Actually, the label is not there at all, neither in list, nor if I get it by id:
other labels are actually there. |
And if I look into the message itself, the label is actually there:
|
Giulio Eulisse writes on november 17, 2017 0:18:
And if I look into the message itself, the label is actually there:
```
"labelIds": [
"Label_3",
"CATEGORY_PERSONAL"
],
```
Hm, weird! This looks like a GMail bug. Do you want to report the issue
there: https://issuetracker.google.com/ ?
Not much hope in getting an answer, I already have one pending:
https://issuetracker.google.com/issues/62686910
|
I will try. I am also trying to see if another route works better. |
Check out the approach in #51, does that work for you? |
Implemented through #51. |
thanks. That's what I needed. |
This adds a notmuch "unknown" tag whenever a label id which cannot be found
in the list of available label ids is retrieved from a message. Notice the
"unknown" tag is never synchronized.