Skip to content

Instantly share code, notes, and snippets.

View dnanton-cr's full-sized avatar
🏠
Working from home

Daniel Nanton dnanton-cr

🏠
Working from home
  • Nanton Consulting
  • San Jose, Costa Rica
  • X @dnanton
View GitHub Profile
@moayadhani
moayadhani / ExtractSpecificTextFromEmail.txt
Last active September 14, 2025 09:11
Extract Email Text from Google Sheet using App Script
//Sample email that is received and whose details are extracted:
/*
*Someone* just submitted your form named Online Course Booking from your
website
https://www.abcd.com/
Message Details
Full Name: Mohamed Ali
Email Address: [email protected]
Phone Number: 009725991122334
@benbjurstrom
benbjurstrom / Code.gs
Last active November 17, 2025 14:03
PurgeOldEmails
/*
|--------------------------------------------------------------------------
| PurgeOldEmails
|--------------------------------------------------------------------------
| https://gist.github.com/benbjurstrom/00cdfdb24e39c59c124e812d5effa39a
|
*/
// Purge messages automatically after how many days?
var DELETE_AFTER_DAYS = 7
@moayadhani
moayadhani / GetGmailEmails.gs
Last active September 14, 2025 09:08
Get Gmail Emails By Assigned Label
var ui = SpreadsheetApp.getUi();
function onOpen(e){
ui.createMenu("Gmail Manager").addItem("Get Emails by Label", "getGmailEmails").addToUi();
}
function getGmailEmails(){
var input = ui.prompt('Label Name', 'Enter the label name that is assigned to your emails:', Browser.Buttons.OK_CANCEL);