* mixi-gnus.el (message-send-via-mixi): Don't replace twice.
authorbg66 <bg66>
Tue, 9 Jan 2007 06:27:37 +0000 (06:27 +0000)
committerbg66 <bg66>
Tue, 9 Jan 2007 06:27:37 +0000 (06:27 +0000)
ChangeLog
mixi-gnus.el

index 03df948..fa21024 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-01-09  OHASHI Akira  <bg66@koka-in.org>
 
+       * mixi-gnus.el (message-send-via-mixi): Don't replace twice.
+
+2007-01-09  OHASHI Akira  <bg66@koka-in.org>
+
        * mixi-gnus.el (message-mixi-p): Change the pseudo header to
        `Mixi-To:'.
        (message-send-via-mixi): Ditto.
index 4e7c72c..572639c 100644 (file)
@@ -55,8 +55,9 @@
     ;; Avoid matching with message-mail-p.
     (with-current-buffer mailbuf
       (goto-char (point-min))
-      (when (search-forward "\nTo: " nil t)
-       (replace-match "\nMixi-To: ")))
+      (unless (search-forward "\nMixi-To: " nil t)
+       (when (search-forward "\nTo: " nil t)
+         (replace-match "\nMixi-To: "))))
     (unwind-protect
        (save-excursion
          (set-buffer tembuf)