Comments (17)
Just for the record: Labels have internal id like that, they are not necessarily the names you gave them. For example, I have a label ubuntu-devel, but it's internal id is Label_44. Here it's mapping the internal ids to the names AFAICT.
from lieer.
from lieer.
gmi pull -t
shows labels and the third one in the output order is FromMailingList
, however I see no mapping output. Restarting the pull did not help. I do have somewhat strange labels though, like R&D
or `Something/something - (else)" could that be a problem?
from lieer.
from lieer.
I don't get any Label_3
:
+ gmi pull -t
+ grep Label_3
CWG4 Label_3939416323915462435
OpenSource Mailing lists Label_3194149110520196790
CMS Label_394156353969411168
Nix Label_3817195439730139360
Simulation & Generators Label_3946793891174421901
Infrastructure Label_3990267443586131481
WP3 - Tools Label_3023913578609897416
Daily Build Reports Label_330431641839543684
Banking Label_3461285147915119731
from lieer.
from lieer.
Ciao,
I just did and AFAICT, there is no pagination entry in the output (nor `Label_3). I will try reducing the number of labels. How do you get Label_3 in the first place? Is it attached to the message?
from lieer.
from lieer.
Did you identify which message has the Label_3? You could maybe add a print google-id so that you get some more output before it crashes (in Local.update_tags). Then you could try and fetch that message from the Gmail API explorer and see if the label is actually there as well. Can you test out labels.get() on Label_3 in the API explorer? Maybe it shows up if you try to fetch it directly..
from lieer.
For the moment I just patched it to add an unknown
label in case the Remote label is not found. That should allow me to identify the broken messages as well. I want to get to the end and see how much I like notmuch before I spend time debugging this.
from lieer.
from lieer.
Thanks for mentioning the ignored label stuff. I was actually wondering about that. I will add it. If I understand what's going on I'll let you know right away.
from lieer.
from lieer.
Thank you. If this works as I expect it to work and scales to my mailbox size, you made an happy man.. ;-)
from lieer.
With #49, I am able to go past my issue and I've a full sync done. Notice that some of the messages which are reported to have "Label_3" do not actually have any label associated. I wonder if this is simply a problem with some old labelling schema on google side..
from lieer.
Weird; if you put in the messages in https://developers.google.com/gmail/api/v1/reference/users/messages/get do they show Label_3?
from lieer.
Fixed in #51:
If you encounter this error run:
$ gmi set --drop-non-existing-labels
and re-try the pull.
This will drop any labels that cannot be found remotely. If the message tags are modified locally (through notmuch) the label will be removed on the remote side on the next push/sync.
from lieer.
Related Issues (20)
- Unable to complete or limited initial pull HOT 1
- Error when running pip install: fatal error: notmuch.h: No such file or directory
- gmi auth on headless remote server HOT 3
- How do I only pull messages matching a label? HOT 2
- Release v1.4 HOT 3
- Not custom indexing headers in Notmuch HOT 2
- Not pushing tags? HOT 1
- gmi push takes hours every time HOT 6
- verbose logging option to show same info as dry-run HOT 2
- rename tags with users.labels.update? HOT 1
- code style guidelines HOT 4
- never delete files, but move to a recycling bin of sorts HOT 1
- 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
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.