TypeError: ...filter is not a function
I'm trying to use the securitysettingsfromaddressbook-2.0 addon for TB-60.0b10, and it appears to be triggering an error in CardBook-30.3.
The gist of using that addon is that I can set a custom card field that (en|dis)ables digital signing/encrypting for specific recipients. (One of my clients has problems reading my emails on his webmail interface, so he's requested that I not s/mime-sign emails to him. My default is to sign all emails, something I'd prefer to not change.)
Console log:
securitysettingsfromaddressbook: pref - debug: true securitysettingsfromaddressbook.js:20:9
securitysettingsfromaddressbook: pref - adressbook_field: X-CUSTOM1 securitysettingsfromaddressbook.js:20:9
securitysettingsfromaddressbook: pref - enabled: true securitysettingsfromaddressbook.js:20:9
securitysettingsfromaddressbook: pref - warn_missing: true securitysettingsfromaddressbook.js:20:9
securitysettingsfromaddressbook: bill <my@email.com>, , securitysettingsfromaddressbook.js:20:9
securitysettingsfromaddressbook: my@email.com securitysettingsfromaddressbook.js:20:9
securitysettingsfromaddressbook: my@email.com: ? securitysettingsfromaddressbook.js:20:9
securitysettingsfromaddressbook: testing for CardBook Add-On securitysettingsfromaddressbook.js:20:9
securitysettingsfromaddressbook: CardBook Add-On found securitysettingsfromaddressbook.js:20:9
securitysettingsfromaddressbook: my@email.com securitysettingsfromaddressbook.js:20:9
securitysettingsfromaddressbook: error reading CardBook: TypeError: cardbookRepository.cardbookDisplayCards[account[4]].filter is not a function securitysettingsfromaddressbook.js:20:9
String.trim is deprecated; use String.prototype.trim instead[Learn More] securitysettingsfromaddressbook.js:66:12
Steps to reproduce:
- add a custom field (in CB), named
X-CUSTOM1
- set (verify) that SSAB is looking for this header, via
about:config
andextensions.securitysettingsfromaddressbook.addressbook_field
(set toX-CUSTOM1
) - set the custom field in one user to "nosign" (per SSAB instructions)
- attempt to send email to user, the above appears in the error/console log
Is this a compatibility problem between SSAB and CB, or is this an obscure bug in CB?
Thanks!
Edited by ChriZilla