My “GMail Multiple From Address Extensions” Greasemonkey Script Goes Over 1,000 Downloads
At the request of another mostly anonymous Internet user I spent some time and knocked out a simple little addon for GMail that I oh-so-creatively named “GMail Multiple From Address Extensions“. While the title may not be catchy, “wmblewett”‘s idea certainly seems to be. In the first two days the script was widely available it has made a small splash and garnered over 1,000 downloads.
The script itself is very simple. For users who have multiple email accounts set up in their GMail account, when you go to send a message it pops up a warning telling you which address you’re sending from and gives you the option of canceling or continuing. You can visit the script’s homepage at UserScripts.org to install it or to see any potential future enhancements.
As these types of projects generally do, this one wound up being a really good learning experience for me, as chronicled in this earlier post. So, thanks “wmblewett”. I hope you enjoy the script as much as I enjoyed the experience writing it.
Now, back to work on those extended features that have been requested.
Hi,
Do you have any solution to make this script work with other languages of Gmail ?
I’m french and I have to switch to English (US) to make it works … :(
I tried to modify the source code but it didn’t change anything.
Thanks in advance.
@Adrien:
If you can give me the text that is on the “Send” button of the French version I sure can. Also, if you would translate the popup message I can work with that as well.
The text on the “Send” bouton is “Envoyer” (in bold, just like the English version).
And the popup message is : “Vous allez envoyer le message avec l’adresse [e-mail]. Continuer ?”
Thanks again :)
@Adrien:
Give it a try now. I just updated it with the new message.
@Everyone:
I’ve created an i18n object for GMail Greasemonkey scripts over at UserScripts.org. If you can help with translations I’d appreciate it.
http://userscripts.org/scripts/show/38660
Hi,
I’ve just tried it. Works like a charm but the popup is still in English. Anyway it doesn’t bother me.
Thanks a lot !
@Adrien:
One thing about updating GMail user scripts is that they won’t fully take effect until you log out of GMail and log back in. The most recently uploaded copy of the script, uploaded on the morning of 12/14, has your translation in it.
Hi,
First of all, THANK YOU for tackling this issue. I have longed for a solution to the wrong-sending-address problem for a long time, but without experience in JavaScript, I have not had the time to learn how to do this myself.
That said (and my inexperience noted), this script isn’t working consistently for me. I am experiencing two issues:
1) Pressing “Cancel” does not prevent the message from being sent. I know some people noted this several months ago and it seemed to have been fixed, but not for me. In any case, for anyone else dealing with this: an easy, if inelegant, workaround is to use Gmail’s Labs feature that delays sending for a few seconds, after this script has alerted you to the problem.
2) Inexplicably, sometimes the script catches sending and sometimes it doesn’t. I’ve tried reloading the page, reinstalling the script, sending from different addresses, and there seems to be no pattern to whether the script works or not. Sometimes I hit “Send” and I get the dialog asking me if I’m sure. Other times I hit “Send” and it sends as though I never installed anything.
Let me know if those make sense and if you have any ideas of how it could be fixed. And once more, thanks for working on this. It’s a dream come true. :)
Jason
@Jason:
I’d love to, but for some reason (event ordering or perhaps a race condition?) canceling the ‘send’ event simply doesn’t work as expected. The script fires on every call and it blocks the ‘send’ event, but for some reason it isn’t getting a reliable handle to the actual event anymore. If anyone has a hint I’d appreciate it.
I don’t know anything about the inner workings of the script, so I can’t help you there, but here’s an idea that might spark something for you:
Are you able to disable buttons? If so, perhaps you could add a checkbox labeled “Address correct?” next to the “From:” drop-down menu. Then, only when that box is checked would you re-enable the “Send” button.
That might be an essentially different script, but it’s just an idea for a way to avoid a race condition.