From 32e92245b63b98c9a817f26bc0507efcb24a9e68 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 1 Oct 2013 00:50:52 +0000 Subject: [PATCH] Don't bother md5summing the subjects... just use 'em as is. --- exec/load/msgutils.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/exec/load/msgutils.js b/exec/load/msgutils.js index ce697c1179..4b72d235d9 100644 --- a/exec/load/msgutils.js +++ b/exec/load/msgutils.js @@ -366,7 +366,7 @@ function getMessageThreads(sub, max) { var subjects = {}; var header; var tbHeader; - var md5subject; + var subject; var msgBase = new MsgBase(sub); var header_num={}; var all_headers=[]; @@ -413,7 +413,7 @@ function getMessageThreads(sub, max) { ) continue; header_num[header.number]=header; - md5subject = md5_calc(header.subject.toUpperCase().replace(/\s*RE:\s*/g, ''), hex=true); + subject = header.subject.toUpperCase().replace(/\s*RE:\s*/g, ''); if(header.thread_id === 0 && header_num[header.thread_back] !== undefined) { if(threads.thread.hasOwnProperty(header.thread_back)) add_to_thread(header, threads.thread[header.thread_back]); @@ -431,11 +431,11 @@ function getMessageThreads(sub, max) { } } else if(header.thread_id !== header.number && threads.thread.hasOwnProperty(header.thread_id)) { add_to_thread(header, threads.thread[header.thread_id]); - } else if(subjects.hasOwnProperty(md5subject)) { - add_to_thread(header, threads.thread[subjects[md5subject]]); + } else if(subjects.hasOwnProperty(subject)) { + add_to_thread(header, threads.thread[subjects[subject]]); } else { new_thread = (header.thread_id === 0)?header.number:header.thread_id; - subjects[md5subject] = new_thread; + subjects[subject] = new_thread; threads.dates.push(header.when_written_time); threads.thread[new_thread] = { dateIndex : threads.dates.length - 1, -- GitLab