Forum
Harald2012-08-30 12:08:21
If I have variables like [[TO=email]] in a template, the whole template doesn't insert. Just no reaction. Other templates without variables work normally.

Even the manual access to variables is impossible.

The problem started with the update to TB 15. Quicktext is 0.9.11.1; language is German.

Thanks for any help, Harald

P.S.: Thanks for a very helpful tool! Many eMails can be answered with nearly one single click! Unfortunately it's a little less helpful without variables ;-)
ky_fr34k2012-09-01 10:36:06
I have the same problem.
If the Mail adress in the To-Line looks like "My Name <myName@test.com>" everything works fine. If the adress in the To-Line looks like "myName@test.com" the whole snipping is missing, if the snippet contains a tag like [[TO=firstname]].
Problem started with upgrade to TB15
humbads2012-09-04 14:54:09
I have the same exact problem as ky_fr34k. I'm using TB15 with Quicktext Free version 0.9.11.3 English.
TJFOE2012-09-04 16:34:48
The same problem as Harald...
Harald2012-09-05 16:09:15
Hello TJFOE, have you got the German language too? Harald
HD.1232012-09-06 18:47:29
I have the same problem and yes - i have the German Version.
tical7772012-09-06 23:52:00
Same problem with 0.9.11.1 English. I don't think the language matters.
Harald2012-09-07 09:09:56
I just installed the new V0.9.11.3 and it also didn't work.

After some tests, I've got it: If I insert [[TO=lastname]] and the lastname is *not* available in the eMail field like

FirstName LastName <email@adress.com>

then the whole entry is not inserted. So it seems that a variable that doesn't find a valid content blocks the whole thing?!?

Maybe that helps the Quicktext developers.

Regards, Harald
Harald2012-09-07 09:21:18
No, it's different again: If the recipient's eMail address doesn't have at least the form

Name <email@adress.com>

then nothing works.

Regards Harald
poger672012-09-07 18:49:47
I also just installed the new .13 version (english if it matters) and the [[TO=email]] is still broken in TB 15. I tried a few other alternatives to "email" that I found in the Mozilla developer docs thinking maybe they changed the name of the var that QuickText was reading but no luck so far.
Martin1232012-09-12 10:20:49
I looked into the code of quicktext_0.9.11.3.xpi. It seems that the problem that Harald describes (If the recipient's eMail address doesn't have at least the form Name <email@adress.com> then nothing works.) comes from a change in the function

parser.parseHeadersWithArray(this.mWindow.gMsgCompose.compFields.to, emailAddresses, names, fullAddresses);

In cases there are no "names", before TB15 empty strings were returned. Now, null values are returned. Therefore you get the error "name is null" which jonjon reports in the forum Bug Reports.

If you make the following changes, it works again:

content/wzQuicktextVar.js Line 602: if (name != "") --> if (name != null)
content/wzQuicktextVar.js Line 646: if (name != "") --> if (name != null)

The other error that kiravi reports in Bug Reports concerning the use of [[CURSOR]] seems to come from a change in the function Editor.deleteSelection(0). I don't now why or how this function changed, but if you use Editor.selection.deleteFromDocument() instead it works again:

chromecontentquicktext.js Line 442: aEditor.deleteSelection(0); --> aEditor.selection.deleteFromDocument();

With these changes at least my templates work again. It would be nice if the Quicktext developers could check this an make the changes if.

best regards

Martin
poger672012-09-12 15:16:20
Here's a step by step to Martin's instructions above. Download or find your .xpi file of the extension. Rename .xpi to .zip. Open and extract with WinRAR or other program that can open .zip files. Use your favorite text editor (notepad - not wordpad or ms word) make the 2 changes above that Martin noted. Save the .js file, re-zip the package, rename from .zip to .xpi and reinstall to Thunderbird and restart.
Samuel Plentz2012-09-13 23:00:26
Thank you very much Martin123! Your work is appreciated and it just works great.

It should be slightly better (backward compatibility / further API changes) to replace the code in wzQuicktextVar.js by:

if (name != "" && name != null)
Martin1232012-09-13 23:29:04
Samuel, you are right. I forgot the people using older TB versions. Thanks.
Deef2012-09-19 21:04:21
It's working, made the changes. But when i do this in the proversion:

------------------------------------------------
Hello [[TO=firstname]],

[[URL=http://www.mywebserver.com/content-file.txt]]
------------------------------------------------

It's outputing:


------------------------------------------------
Hello John Doe,

[[URL=http://www.mywebserver.com/content-file.txt]]
------------------------------------------------

The url is not imported anymore :((

Can someone help me with this ?

Cheers & thanx in advance,

deef
Deef2012-09-19 21:14:55
Btw you can find my changed file here:

http://www.siteguru.be/tempie/quicktext_0.9.11.3b.xpi.zip

simply remove the .zip after downloading
Chuck2012-09-20 03:38:48
Thanks, this solution fixed my problems with Pro.
Harald2012-09-20 17:18:41
Hello Martin123, hello Deef,

thanks for your version. I'm still testing but up to now it seems to work fine!

Best wishes, Harald
vexillia2012-09-26 11:48:37
As a QuickTextPro user I'd also like to confirm that the two changes work.
Of course the line numbers differ so a quick search & replace works is required. Thanks for rescuing this important extension for me.
okusi2012-10-04 03:53:55
it works, but, it's not pro :( .... you can't autoinsert attachments.

i wish this thing could be open-sourced ... author has clearly disappeared.
1 2
Create post
You need to login before posting in the forum