From 8b23f9bc0e0441913b8847900a73bd7a51833d30 Mon Sep 17 00:00:00 2001 From: teranisi Date: Thu, 9 Sep 2004 13:47:32 +0000 Subject: [PATCH] (elmo-msgdb-get-message-id-from-buffer): Use unibyte string of the current buffer for the argument of `md5' (Reported by Yoichi NAKAYAMA ). --- elmo/ChangeLog | 6 ++++++ elmo/elmo-util.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/elmo/ChangeLog b/elmo/ChangeLog index b632320..8e7434d 100644 --- a/elmo/ChangeLog +++ b/elmo/ChangeLog @@ -1,3 +1,9 @@ +2004-09-09 Yuuichi Teranishi + + * elmo-util.el (elmo-msgdb-get-message-id-from-buffer): Use + unibyte string of the current buffer for the argument of `md5' + (Reported by Yoichi NAKAYAMA ). + 2004-09-05 Hiroya Murata * modb-legacy.el (modb-legacy-flag-list): New constant. diff --git a/elmo/elmo-util.el b/elmo/elmo-util.el index 38b07cf..0e51f1e 100644 --- a/elmo/elmo-util.el +++ b/elmo/elmo-util.el @@ -2026,7 +2026,7 @@ If ALIST is nil, `elmo-obsolete-variable-alist' is used." (concat "<" (if (elmo-unfold-field-body "date") (timezone-make-date-sortable (elmo-unfold-field-body "date")) - (md5 (current-buffer) (point-min) (point-max))) + (md5 (string-as-unibyte (buffer-string)))) (nth 1 (eword-extract-address-components (or (elmo-field-body "from") "nobody"))) ">")))) -- 1.7.10.4