Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Product Lifecycle
  3. Free Tools
  4. Excellent source on scripting Gmail, with two useful script examples, detailed instructions on how to create, and use, them

Excellent source on scripting Gmail, with two useful script examples, detailed instructions on how to create, and use, them

Scheduled Pinned Locked Moved Free Tools
csharpjavajavascriptcomdebugging
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BillWoodruff
    wrote on last edited by
    #1

    This site appears to be a blog (?) by "johneday." I debated whether this should be posted here, or on "Tips/Tricks," but decided this was perhaps the best place. The article title is: "Create time-based Gmail filters with Google Apps Script"[^]. I found this an excellent introduction to scripting GMail, something I had never really looked into before. I think anyone who knows JavaScript, Java, or C#, will immediately understand the script code (it's probably just JavaScript hooking onto some Google API's within the special facility GMail provides for creating scripts ?) The two examples given: 1. "cleanUp" shows you how to enumerate all your GMail InBox messages which are tagged with a certain Label, or Labels, and move them to the Trash: if they are older than a number of days you specify. 2. "archiveInBox" shows you how to enumerate all your GMail InBox messages which do not match a given Label, or Labels, and move them to the Archive folder. In reponse to reader questions about this article, imho, "johneday" gives patient, and useful feedback, and futher suggestions, as well as helping readers debug syntax errors they made in their own scripts. I find the article, and these two scripts, useful, and I hope you do, too. yrs, Bill

    This thing we tell of can never be found by seeking, yet only seekers find it. Abu Yazid Al-Bistami (Persian, Sufi, 804-872)

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups