aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/gnus
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/gnus')
-rw-r--r--lisp/gnus/ChangeLog9
-rw-r--r--lisp/gnus/gnus-msg.el38
-rw-r--r--lisp/gnus/message.el2
3 files changed, 39 insertions, 10 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index c0c5c8dad2b..83ca62ca0de 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -2,6 +2,15 @@
2 2
3 * Relicense all FSF files to GPLv3 or later. 3 * Relicense all FSF files to GPLv3 or later.
4 4
52007-07-24 Katsumi Yamaoka <yamaoka@jpl.org>
6
7 * gnus-msg.el (gnus-summary-supersede-article)
8 (gnus-summary-resend-message-edit): Add Gcc header.
9 (gnus-summary-resend-bounced-mail): Ditto; search whole body for parent
10 article's Message-ID; refer parent article in summary buffer.
11
12 * message.el (message-bounce): Call mime-to-mml.
13
52007-07-21 Reiner Steib <Reiner.Steib@gmx.de> 142007-07-21 Reiner Steib <Reiner.Steib@gmx.de>
6 15
7 * mm-uu.el (mm-uu-type-alist): Refer to mm-uu-configure-list in doc 16 * mm-uu.el (mm-uu-type-alist): Refer to mm-uu-configure-list in doc
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el
index 0789e25bc68..c9aedab7019 100644
--- a/lisp/gnus/gnus-msg.el
+++ b/lisp/gnus/gnus-msg.el
@@ -815,7 +815,10 @@ header line with the old Message-ID."
815 (set-buffer ,gnus-summary-buffer) 815 (set-buffer ,gnus-summary-buffer)
816 (gnus-cache-possibly-remove-article ,article nil nil nil t) 816 (gnus-cache-possibly-remove-article ,article nil nil nil t)
817 (gnus-summary-mark-as-read ,article gnus-canceled-mark))))) 817 (gnus-summary-mark-as-read ,article gnus-canceled-mark)))))
818 message-send-actions)))) 818 message-send-actions)
819 ;; Add Gcc header.
820 (gnus-inews-insert-archive-gcc)
821 (gnus-inews-insert-gcc))))
819 822
820 823
821 824
@@ -1280,10 +1283,13 @@ composing a new message."
1280 (message-narrow-to-head-1) 1283 (message-narrow-to-head-1)
1281 ;; Gnus will generate a new one when sending. 1284 ;; Gnus will generate a new one when sending.
1282 (message-remove-header "Message-ID") 1285 (message-remove-header "Message-ID")
1283 (message-remove-header message-ignored-resent-headers t)
1284 ;; Remove unwanted headers. 1286 ;; Remove unwanted headers.
1287 (message-remove-header message-ignored-resent-headers t)
1285 (goto-char (point-max)) 1288 (goto-char (point-max))
1286 (insert mail-header-separator) 1289 (insert mail-header-separator)
1290 ;; Add Gcc header.
1291 (gnus-inews-insert-archive-gcc)
1292 (gnus-inews-insert-gcc)
1287 (goto-char (point-min)) 1293 (goto-char (point-min))
1288 (when (re-search-forward "^To:\\|^Newsgroups:" nil 'move) 1294 (when (re-search-forward "^To:\\|^Newsgroups:" nil 'move)
1289 (forward-char 1)) 1295 (forward-char 1))
@@ -1557,15 +1563,29 @@ If FETCH, try to fetch the article that this is a reply to, if indeed
1557this is a reply." 1563this is a reply."
1558 (interactive "P") 1564 (interactive "P")
1559 (gnus-summary-select-article t) 1565 (gnus-summary-select-article t)
1560 (set-buffer gnus-original-article-buffer) 1566 (let (summary-buffer parent)
1561 (gnus-setup-message 'compose-bounce 1567 (if fetch
1562 (let* ((references (mail-fetch-field "references")) 1568 (progn
1563 (parent (and references (gnus-parent-id references)))) 1569 (setq summary-buffer (current-buffer))
1570 (set-buffer gnus-original-article-buffer)
1571 (article-goto-body)
1572 (when (re-search-forward "^References:\n?" nil t)
1573 (while (memq (char-after) '(?\t ? ))
1574 (forward-line 1))
1575 (skip-chars-backward "\t\n ")
1576 (setq parent
1577 (gnus-parent-id (buffer-substring (match-end 0) (point))))))
1578 (set-buffer gnus-original-article-buffer))
1579 (gnus-setup-message 'compose-bounce
1564 (message-bounce) 1580 (message-bounce)
1581 ;; Add Gcc header.
1582 (gnus-inews-insert-archive-gcc)
1583 (gnus-inews-insert-gcc)
1565 ;; If there are references, we fetch the article we answered to. 1584 ;; If there are references, we fetch the article we answered to.
1566 (and fetch parent 1585 (when parent
1567 (gnus-summary-refer-article parent) 1586 (with-current-buffer summary-buffer
1568 (gnus-summary-show-all-headers))))) 1587 (gnus-summary-refer-article parent)
1588 (gnus-summary-show-all-headers))))))
1569 1589
1570;;; Gcc handling. 1590;;; Gcc handling.
1571 1591
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index b98c4eb5366..419fd07727c 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -6697,7 +6697,7 @@ you."
6697 (goto-char boundary) 6697 (goto-char boundary)
6698 (when (re-search-backward "^.?From .*\n" nil t) 6698 (when (re-search-backward "^.?From .*\n" nil t)
6699 (delete-region (match-beginning 0) (match-end 0))))) 6699 (delete-region (match-beginning 0) (match-end 0)))))
6700 (mm-enable-multibyte) 6700 (mime-to-mml)
6701 (save-restriction 6701 (save-restriction
6702 (message-narrow-to-head-1) 6702 (message-narrow-to-head-1)
6703 (message-remove-header message-ignored-bounced-headers t) 6703 (message-remove-header message-ignored-bounced-headers t)