First Last Prev Next    No search results available
Details
: Address variables To and Cc replaced with ??
Bug#: 25762
: smarttemplate4
: General
Status: RESOLVED
Resolution: FIXED
: PC
: Windows NT
: unspecified
: P2
: major
: ---

:
:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Axel Grude <axel.grude@gmail.com>
Assigned To: Axel Grude <axel.grude@gmail.com>
:

Attachments
0.9.5.2 prerelease 1 (331.75 KB, application/x-xpinstall)
2014-04-28 10:40, Axel Grude
no flags Details
0.9.5.2 prerelease 2 (331.75 KB, application/x-xpinstall)
2014-04-28 11:20, Axel Grude
no flags Details
Postbox fix (332.10 KB, application/x-xpinstall)
2014-04-30 10:58, Axel Grude
no flags Details
0.9.5.2 prerelease 12 (328.16 KB, application/x-xpinstall)
2014-05-06 11:28, Axel Grude
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2014-04-28 10:36
In some cases the variables %to%, %cc% and %from% are replaced with ??
------- Comment #1 From Axel Grude 2014-04-28 10:39:32 -------
relevant lines from user's Error log:

Warning: replaceReservedWords(dmy, from, (mail,islinkable)) failed - unknown
token?
Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED)
[nsIAbDirectory.cardForEmailAddress]
 ----------

Warning: replaceReservedWords(dmy, to, ) failed - unknown token?
Component returned failure code: 0x80004001 (NS_ERROR_NOT_IMPLEMENTED)
[nsIAbDirectory.cardForEmailAddress]
 ----------



This points to a problem in the address book. See function getCardFromAB() in
smartTemplate-overlay.js

this iterates through all address books using 

nsIAbManager.directories

by using .getNext().QueryInterface(Components.interfaces.nsIAbDirectory)

and then attempts to retrieve address card object:
let card = addressBook.cardForEmailAddress(mail);
------- Comment #2 From Axel Grude 2014-04-28 10:40:50 -------
Created an attachment (id=7859) [details]
0.9.5.2 prerelease 1

Added code guarding against this problem
------- Comment #3 From wrazik 2014-04-28 11:05:48 -------
Problem still occurs:
Here are logs:

SmartTemplate4 [logTime init]
SmartTemplate4.init()
 ----------
SmartTemplate4 12:14:53.584  [0 ms]      
Util.VersionProxy()...
 ----------
SmartTemplate4 12:14:53.584  [0 ms]      
Util.VersionProxy() started.
 ----------
SmartTemplate4 12:14:53.585  [1 ms]      
AddonManager.getAddonByID .. added callback for setting extensionVer.
 ----------
SmartTemplate4 12:14:53.585  [0 ms]      
Util.VersionProxy ends()
 ----------
SmartTemplate4 12:14:53.585  [0 ms]      
SmartTemplate4.init() ends.
 ----------
SmartTemplate4 12:14:53.589  [4 ms]      
AddonManager: SmartTemplate4 extension's version is 0.9.5.1
 ----------
SmartTemplate4 12:14:53.589  [0 ms]      
SmartTemplate4.VersionProxy() - DETECTED SmartTemplate4 Version 0.9.5.1
Running on Thunderbird Version 24.4.0
 ----------
SmartTemplate4 12:14:53.589  [0 ms]      
AddonManager: SmartTemplate4 extension's version is 0.9.5.1
 ----------
Ostrzeżenie: Nieprawidłowy selektor funkcyjny.  Zbiór reguł zignorowany z
powodu błędnego selektora.
Plik źródłowy: about:blank
Wiersz: 19, Kolumna: 23
Kod źródłowy:
.myName:hover, .myName &gt; a:hover { font-size:13pt; text-shadow: 3px 3px 4px
rgba(200,250,200,0.7);}
 ----------
