Automate your inbox using Google Apps Script

Sdílet
Vložit
  • čas přidán 21. 07. 2024
  • In this video I show you how I configured my Gmail account to automatically delete unarchived mail after 7 days that hasn't been starred or marked as important. I set this up for free using Google's own Apps Script service which allows you to write scripts that interact with Gmail using basic JavaScript.
    A detailed blog post with more information can be found at benbjurstrom.com/purge-email
    The source code used in the video can be found at gist.github.com/benbjurstrom/...
  • Věda a technologie

Komentáře • 52

  • @mxcollin95
    @mxcollin95 Před 4 lety +3

    I had this idea 5 years ago but had no idea how to do this. So glad you made this video!!! Spot on!

  • @Noah-ee9wq
    @Noah-ee9wq Před 4 lety +5

    Incredibly helpful. I'm sharing this among many of my professional circles. Keep up the content!!

  • @dawn.henderson
    @dawn.henderson Před 4 lety

    Dude! This was so helpful! I just recently discovered Google Apps Script and am now able to recover many hours a week I used to spend managing Gmail. Thank you so much!

  • @GroovePhiloIt
    @GroovePhiloIt Před 4 lety +8

    right on time, I just decided to start managing my email more effectively! thank you sir!

  • @mateusavilaisidoro8305

    Your content is amazing, welcome back.

  • @bradleygriffin3245
    @bradleygriffin3245 Před 2 lety +1

    This is awesome! I totally needed something like this 10 years ago. Thank you!

  • @sandermol9369
    @sandermol9369 Před 4 lety

    So glad you're back!

  • @pikapikabits9763
    @pikapikabits9763 Před rokem

    How does this only have 700 likes? This is gold right here.

  • @rishispeets9798
    @rishispeets9798 Před 4 lety

    Wonderful. Thanks for the well written script and high quality video explanation!

  • @ajaykanda4910
    @ajaykanda4910 Před 2 lety

    I've been trying to find this for so long! Thank you

  • @cktorm
    @cktorm Před 23 dny

    Bro thanks so much! I've been trying to render an HTML file from a .gs code but wasn't being able to render the line breaks properly. I searched everywhere and finally landed on your video. A simple ! makes all the difference!

  • @mathankumar7995
    @mathankumar7995 Před 3 lety +2

    Wonderful script mate, thanks for sharing🔥

  • @oliverfarren8904
    @oliverfarren8904 Před 3 lety

    Before this video, I spent hours trying to figure out the step at 14:45 and got caught in a pit of authentication confusion. And all I had to do was click the advanced button. Thanks for the video!

    • @pepinismaster
      @pepinismaster Před 7 měsíci

      This must have changed because i have no such option anymore...is their a work around for this or how does it work?

  • @astropgn
    @astropgn Před 3 lety +1

    Why setup the trigger in the code when you can use the triggers menu and create triggers to call specific functions at specific time intervals?

  • @pieroramirezfigueroa1910

    I've learned a lot by watching ur videos. Your awesome.

  • @fuzizoli
    @fuzizoli Před rokem +2

    could you make an updated video about this ? It would be so so useful

  • @johnsonchaam
    @johnsonchaam Před 4 lety

    Can i specify a date so that when the purge function triggers, it will purge the mails received after that particular date?
    if yes, can you lemme know in function i will defining it?
    Thanks.

  • @monceeef
    @monceeef Před 4 lety +1

    Hello
    I want to work online, but I'm confused after encountering a lot of terms that I don't know such as:
    Name server, Web server, Serveur local, Domain name, Hosting, shared hosting, dedicated hosting, vps , HTML, PHP, Wordpress, Les fichiers htaccess, Fichier config.
    is there a course to learn these ?

  • @beAdamant
    @beAdamant Před 4 lety

    You have a great videos I really like your way explaining thing . Short and clear. But unfortunately not alot of videos you have

  • @federicolrobinson
    @federicolrobinson Před 4 lety

    He's back! what have you been doing for 5 years man!

  • @vfmc1826
    @vfmc1826 Před 4 lety

    Great videos, thank you!

  • @MoutasemMohammad
    @MoutasemMohammad Před 4 lety

    Loved the sharing of more content

  • @ben.whetstone
    @ben.whetstone Před 2 lety +1

    Works great on my Workspace account but it doesn't seem to be running on my personal Gmail, is there a difference?

  • @premierweddingsmediagroup2591

    Do you know if it's possible to write a script where you can upload a CSV file including emails you've SENT to, and then have the script filter that list and get a new CSV file of only the addresses that haven't replied?

  • @mikolaj_ninja
    @mikolaj_ninja Před 3 lety

    Hi, I have a problem with this code. When i filter by query from tutorial, then sometimes see a starred and important messages. I don't know why?
    In thread one message without of star is explaining but "important mark"? "important" mark is for all of message in thread.

  • @jacabobhappylife766
    @jacabobhappylife766 Před 2 lety

    After running "purge" execution, it works and it triggers "purgeMore" 2 minutes later which also works.... But then it stops, even though I still have loads more threads left. Why doesn't the "purgeMore" function keep repeating every 2 minutes until all the threads are deleted?

  • @AunerUP
    @AunerUP Před 4 lety

    Trying right away!

  • @pmioduszewski
    @pmioduszewski Před 3 lety

    How You hide text like titles of emails in this video?

  • @lucabarbero2690
    @lucabarbero2690 Před rokem

    Hi! You could help me develop an automation to check email from other accounts? Thank you very much

  • @denverakins1396
    @denverakins1396 Před rokem

    Hi! Do you have any type of updated method for this that could be used today? Preferable plug and play type code lol I am not super tech savy

  • @AbdulKareemAbdulRahman

    how do these app scripts script relate to 'enabling gmail api'? is this needed? thanks

  • @winifredcook9730
    @winifredcook9730 Před 6 měsíci

    Hi there. Can you teach how to automatically delete email in spam send by specific users? Thank you.

  • @ederpaulo
    @ederpaulo Před 2 lety

    Hi is it possible to run a script when an email is received ?

  • @tvorourke9444
    @tvorourke9444 Před 3 měsíci

    Hi Ben-I have followed your CZcams video - copy and pasted it from the git however, nothing seems to be working - do I need to set the time please

  • @CSVspb
    @CSVspb Před 2 lety

    Thanks for your script

  • @ashrafnazar7990
    @ashrafnazar7990 Před 2 lety

    you video is great!! its educational and funny at the same time.. "app script script what a terrible name" ha ha

  • @hdoteverything
    @hdoteverything Před 4 měsíci

    What if you need to iterate through more than 500 threads? Is there a way

  • @azheng9090
    @azheng9090 Před 4 lety

    thank you!

  • @blaskovicz
    @blaskovicz Před 3 lety +1

    That's perfect, but there's a limit of 100 calls to "MoveToTrash" method :(

  • @passenger9000
    @passenger9000 Před 4 lety

    More content please? :)

  • @mrsfunny669
    @mrsfunny669 Před 3 lety

    Hi can we sent email from spreadsheet with images attach?

  • @dumidupramith3881
    @dumidupramith3881 Před 2 lety

    thanks

  • @mykeyrandom3037
    @mykeyrandom3037 Před 2 lety

    Has anyone noticed that this script is only so helpful because "Google Magic" toggles a lot of emails to "Important" based on some algorithm? I ran purgemore against my entire inbox and I ended up with still 4,000 emails in my inbox thanks to "Google Magic" marking 4,000 emails, over time, as being "Important" based on whatever algorithm. I COULD change the script to also delete all emails flagged as "Important," but that would delete those emails that I explicitly marked as being "Important."

  • @ClumsyWoodsman
    @ClumsyWoodsman Před 3 lety

    I have 800,000 emails.... i need help

  • @sponnet
    @sponnet Před 3 lety

    czcams.com/video/OFuaoeq7gSw/video.html - does this still work ? I get an error "Sign in with Google temporarily disabled for this app
    This app has not yet been verified by Google in order to use Google Sign in." with no option to click "advanced" anywhere on this screen. Has google's policy changed since creating this video ?

  • @sathishshaj7815
    @sathishshaj7815 Před 4 lety +3

    What you've been doing for the last 4 years? 🤔