Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

So basically, I have many different labels in my Gmail account. I've set up my filters to attach labels such as "newsletters" and "social" to these emails as they come in.

Now, once these emails are read, I want them to be archived and simple "gone" from the inbox. Now, this is possible by me using the following filter, and selecting all mail, then clicking archive, but i'm wondering if there is an easier way to go about this...

((label:social-facebook OR label:social-twitter OR label:G+ OR label:social-spotify OR label:newsletters OR label:scanned OR label:shopping-ebay OR label:shopping-paypal) AND is:read AND label:inbox)

Thanks in advanced :D

share|improve this question
2  
why don't you archive them just after you've read them? –  JMax Aug 9 '12 at 8:00

3 Answers 3

up vote 2 down vote accepted

Gmail's filters are processed immediately after the e-mail arrives in your inbox. You can not use a filter for processing an email inbox yet. What you are looking for is possible with a google script:

function processInbox() {
  var threads = GmailApp.getInboxThreads();
  for (var i = 0; i < threads.length; i++) {
    var th = threads[i];
    if (!th.isUnread() && !th.isImportant() && !th.hasStarredMessages()) {
      th.moveToArchive()
    }
    Utilities.sleep(1000);
  }
}

Drive > new script > past the code > run and autorize > create a trigger for 4/6 hours..

share|improve this answer
    
this is exactly what i was looking for! –  nickw444 Aug 13 '12 at 9:35

Did you try Organizer by OtherInbox? It does that kind of classification and gets those emails out of your way. If it doesn't give the level of customization you need (and you have some basic ability to code) you can script those using Context.IO.

(disclaimer: I'm founder of Context.IO)

share|improve this answer

I would use the procedure you proposed, but in steps

  1. In the search box at the top of Gmail enter the following string

    label:social-twitter label:inbox is:read

  2. click select all

  3. Click on the link to expand to other messages on subsequent pages of you have a lot of messages
  4. Click Archive
  5. Go back to step one for the next label.

The advantage is that if you have dozens of labels you don't have to make a massive query statement. And that if you have do have dozens of labels you want to address you can take them a couple at a session.

Note the definition of archive in Gmail is simply "gone" from the inbox.

As you go forward use the archive button when you no longer need to see the message/conversation on the front page. The fact that you are using filters and labels is great, now take it to the next step by using the Archive button.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.