Ostrzeżenie: Nieprawidłowy selektor funkcyjny.  Zbiór reguł zignorowany z
powodu błędnego selektora.
Plik źródłowy: about:blank
Wiersz: 195, Kolumna: 23
Kod źródłowy:
.myName:hover, .myName &gt; a:hover { font-size:13pt; text-shadow: 3px 3px 4px
rgba(200,250,200,0.7);}
 ----------
SmartTemplate4 12:14:53.844  [255 ms]    
SmartTemplate4.notifyComposeBodyReady()
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.846  [2 ms]         
SmartTemplate4.regularize(<br> <br> <hr><b>From:</b> %from(name)% <br>
<b>Sent:</b> %X:=sent% %A%, %B% %d%, %Y% %l%:%M%%p(3)% <br> <b>To:</b>
%to(name)%[[ <br><b>Cc:</b> %cc(name)%]] <br> <b>Subject:</b> %subject% <br>
<br>)  STARTS...
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [60 ms]        
simplify()
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%cc(name)%, cc, (name))
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%from(name)%, from, (name))
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%X:=sent%, X:=sent, )
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%A%, A, )
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%B%, B, )
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%d%, d, )
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%Y%, Y, )
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%l%, l, )
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%M%, M, )
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%p(3)%, p, (3))
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%to(name)%, to, (name))
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.906  [0 ms]         
regularize.chkRw(%subject%, subject, )
 ----------
Ostrzeżenie: replaceReservedWords(dmy, from, (name)) failed - unknown token?
smartTemplate is not defined
Plik źródłowy: chrome://smarttemplate4/content/smartTemplate-overlay.js
Wiersz: 380
Kod źródłowy:
getCardFromAB   chrome://smarttemplate4/content/smartTemplate-overlay.js:380
SmartTemplate4.mimeDecoder.split@chrome://smarttemplate4/content/smartTemplate-overlay.js:428
replaceReservedWords@chrome://smarttemplate4/content/smartTemplate-overlay.js:1155
SmartTemplate4.regularize@chrome://smarttemplate4/content/smartTemplate-overlay.js:1285
getProcessedText@chrome://smarttemplate4/content/smartTemplate-compose.js:709
getQuoteHeader@chrome://smarttemplate4/content/smartTemplate-compose.js:722
insertTemplate@chrome://smarttemplate4/content/smartTemplate-compose.js:873
SmartTemplate4.notifyComposeBodyReady@chrome://smarttemplate4/content/smartTemplate-main.js:342
SmartTemplate4.stateListener.NotifyComposeBodyReady@chrome://smarttemplate4/content/smartTemplate-main.js:244 
 ----------
SmartTemplate4 {REPLACERESERVEDWORDS} 12:14:53.907  [1 ms]       
replaceReservedWords( %A% ) = Poniedziałek
cal.dayName(1)
 ----------
SmartTemplate4 {REPLACERESERVEDWORDS} 12:14:53.907  [0 ms]       
replaceReservedWords( %B% ) = Kwiecień
cal.monthName(3)
 ----------
SmartTemplate4 {REPLACERESERVEDWORDS} 12:14:53.907  [0 ms]       
replaceReservedWords( %d% ) = 28
d02(tm.getMonth()+1)
 ----------
SmartTemplate4 {REPLACERESERVEDWORDS} 12:14:53.907  [0 ms]       
replaceReservedWords( %Y% ) = 2014
tm.getFullYear
 ----------
SmartTemplate4 {REPLACERESERVEDWORDS} 12:14:53.907  [0 ms]       
replaceReservedWords( %l% ) = 12
 ----------
SmartTemplate4 {REPLACERESERVEDWORDS} 12:14:53.907  [0 ms]       
replaceReservedWords( %M% ) = 11
d02(tm.getMinutes())
 ----------
SmartTemplate4 {REPLACERESERVEDWORDS} 12:14:53.907  [0 ms]       
replaceReservedWords( %p% ) = PM
 ----------
