catendre / gas-gmail-add-parent-of-nested-label Goto Github PK
View Code? Open in Web Editor NEWA Google Apps Script for adding ancestors' labels to Gmail messages labelled with their descendants.
License: GNU General Public License v3.0
A Google Apps Script for adding ancestors' labels to Gmail messages labelled with their descendants.
License: GNU General Public License v3.0
Hello, I would like to use your script but excluding top level labels, is that possible?
Use case
Consider the following labels:
Places
Places/UK
Places/UK/London
Places/US
Places/US/NY
Places/US/LA
People
People/Family
People/Friends
People/Friends/Club
People/Friends/University
People/Work
People/Work/CompanyA
People/Work/CompanyB
Etc
Etc/Purchases
Etc/Rent
Etc/Rent/HouseA
Etc/Rent/HouseB
I would like to have the script add "UK" to mails labeled "London" and add "US" to mails tagged "NY" or "LA" but not add the "useless" label "Places" to them. And the same for "People" and "Etc" (especially for avoiding the visual clutter of having those labels shown in each row of the inbox view, for example).
I.e., I would like the script to apply all parent labels except for the top level one. Is that possible? I'd love to have your help if you could spare some minutes to help a stranger from the internet :)
Love the idea behind the project and what you're trying to fix.
On line 131 I get:
Error TypeError: Cannot read property 'id' of undefined addParentLabel @ Add Parent Labels.gs:131
It's a good project. Thank you.
These qualities are often uncommon for elegant solutions.
Now to get the gMail team to reorder their product backlog...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.