aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/gnus-msg.el7
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 560d03439c1..df676146a70 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12014-02-06 Lars Ingebrigtsen <larsi@gnus.org>
2
3 * gnus-msg.el (gnus-summary-cancel-article): `user-mail-address' is
4 buffer-local in some buffers, so bind it explicitly in the buffer we're
5 trying to cancel the article in (bug#10808).
6
12014-02-05 Lars Ingebrigtsen <larsi@gnus.org> 72014-02-05 Lars Ingebrigtsen <larsi@gnus.org>
2 8
3 * gnus-int.el (gnus-request-accept-article): Doc fix. 9 * gnus-int.el (gnus-request-accept-article): Doc fix.
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el
index 2ff70071b1c..1c8635c5992 100644
--- a/lisp/gnus/gnus-msg.el
+++ b/lisp/gnus/gnus-msg.el
@@ -862,7 +862,7 @@ post using the current select method."
862 (let ((message-post-method 862 (let ((message-post-method
863 `(lambda (arg) 863 `(lambda (arg)
864 (gnus-post-method (eq ',symp 'a) ,gnus-newsgroup-name))) 864 (gnus-post-method (eq ',symp 'a) ,gnus-newsgroup-name)))
865 (user-mail-address user-mail-address)) 865 (custom-address user-mail-address))
866 (dolist (article (gnus-summary-work-articles n)) 866 (dolist (article (gnus-summary-work-articles n))
867 (when (gnus-summary-select-article t nil nil article) 867 (when (gnus-summary-select-article t nil nil article)
868 ;; Pretend that we're doing a followup so that we can see what 868 ;; Pretend that we're doing a followup so that we can see what
@@ -872,12 +872,13 @@ post using the current select method."
872 (gnus-summary-followup nil) 872 (gnus-summary-followup nil)
873 (let ((from (message-fetch-field "from"))) 873 (let ((from (message-fetch-field "from")))
874 (when from 874 (when from
875 (setq user-mail-address 875 (setq custom-address
876 (car (mail-header-parse-address from))))) 876 (car (mail-header-parse-address from)))))
877 (kill-buffer (current-buffer)))) 877 (kill-buffer (current-buffer))))
878 ;; Now cancel the article using the From header we got. 878 ;; Now cancel the article using the From header we got.
879 (when (gnus-eval-in-buffer-window gnus-original-article-buffer 879 (when (gnus-eval-in-buffer-window gnus-original-article-buffer
880 (message-cancel-news)) 880 (let ((user-mail-address (or custom-address user-mail-address)))
881 (message-cancel-news)))
881 (gnus-summary-mark-as-read article gnus-canceled-mark) 882 (gnus-summary-mark-as-read article gnus-canceled-mark)
882 (gnus-cache-remove-article 1)) 883 (gnus-cache-remove-article 1))
883 (gnus-article-hide-headers-if-wanted)) 884 (gnus-article-hide-headers-if-wanted))