Ostrzeżenie: replaceReservedWords(dmy, to, (name)) failed - unknown token?
smartTemplate is not defined
Plik źródłowy: chrome://smarttemplate4/content/smartTemplate-overlay.js
Wiersz: 380
Kod źródłowy:
getCardFromAB   chrome://smarttemplate4/content/smartTemplate-overlay.js:380
SmartTemplate4.mimeDecoder.split@chrome://smarttemplate4/content/smartTemplate-overlay.js:428
replaceReservedWords@chrome://smarttemplate4/content/smartTemplate-overlay.js:1155
SmartTemplate4.regularize@chrome://smarttemplate4/content/smartTemplate-overlay.js:1285
getProcessedText@chrome://smarttemplate4/content/smartTemplate-compose.js:709
getQuoteHeader@chrome://smarttemplate4/content/smartTemplate-compose.js:722
insertTemplate@chrome://smarttemplate4/content/smartTemplate-compose.js:873
SmartTemplate4.notifyComposeBodyReady@chrome://smarttemplate4/content/smartTemplate-main.js:342
SmartTemplate4.stateListener.NotifyComposeBodyReady@chrome://smarttemplate4/content/smartTemplate-main.js:244 
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.908  [1 ms]         
getSubject(false)
 ----------
SmartTemplate4 {REPLACERESERVEDWORDS} 12:14:53.908  [0 ms]       
replaceReservedWords( %subject% ) = Re: [SmartTemplate4] - Broken after update
(from, to and cc fields)
 ----------
SmartTemplate4 {REGULARIZE} 12:14:53.908  [0 ms]         
SmartTemplate4.regularize(<br> <br> <hr><b>From:</b> ?? <br> <b>Sent:</b> 
Poniedziałek, Kwiecień 28, 2014 12:11PM <br> <b>To:</b> ?? <br>
<b>Subject:</b> Re: [SmartTemplate4] - Broken after update (from, to and cc
fields) <br> <br>)  ...ENDS
------- Comment #4 From Axel Grude 2014-04-28 11:20:32 -------
Created an attachment (id=7860) [details]
0.9.5.2 prerelease 2

Fixes a typo in the previous release.
------- Comment #5 From wrazik 2014-04-28 11:34:33 -------
Hi, 
0.9.5.2 prerelease 2 worked for me. Thanks.
------- Comment #6 From Mike Hanby 2014-04-28 18:09:26 -------
(In reply to comment #5)
> Hi, 
> 0.9.5.2 prerelease 2 worked for me. Thanks.
> 

Howdy, I'm encountering the same issue with Thunderbird 24.4.0 after updating
SmartTemplate4 to 0.9.5.1 on Linux.

Here's my template for both reply and forward:

<hr />
<b>From: </b> %from%
<b>Sent:</b> %X:=sent% %A%, %B% %d%, %Y% %l%:%M%%p(3)%
<b>To: </b> %to%
<b>Subject: </b> %subject%

smartTemplate-0.9.5.2pre2.xpi resolved the issue for me as well
------- Comment #7 From Axel Grude 2014-04-30 10:58:56 -------
Created an attachment (id=7861) [details]
Postbox fix

Fixes Address book lookup on Postbox.

I still need to improve the lookup for Thunderbird so that it can also work
with LDAP address books.
------- Comment #8 From Axel Grude 2014-05-06 11:28:18 -------
Created an attachment (id=7864) [details]
0.9.5.2 prerelease 12

Added a tool tip and also guards against activating the option in Postbox.

Missing locales:
Dutch French Serbian Ukrainian Occitan Swedish

(do not install if you use one of the locales above as this version hasn't got
the replaced strings for the listed languages). All other languages are
complete.

For detailed info, please refer:
http://beta.babelzilla.org/projects/p/smarttemplate4/
------- Comment #9 From Ash Abousteit 2014-05-06 22:42:09 -------
Hi,
Tried out 0.9.5.2 prerelease 12. 

It fixed the bug for me.

FYI, I do use and LDAP Address Book. 

Thx!
------- Comment #10 From Axel Grude 2014-05-14 14:13:45 -------
Fixed with release 0.9.5.2

First Last Prev Next    No search results available