Post edited 5:58 am – July 2, 2010 by t2m
After digging a bit mozilla developper documentation, I found that :
( from
https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIMsgDBHdr )
Knowning this, I cooked the following patch, which fixes the subject matching issue for me:
— filtaquilla.js.orig 2010-07-02 15:34:42.000000000 +0200
+++ filtaquilla.js 2010-07-02 15:37:57.000000000 +0200
@@ -834,7 +834,7 @@
},
match: function subjectRegEx_match(aMsgHdr, aSearchValue, aSearchOp)
{
- var subject = aMsgHdr.subject;
+ var subject = aMsgHdr.mime2DecodedSubject;
let searchValue;
let searchFlags;
[searchValue, searchFlags] = _getRegEx(aSearchValue);
I can now use accents in my subject matching regexps.
Can you consider including this patch in a later revision ?
Note that you may also want to generalise this fix in other parts of the code, such as in :
if (/@SUBJECT@/.test(parameter))
- return parameter.replace(/@SUBJECT@/, hdr.subject);
+ return parameter.replace(/@SUBJECT@/, hdr.mime2DecodedSubject);
and same for authors and recipients headers.
Recent Comments