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
|
|
Doesn't seem to be working for me either. :(
|
|
|
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). |
|
|
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! |
|
|
@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? |
|
|
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. |
|
|
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 * |
|
|
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. |
|
|
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:
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. |
|
|
Great script. I added the include |
|
|
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. |
|
|
Love it! An hour after I installed it it popped up when I forgot the attachment - I do this all the time. |
|
|
There appears to be an Italian translation at http://www.skyone.it/skyblogone/?p=551 (I think, I don't actually speak Italian...) |
|
|
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 |
|
|
What is the point of this? How can you forget to attach something? |
|
|
I've almost completely rewritten the script so it should handle things it didn't before (famous last words...) |
|
|
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 |
|
|
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 |
|
|
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.) |
|
|
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. |
|
|
Oh Sorry, I forget to add to contact me,please contact at Hlaingbwa@mail2air.com |
|
|
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. |
|
|
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 |
|
|
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. |
|
|
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! |
|
|
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.
