Forum
shembel2008-01-16 16:18:40
Hello!
There are two situations:
1. ERROR: when first letter of e-mail addres is big, like this: Tester@test.ru, [[TO=firstname]] replaces dy lastname of contact from address book. [[TO=lastname]] replaced by firstname.

2. NORMAL WORK: when first letter of e-mail addres is small, like this: tester@test.ru, [[TO=firstname]] replaces dy firstname of contact from address book. [[TO=lastname]] replaced by lastname.

Sorry for my bad english... ;-)
shembel2008-01-16 16:19:55
The title whas:
Influence of first e-mail letter on [[TO=firstname]] and [[TO=lastname]]

shembel (frog) protvino.rtsoft.ru
WizKid2008-01-17 14:04:27
If there is capital letters in the mail address in the address book Quicktext can't find the contact in the address book. And because of that it tries to parse the mail address instead and it it probably because of that it don't get firstname and lastname right.
shembel2008-02-05 22:52:14
Yes, you are right.
I understand that it is an error? Is it true?
Would you fix it?

(My english is VERY BAD :-D Sorry :-) )
WizKid2008-02-05 23:29:45
It is because of a bug in Thunderbird. So you need to make sure that all email addresses in the address book is lowercase.
Bitumi2008-03-25 00:01:09
If you need the addresses in lowercase for your lookup, you could add to your code a "convert to lowercase" statement before you are doing the lookup.
WizKid2008-03-25 00:17:35
Not possible. Because if you have added the email address as uppercase in the addressbook. There is nothing I could do to before the lookup so it is found.
Bitumi2008-04-01 22:14:39
Hi,

I hope I 'm not annoying :-)

I found this example:
http://kb.mozillazine.org/UserChrome.js/Mail#Display_name_from_address_book

It also has a link to a bug (maybe your refer to).

This example uses the same function "getCardFromAttribute" like you.
But with a different parameter "LowercasePrimaryEmail" instead of your "PrimaryEmail". Could this help? And if you change the searched name from:
this.mData['TO'].data['email'][k]
to:
this.mData['TO'].data['email'][k].toLowerCase()

might that help ?

Bitumi2008-04-01 22:19:32
Hi,

I hope I 'm not annoying :-)

I found this example:
http://kb.mozillazine.org/UserChrome.js/Mail#Display_name_from_address_book

It also has a link to a bug (maybe your refer to).

This example uses the same function "getCardFromAttribute" like you.
But with a different parameter "LowercasePrimaryEmail" instead of your "PrimaryEmail". Could this help? And if you change the searched name from:
this.mData['TO'].data['email'][k]
to:
this.mData['TO'].data['email'][k].toLowerCase()

might that help ?

Bitumi2008-04-01 22:20:34
sorry - second post by update page with emtpy "create post field"
WizKid2008-04-02 17:22:22
That sounds like it would work. Not sure why I haven't found it before.
Bitumi2008-04-04 01:19:36
I have tested the changes and it works.
docweathers2008-05-11 03:02:53
This is a very annoying bug. I sure hope you will provide an update that uses this fix.
1
Create post
You need to login before posting in the forum