Package: postal
Version: 0.70
Severity: normal
I've just seen that rabid ran to fetch mails sent by postal
reports "MD5 mis-match" on every one of them.
It seems the problem is that the two programs are checksumming
two _different_ sets of data. Postal summing subj+msgid+date header
lines and the message body while rabid compares it to only subj+body
hash. Simple patch -
--- postal-0.70.orig/smtp.cpp
+++ postal-0.70/smtp.cpp
@@ -287,9 +287,9 @@
subject += m_data->randomString(60);
m_md5.addData(subject);
string date = m_data->date();
- m_md5.addData(date);
+// m_md5.addData(date);
string msgId = m_data->msgId(from.c_str(), getThreadNum());
- m_md5.addData(msgId);
+// m_md5.addData(msgId);
string str = string("To: ") + to + "\r\n"
+ subject + date + msgId + "From: " + from + "\r\n"
+ m_data->postalMsg();
fixes the problem still leaving date and msgid headers unchecked.
Thanks!
-- System Information:
Debian Release: 5.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.32-bpo.5-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages postal depends on:
ii libc6 2.7-18lenny7 GNU C Library: Shared
libraries
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libgcrypt11 1.4.1-1 LGPL Crypto library -
runtime libr
ii libgnutls26 2.4.2-6+lenny1 the GNU TLS library -
runtime libr
ii libstdc++6 4.3.2-1.1 The GNU Standard C++
Library v3
postal recommends no packages.
postal suggests no packages.
-- debconf-show failed
...Be happy, take it easy, sayonara.
---abme at rambler dot ru
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org