[Pkg-mozext-commits] [nostalgy] 82/252: *** empty log message ***

David Prévot taffit at moszumanska.debian.org
Tue Jun 14 15:24:44 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository nostalgy.

commit 1ceaa5d49ef4d97b6b0a13a5f22a731d97b229f3
Author: frisch <frisch at 56b81dcf-5a2f-0410-9db0-014be2e416ff>
Date:   Wed May 16 13:18:56 2007 +0000

    *** empty log message ***
---
 CHANGES             |  7 +++++++
 content/nostalgy.js | 15 ++++++++++++---
 2 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/CHANGES b/CHANGES
index e14b445..f3ace34 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,10 @@
+Since 0.2.11
+  - bug fix: use the mime-decoded version for the subject (for matching
+    rules and searching messages with same subject); needed to solve
+    with accents in subjects
+  - remove re:/fwd:/[...] strings from subjects (for matching rules
+    and searching messages with same subject)
+
 0.2.11
   - bug fix: Virtual Folder were not found under some circumstances
   - bug fix: internal naming conflict with the Habu extension
diff --git a/content/nostalgy.js b/content/nostalgy.js
index 984b14d..59a82d3 100644
--- a/content/nostalgy.js
+++ b/content/nostalgy.js
@@ -363,7 +363,15 @@ function MailRecipName()
 }
 
 function MailSubject() {
- return(gDBView.hdrForFirstSelectedMessage.subject.toLowerCase());
+ var s = gDBView.hdrForFirstSelectedMessage.mime2DecodedSubject.toLowerCase();
+ var old;
+
+ do { old = s; s = s.replace(/^\[fwd:|^fwd:|^fw:|^re:|^ |^e :|\]$/g, ""); } 
+ while (s != old);
+
+ do { old =s; s = s.replace(/^\[.*\]/g,""); } while (s != old);
+
+ return s;  
 }
 
 function register_folder(folder) {
@@ -630,6 +638,7 @@ function ParseCommand(k) {
 window.addEventListener("load", onNostalgyLoad, false);
 window.addEventListener("resize", onNostalgyResize, false);
 window.addEventListener("unload", onNostalgyUnload, false);
-if (!in_message_window) {
+
+if (!in_message_window) 
   window.addEventListener("keypress", onNostalgyKeyPress, false);
-} 
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nostalgy.git



More information about the Pkg-mozext-commits mailing list