TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Google Apps Script for Gmail to filter and sort email from Gitlab

63 pointsby mattst88over 3 years ago

7 comments

dataflowover 3 years ago
More interesting than GmailApp, DriveApp, etc. are the Gmail, Drive etc. classes. They're under the "advanced" services, and far more powerful (and faster). Highly recommend them for more serious uses of Google Apps Script.
评论 #29738650 未加载
agentdrtranover 3 years ago
Apps Script is amazing and a sorely under-appreciated feature in Workspace.
评论 #29734611 未加载
评论 #29736338 未加载
评论 #29734781 未加载
rrdharanover 3 years ago
See also <a href="https:&#x2F;&#x2F;github.com&#x2F;ranmocy&#x2F;gmail-automata" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ranmocy&#x2F;gmail-automata</a> for a more generalized variant.
评论 #29738803 未加载
评论 #29740524 未加载
londons_exploreover 3 years ago
As far as I&#x27;m aware, there is no way to trigger an apps script script to run when an email arrives.<p>That leads to polling, which ends up with a lackluster user experience. I don&#x27;t want a random 30 second delay added to all my mail delivery.
评论 #29737367 未加载
navbakerover 3 years ago
I was placed on some sort of spam list immediately following a PayPal dispute with a seller and found this thread that helped me tame the spam bombing I’ve experienced ever since: <a href="https:&#x2F;&#x2F;webapps.stackexchange.com&#x2F;questions&#x2F;89119&#x2F;how-to-filter-messages-with-animated-emoji-in-the-subject-in-gmail" rel="nofollow">https:&#x2F;&#x2F;webapps.stackexchange.com&#x2F;questions&#x2F;89119&#x2F;how-to-fil...</a><p>The majority of the spam came in with emojis in the from or subject line, so this was immediately helpful for that, then I just add a rule whenever I notice certain phrases popping up more often.<p>I’d be delighted if someone can tell me I’m wrong, but it seems like Gmail filters don’t have built in options for stuff like emojis or regular expressions. Very disappointing that I have to brute force script my own filters.
评论 #29738191 未加载
gbrindisiover 3 years ago
I&#x27;ve used <a href="https:&#x2F;&#x2F;github.com&#x2F;mbrt&#x2F;gmailctl&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mbrt&#x2F;gmailctl&#x2F;</a> to tame my inbox with some degrees of success, but gmail filters are just so flaky.<p>Next step in my things-to-try list is to just download the inbox via imap and sort it out locally.
评论 #29735543 未加载
评论 #29735876 未加载
anshumankmrover 3 years ago
Very cool. I have been using AppScript at my work as well to sync data from a sheet to Firebase and it works quite well.