Thanks for provide Nokia Synchronization for Thunderbird. It's a powerful and most useful tool.
I'd like to suggest a modification to phone number comparisons between Thunderbird and the Nokia phone with respect to characters which may appear in the Thunderbird address book, but can be ignored for the comparison (similar to the way that white characters are ignored by the current NokSync 1.0.50 implementation). These characters include:
- dash '-'
- open and close parentheses '(' and ')'
For example, the Thunderbird address book phone number: +1 (234) 567-8910 should match the Nokia phone number: +12345678910 without the need to update one or the other.
This would bring NokSync in line with the address book synchronization between Microsoft Outlook and a Nokia phone.
Michael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Henrik didn't implement this in version 1.0.50. Because this requires just one minor change I can provide tested and working code.
In file ..\content\comparator.js replace
**/
function matchPhone(pNokia, pTb) {
// If they match, they match (-:
if (pTb==pNokia) return true;
// Thunderbird may have spaces in them...
var pTb2=pTb.replace(" ", "", "g"); // "g" for global so we get all spaces replaced
if (pTb2==pNokia) return true;
return false;
}
with
**/
function matchPhone(pNokia, pTb) {
// If they match, they match (-:
if (pTb==pNokia) return true;
// Thunderbird may have spaces in them...
var pTb2=pTb..replace(/[^0-9\*\+\pw]/g, ""); // strip all unwanted characters
if (pTb2==pNokia) return true;
return false;
}
The reg. expression is taken directly from ..\content\synchronizer.js ;-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
Im sure someone here can help me.
In TB the telephonenumber looks like this: +49 (0)1234 9876-54
+49 is the countrycode
(0) has to be used inside the country but not from outside the contry
1234 ist the number for the area
9876 is the number for my company
54 is my telephone
its only an example :-)
on my nokia i need the number in this format: +491234987654
what do i have to put in here:
var pTb2=pTb..replace(/[^0-9\*\+\pw]/g, ""); ?
thank you
michael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for provide Nokia Synchronization for Thunderbird. It's a powerful and most useful tool.
I'd like to suggest a modification to phone number comparisons between Thunderbird and the Nokia phone with respect to characters which may appear in the Thunderbird address book, but can be ignored for the comparison (similar to the way that white characters are ignored by the current NokSync 1.0.50 implementation). These characters include:
- dash '-'
- open and close parentheses '(' and ')'
For example, the Thunderbird address book phone number: +1 (234) 567-8910 should match the Nokia phone number: +12345678910 without the need to update one or the other.
This would bring NokSync in line with the address book synchronization between Microsoft Outlook and a Nokia phone.
Michael
Good idea, I will include this in the next release
/Henrik
Perfect, that's what I need, too. Thanks
Henrik didn't implement this in version 1.0.50. Because this requires just one minor change I can provide tested and working code.
In file ..\content\comparator.js replace
**/
function matchPhone(pNokia, pTb) {
// If they match, they match (-:
if (pTb==pNokia) return true;
// Thunderbird may have spaces in them...
var pTb2=pTb.replace(" ", "", "g"); // "g" for global so we get all spaces replaced
if (pTb2==pNokia) return true;
return false;
}
with
**/
function matchPhone(pNokia, pTb) {
// If they match, they match (-:
if (pTb==pNokia) return true;
// Thunderbird may have spaces in them...
var pTb2=pTb..replace(/[^0-9\*\+\pw]/g, ""); // strip all unwanted characters
if (pTb2==pNokia) return true;
return false;
}
The reg. expression is taken directly from ..\content\synchronizer.js ;-)
Hello
Im sure someone here can help me.
In TB the telephonenumber looks like this: +49 (0)1234 9876-54
+49 is the countrycode
(0) has to be used inside the country but not from outside the contry
1234 ist the number for the area
9876 is the number for my company
54 is my telephone
its only an example :-)
on my nokia i need the number in this format: +491234987654
what do i have to put in here:
var pTb2=pTb..replace(/[^0-9\*\+\pw]/g, ""); ?
thank you
michael
The above should work (except for the syntax error, the two dots should be replaced by one dot)