[HOWTO] Delete all unstarred emails from Inbox or Label in GMail

Its easy to delete all mails from a label/folder or inbox, but sometimes we’d like to save our starred mails and delete all the rest. The search box in gmail comes in handy in such situations. Its really a very powerful tool with various operators to make the search more efficient. The gmail search really gives it an edge over other free email applications.

I have subscribed to one of the yahoo groups and over time it has accumulated over 9000 mails. I quite frequently star the mails which I like. I wanted to delete the rest. To do that I just typed “label:techgroup -is:starred” without quotes in the search bar and clicked on Search. It displayed all the emails from that label which isn’t starred. Notice the hyphen, it means exclude.

Explanation

Its really simple and I doubt anyone would be needing this section.
label:techgroup means we want to display all the mails from label techgroup.
is:starred means we want to display all starred mails form the label.
But the – infront of is:starred negates what it does. It means we want to exclude starred items from the search results. So we get unstarred mails from label techgroup.

After making the search, click on the checkbox beside the ‘Archive’ button to select all the emails on that page. You’ll get another option just above the search result which would say:

All 20 conversations on this page are selected. Select all conversations that match this search

Click on ‘Select all conversations that match this search’. This will select all the matched results. Click on ‘Delete’ and empty the trash if you want.

Read more about the advanced search in gmail.

Cheers!

[HOWTO] Fix Twitter clients (or PHP scripts) which use basic authentication.

As you probably know, Twitter completely ditched basic authentication method on August 31st, 2010. It now supports only OAuth method of authentication which complicates the coding process multiple folds. Scripts which were previously 20 lines long now span several files.

While there are numerous advantage of Oauth like client doesn’t need to know your password, increased security etc, lots of twitter clients which used basic authentication stopped working right away after Aug 31st.

However, there had to be someone to the rescue. This time it’s http://www.supertweet.net/. They act like a proxy between twitter and your app, converting all basic authentication requests to oauth requests. So practically, twitter will be getting oath requests and your app would still be making basic authentication requests. This would help the twitter clients or php scripts to still use the same code and function just like before.

Documentation:
http://www.supertweet.net/about/documentation
The process is pretty simple and you should get through everything without a hitch.

You just have to change the API url from http://api.twitter.com/ from the application settings or PHP code to http://api.supertweet.net/.

If you still have problems, post it in comments.

Cheers!