Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
Gmail attachment reminder v3.0b
Reminds you to attach a file to your email if it appears that you have not.
This reminds you to attach a file to your Gmail if it appears that you have not, based on whether you have the word attach(ed, ment, etc) in the body. Based on "Jonathan Brodsky's script":http://userscripts.org/scripts/show/2000
Version 2.0:
A more or less complete rewrite. Should now work with replies/forwarding (attempts to avoid false positives from quoted text). Plain and rich formatted text. Bug reports welcomed.
Now v2.1: Small update to fix detection of an attachment actually being present
Italian translation: See "this version":http://www.skyone.it/skyblogone/?p=551 (thanks to Cristiano Tagliabue for the translation)
Ricorda Allegati per Gmail http://www.skyone.it/skyblogone/?p=551
Se trova la parola "alleg" nella mail ma non trova alcun allegato, chiede se
si debba inserirne uno (naturalmente si avranno dei "falsi positivi" per
parole come allegria, allegorico, ecc.). Originariamente basato su questo
script (http://userscripts.org/scripts/show/2000), รจ stato poi aggiornato
per includere il bottone di invio, controllare anche il testo formattato
("rich text"), il formato "solo testo", le risposte e le mail inoltrate.
Controllare i commenti per sapere come aggiungere altre parola da
controllare (si tratta di una semplice "regular expression").
V2.3
Added checking for the subject line (only when it's visible, so not when you're just replying etc) Thanks to Simon Wheatley for the intitial patch
v2.4
Thanks seemed to get broken thanks to the new bar across the top of Google services (with links to Mail, Calendar, etc). Fixed that. Also tweaked the regexp to allow hyphenation after the word stem.
v2.4.1 Incorporates Gina's additions (thanks!). Note you can use multiple root words, simply separate them with a | (pipe) e.g. attach|alleg
v3.0 Beta Updated for the new Gmail interface. Should also still work on the old version of Gmail. Still in beta, but seems to work for me
You could comment on this script if you were logged in.

login to vote
Would it be possible to adapt this script to be used for a Reply to All Reminder --- I find myself often "Replying" and then wishing I had clicked Reply to All instead --- it seems to me there might be a way to use this same theory for a reminder to ask if I'd like to "reply to all" when that tab is visible.
If anyone has ideas on this, I would appreciate it.
login to vote
It'd be great if the trigger wasn't a string variable, but a string array. That way one could change wordTrigger to include not just "attach", but also "bijlage" (Dutch), "ci-joint" & "annexe" (French), etc. Useful for those of us who send emails in multiple languages, so we don't have to install another version of this script for each language (and even multiple versions per language, for those languages which have multiple words for it, like French).
Would be nice if there were more comments in the code, like in the last part. Would help *a lot* to quickly get in the code. I'm looking at adapting it myself to change it to use an array, but the lack of comments in the first part makes it a bit more confusing. I'm sure it's all clear to you as it's a relatively small piece of code, so it'd be much appreciated if you could have a look at adding some more comments (not really about the code, which isn't very hard, but about the domain - e.g. "what's the importance of the send button's text?" and stuff like that).
Other than that, great script, thanks for making it!
login to vote
Doesn't seem to be working for me either. :(
Can't get it to prompt at all.
Do I need to edit the script in any way, or should all the triggers be there already?
login to vote
Sorry for the delay in response. A new job and associated move have rather curtailed my normal activities. I'll be looking into this as soon as I can, as well as making the script compatable with the new GMail interface).
login to vote
/gi); msg=msg.replace(fixupReg,"\n"); --- Could you fix it? Because it's a really fine script!
login to vote
@Steve, I've just checked again (normal GMail account, not apps for my domain) and I can't reproduce that behaviour. Everything seems to work fine. I don't suppose anyone has a simple test case where it fails?
login to vote
I'm with the last two posts. This doesn't seem to work. I have Google Apps for my domain, but it seems like that's been accounted for. I've successfully been able to send emails without attachments even with attach, attachment, and attached in the email body.
login to vote
Nathan, the script won't catch just the word attach but will catch attachment, attached, etc. Off the top of my head (it's late here!) to catch just attach to edit line 94 and replace the last + with a *
login to vote
Is this still working for people currently? I have just installed this and seem to be able to send a message without the attachment even with attach in the body of the message.
login to vote
Hi there - I love this script, so much so that I've posted it on Lifehacker and included it in a Firefox extension I put together called Better Gmail (with full credit and attribution to you of course.)
Several of my readers asked for an easy way to modify the trigger word for other languages, so I've done a slight modification which adds this option to the GM user script command menu.
My mod is here:
http://ginatrapani.org/workshop/greasemonkey/at...
It's still not perfect, since you can only set one root word for your regex. It would be nice to set several different words. Something to think about...
Anyway, you're free to incorporate my mods into your next rev, if you'd like.
Thanks again for a really useful script.
login to vote
Great script. I added the include
http*://mail.google.tld/a/*locally to work with Google Apps.login to vote
This is a great script, so I'm wondering if it could be modified to check for other things, such as whether you've set the "from:" field correctly when sending email to certain domains. I wouldn't know where to start.
login to vote
Love it! An hour after I installed it it popped up when I forgot the attachment - I do this all the time.
login to vote
There appears to be an Italian translation at http://www.skyone.it/skyblogone/?p=551 (I think, I don't actually speak Italian...)
login to vote
quite easily nicklman55 - you're typing an email and you've said you'll send an attachment as well - you get distracted and click send before choosing your attachment - i don't know how many times i've done it or been done to me
login to vote
What is the point of this? How can you forget to attach something?
login to vote
I've almost completely rewritten the script so it should handle things it didn't before (famous last words...)
login to vote
Forgot to say if you (or anyone else) wants any pointers on modifying the script drop me a line (webmaster at norcimo dot com) and I'll do my best to help
login to vote
thomp: No idea what's going on there. I have experienced (other) greasemonkey scripts which have abruptly stopped working, but usually an uninstall/reinstall sorts everything out. I've never gone so far as to reinstall Firefox though! Glad it's all working now anyways
login to vote
follow-up: 8 hours later and the script is working again, with no changes to the script or Firefox in the meantime. Maybe this sort of behavior is well-known by others, but it is a mystery to me. (I'm happy to have the attachment reminder back--many attachments sent today.)
login to vote
newbie Q: I added this script and was very happy with it. I edited the section that has the default check for "attach", and the prompt message "It appears that..", mainly just to 'see' the changes--since I thought the script was so cool. Now it doesn't work. Those were the only two edits I ever did. Did them in Wordpad. Never changed the default script name. I screwed around with with uninstalling and reinstalling the script an embarrassing number of times and can't get it going again. The installed script is identical to the download available here. Other scripts (e.g. conversation bubble), other extensions still fine. Removed and reinstalled Firefox. Any ideas? I really miss the cool attachment reminder.
login to vote
Oh Sorry, I forget to add to contact me,please contact at Hlaingbwa@mail2air.com
login to vote
Hi! It is fantastics as it is a real site for any addition on internet with FOC. I don't know what will be saying online.
login to vote
OK, updated the script with my best attempt at getting it to work with HTML email (I always use plain text myself). The match is actually just a regular expression so if you understand such things you can write your own to match whatever you want. match('attach|adjunt') should do more or less what you want Patxi
login to vote
porting it to other languages is pretty easy, you just need to change the line that reads
if(messagebody.match('attach')){
to
if(messagebody.match('attach') || messagebody.match('adjunt')){
making it work in html emails is not impossible, but I don't know if I can do it.