New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have lots of unread messages #201

Closed
Noitidart opened this Issue May 7, 2014 · 11 comments

Comments

Projects
None yet
5 participants
@Noitidart

Noitidart commented May 7, 2014

I leave a lot messages unread, so it's just 9999 on the labels for me.

gmailnotifier9999

Is there anyway after some time that it realizes i dont want to open those messages and it goes away?

@inbasic

This comment has been minimized.

Owner

inbasic commented May 8, 2014

Well, the easiest way is to mark all your old emails as read from Gmail interface. If you don't want to do this, then the only solution comes to my mind is to monitor a label instead of your inbox. Get more info about how to do this by reading http://add0n.com/gmail-notifier.html

@Noitidart

This comment has been minimized.

Noitidart commented May 8, 2014

Yeah man I would like to leave them unread. So in future if i need to then i can. Is it possible to make label relative? I don't understand the solution on the page you linked.

@inbasic

This comment has been minimized.

Owner

inbasic commented May 8, 2014

I think this feed works:

  1. Search "newer_than:2d" in Gmail search box.
  2. There is a small drop-down mark on very right side of the search box. Click on it.
  3. Hit "Create filter with this search" in the opened panel.
  4. Now configure "Apply the label" to send all email to a label called "recent"
  5. Now open the notifier setting. In the feeds section replace the existing feeds with https://mail.google.com/mail/u/0/feed/atom/recent
  6. Restart the browser.
@Noitidart

This comment has been minimized.

Noitidart commented May 8, 2014

Thank you man! I'll test that out tonight :)

@inbasic inbasic closed this May 14, 2014

@maximuszen

This comment has been minimized.

maximuszen commented Sep 24, 2014

This does not work!

@inbasic

This comment has been minimized.

Owner

inbasic commented Oct 26, 2014

I am working on a better solution.

@inbasic inbasic reopened this Oct 26, 2014

@Noitidart

This comment has been minimized.

Noitidart commented Oct 26, 2014

Thanks! Cuz i had to uninistall it based on last solution!

@ajunayed

This comment has been minimized.

ajunayed commented Apr 12, 2015

Is there any solution to this problem? Thanks

@Noitidart

This comment has been minimized.

Noitidart commented Apr 12, 2015

Not that I found :(

@inbasic

This comment has been minimized.

Owner

inbasic commented Apr 13, 2015

Actually it is possible through Gmail filters along with a Google App Script.

Gmail filter setup

  1. Search newer_than:2d in Gmail searchbox
  2. Now press the down arrow and click on Create filter from this search
  3. On the next screen, select Apply the label: and assign it to recent label (you need to make a new label with the exact same name as we use the label name later on)

So basically all new emails go to the label recent from now on. The only problem here is Gmail is not removing the label for old emails. We need to use a Google App script for removing the labels after custom time period.

Google App Script Setup

  1. Go to Google Docs
  2. Click on New > More > Google App Script
  3. Paste the following code in the editor
function recent () {
  var delayDays = 7; // Enter # of days
  var maxDate = new Date();
  maxDate.setDate(maxDate.getDate()-delayDays);

  var label = GmailApp.getUserLabelByName("recent");
  var threads = label.getThreads();
  for (var i = 0; i < threads.length; i++) {
    if (threads[i].getLastMessageDate() < maxDate) {
      threads[i].removeLabel(label);
      Utilities.sleep(1000);
    }

  }
}
  1. Press Save and assign a name for the script
  2. Now on the Run menu, press recent to make sure the function works fine.
  3. If it works, now you can set a tiger for the function. Go to Resources menu -> Current Project Triggers and setup a trigger. Here is mine,
    screen shot 2015-04-13 at 10 29 30

This script removes the label recent from threads older than 7 days.

Now setup your Gmail Notifier to notify you about your recent label rather than inbox.

Note: You can play with the Gmail filter more to adjust it based on your needs.

@SoSick88

This comment has been minimized.

SoSick88 commented Oct 20, 2015

Hey just want to say thanks.Was just wondering if you knew the safest way to keep passwords? I'm a little sceptic on having all passwords in one place! Anywas I'm off for the night so no rush, thnx again

@inbasic inbasic closed this Oct 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment