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




Dec 23, 2007
Patrick Robe... User

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?


 
Nov 24, 2007
norcimo Script's author

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).


 
Nov 15, 2007
Patrick Kamper User
Here is your test case: start a new message in HTML mode (script works fine for plain text). Type your trigger word in the BODY and it is not recognized when you add no attchment. It is recognized in the subject field. I'm no programmer but I think something is wrong with --- var fixupReg=new RegExp(/
/gi); msg=msg.replace(fixupReg,"\n"); --- Could you fix it? Because it's a really fine script!
 
Sep 9, 2007
norcimo Script's author

@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?


 
Aug 28, 2007
Steve Skinner User

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.


 
Aug 12, 2007
norcimo Script's author

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 *


 
Aug 8, 2007
Nathan Sudds User

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.


 
Jul 1, 2007
Gina Trapani Scriptwright

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.


 
Mar 21, 2007
Henrik N Admin

Great script. I added the include http*://mail.google.tld/a/* locally to work with Google Apps.


 
Jan 23, 2007
Edward K User

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.


 
Sep 28, 2006
Jerry R User

Love it! An hour after I installed it it popped up when I forgot the attachment - I do this all the time.


 
Sep 19, 2006
norcimo Script's author

There appears to be an Italian translation at http://www.skyone.it/skyblogone/?p=551 (I think, I don't actually speak Italian...)


 
May 12, 2006
theaulddubliner Scriptwright

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


 
May 11, 2006
nicklman55 User

What is the point of this? How can you forget to attach something?


 
Mar 2, 2006
norcimo Script's author

I've almost completely rewritten the script so it should handle things it didn't before (famous last words...)


 
Feb 23, 2006
norcimo Script's author

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


 
Feb 23, 2006
norcimo Script's author

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


 
Feb 21, 2006
thomp 1 User

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.)


 
Feb 21, 2006
thomp 1 User

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.


 
Feb 10, 2006
Hlaing User

Oh Sorry, I forget to add to contact me,please contact at Hlaingbwa@mail2air.com


 
Feb 10, 2006
Hlaing User

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.


 
Jan 11, 2006
norcimo Script's author

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


 
Jan 10, 2006
Jonathan Bro... Scriptwright

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.


 
Jan 10, 2006
patxi1977 User

It only works in "plain text" messages. Right? Great idea still! I have two suggestions, bc I believe it can be an incredibly useful script: 1st, make it work in html emails. 2nd I write emails in English, Spanish, French & Catalan, so I would love to add more trigger words like "adjunt" for "adjunto" or "adjuntado" in Catalan or Spanish. How can I do that? Maybe you could add some commented lines on the script with instructions on how to port it. Still, great idea!


 
Jan 9, 2006
Jonathan Bro... Scriptwright

wow, awesome!!! thanks for fixing up this script. This is my first official contribution to an open source project :)


You could comment on this script if you were logged in.