Script Summary: Gmail's "Send mail as" feature is great, but for one thing: the From address field is unsorted, making life painful when you have more than a few accounts. This script sorts the list of options in the From field alphabetically, for pure send-as pleasure.
Description
Gmail gives users the ability to send email using other email addresses they own. When doing this, their other email address will be listed as the sender instead of their Gmail address. This allows users to manage multiple email accounts from within Gmail. You can find instructions on how to set this up on Google's website.
The only catch is that if you have more than a few such email addresses, searching through the list of email addresses in the From field becomes painful, because the list is unsorted. This is especially painful when you have a catchall email account set up, and need to be able to reply on 35+ email addresses as I do.
This script simply sorts the list of email addresses in the From address field, relieving all the pain in an instant. It even works on Google Apps Email, for those using custom domains.
Installation Instructions
Firefox:
- Install the Greasemonkey add-on.
- Restart Firefox.
- Install this script via the Install button above.
- Manage your scripts via the Tools --> Greasemonkey --> Manage User Scripts... menu.
Chrome (No automatic updates):
- Install this script via the Install button above.
- Manage your scripts via the Window --> Extensions menu.
Opera (No automatic updates):
- Enable User Javascript by following this guide.
- Enable User Javascript on HTTPS in opera:config. (More information)
- Right-click on the Install button above and save this script to your chosen User Javascript folder.
- When next visiting Gmail, click Yes on the security prompt.
Feedback
I'd like to hear what you think about this script! Please contact me with any bugs, feedback or suggestions you may have. :)
-- Ashley
Version History
- Version 1.6 - 19 February, 2012
+ Fixed Chrome support. - Version 1.5 - 19 February, 2012
+ Fixed script scope for those not using Google Multiple Sign-in.
+ Added support for keyboard shortcut users.
+ Rewrote hook-in code to be as fast and efficient as possible. - Version 1.4 - 16 February, 2012
+ Repaired problem with sorting not being applied.
+ Added several speed enhancements. - Version 1.3 - 10 September, 2011
+ Redid the update notification system.
+ Renamed from "Gmail From/Send-Mail-As Sorter" to be more readable. - Version 1.2 - 9 September, 2011
+ Fixed a critical bug introduced in 1.1. Doh. - Version 1.1 - 9 September, 2011
+ Restructured the code to be more robust.
+ Tweaked the applied domains to be as specific as possible.
+ Added support for update notifications. - Version 1.0 - 25 March, 2011
+ Initial release.



