Automate your inbox using Google Apps Script

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มิ.ย. 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/...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 51

  • @mxcollin95
    @mxcollin95 4 ปีที่แล้ว +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 3 ปีที่แล้ว +5

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

  • @dawn.henderson
    @dawn.henderson 3 ปีที่แล้ว

    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 4 ปีที่แล้ว +8

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

  • @mateusavilaisidoro8305
    @mateusavilaisidoro8305 4 ปีที่แล้ว

    Your content is amazing, welcome back.

  • @pikapikabits9763
    @pikapikabits9763 ปีที่แล้ว

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

  • @bradleygriffin3245
    @bradleygriffin3245 2 ปีที่แล้ว +1

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

  • @rishispeets9798
    @rishispeets9798 4 ปีที่แล้ว

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

  • @mathankumar7995
    @mathankumar7995 3 ปีที่แล้ว +2

    Wonderful script mate, thanks for sharing🔥

  • @ajaykanda4910
    @ajaykanda4910 ปีที่แล้ว

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

  • @oliverfarren8904
    @oliverfarren8904 3 ปีที่แล้ว

    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 5 หลายเดือนก่อน

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

  • @pieroramirezfigueroa1910
    @pieroramirezfigueroa1910 2 ปีที่แล้ว

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

  • @sandermol9369
    @sandermol9369 3 ปีที่แล้ว

    So glad you're back!

  • @MoutasemMohammad
    @MoutasemMohammad 4 ปีที่แล้ว

    Loved the sharing of more content

  • @fuzizoli
    @fuzizoli ปีที่แล้ว +2

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

  • @vfmc1826
    @vfmc1826 4 ปีที่แล้ว

    Great videos, thank you!

  • @beAdamant
    @beAdamant 3 ปีที่แล้ว

    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 3 ปีที่แล้ว

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

    • @oaik2283
      @oaik2283 3 ปีที่แล้ว

      かせし

  • @AunerUP
    @AunerUP 4 ปีที่แล้ว

    Trying right away!

  • @ashrafnazar7990
    @ashrafnazar7990 2 ปีที่แล้ว

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

  • @johnsonchaam
    @johnsonchaam 4 ปีที่แล้ว

    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.

  • @CSVspb
    @CSVspb 2 ปีที่แล้ว

    Thanks for your script

  • @ben.whetstone
    @ben.whetstone ปีที่แล้ว +1

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

  • @astropgn
    @astropgn 3 ปีที่แล้ว +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?

  • @monceeef
    @monceeef 4 ปีที่แล้ว +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 ?

  • @azheng9090
    @azheng9090 4 ปีที่แล้ว

    thank you!

  • @premierweddingsmediagroup2591
    @premierweddingsmediagroup2591 2 ปีที่แล้ว

    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?

  • @tvorourke9444
    @tvorourke9444 หลายเดือนก่อน

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

  • @passenger9000
    @passenger9000 4 ปีที่แล้ว

    More content please? :)

  • @mikolaj_ninja
    @mikolaj_ninja 2 ปีที่แล้ว

    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.

  • @dumidupramith3881
    @dumidupramith3881 2 ปีที่แล้ว

    thanks

  • @jacabobhappylife766
    @jacabobhappylife766 2 ปีที่แล้ว

    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?

  • @blaskovicz
    @blaskovicz 3 ปีที่แล้ว +1

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

  • @denverakins1396
    @denverakins1396 ปีที่แล้ว

    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

  • @lucabarbero2690
    @lucabarbero2690 ปีที่แล้ว

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

  • @winifredcook9730
    @winifredcook9730 4 หลายเดือนก่อน

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

  • @ederpaulo
    @ederpaulo 2 ปีที่แล้ว

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

  • @AbdulKareemAbdulRahman
    @AbdulKareemAbdulRahman ปีที่แล้ว

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

  • @pmioduszewski
    @pmioduszewski 3 ปีที่แล้ว

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

  • @hdoteverything
    @hdoteverything 2 หลายเดือนก่อน

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

  • @mrsfunny669
    @mrsfunny669 3 ปีที่แล้ว

    Hi can we sent email from spreadsheet with images attach?

    • @nsikumoh
      @nsikumoh 3 ปีที่แล้ว

      Yes.

  • @mykeyrandom3037
    @mykeyrandom3037 2 ปีที่แล้ว

    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 2 ปีที่แล้ว

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

  • @sponnet
    @sponnet 3 ปีที่แล้ว

    th-cam.com/video/OFuaoeq7gSw/w-d-xo.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 4 ปีที่แล้ว +3

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

    • @cloudargon
      @cloudargon 4 ปีที่แล้ว

      At least he looks exactly the same😜

    • @benjaminadams7133
      @benjaminadams7133 4 ปีที่แล้ว

      prob work life took over