Gnus development mailing list
 help / color / mirror / Atom feed
* "Reply to list" feature
@ 2011-06-07 21:22 Tommi Vainikainen
  2011-06-26 10:04 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Tommi Vainikainen @ 2011-06-07 21:22 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

Hi,

I'm forwarding here a patch that adds "Reply to list" feature that is
found from many other mail clients such as Thunderbird. Naturally one
can configure Gnus in such way that it knows per group what to do, but I
think that separate "Reply to list" benefits some group of users.

The patch is written by Timo Lindfors, and with longer explanation, it
was submitted first to Debian's bug tracker at
http://bugs.debian.org/627516


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Implement-gnus-summary-reply-to-list-with-original-S.patch --]
[-- Type: text/x-diff, Size: 1598 bytes --]

From 95646f7e58a571eca0f97929d80e262c9fdd54b6 Mon Sep 17 00:00:00 2001
From: Timo Juhani Lindfors <timo.lindfors@iki.fi>
Date: Fri, 20 May 2011 21:53:53 +0300
Subject: [PATCH] Implement gnus-summary-reply-to-list-with-original (S L)

This is similar to "Reply to list" in mutt and evolution.
---
 lisp/gnus-msg.el |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/lisp/gnus-msg.el b/lisp/gnus-msg.el
index 093eec3..4c5664b 100644
--- a/lisp/gnus-msg.el
+++ b/lisp/gnus-msg.el
@@ -351,6 +351,7 @@ Thank you for your help in stamping out bugs.
   "r" gnus-summary-reply
   "y" gnus-summary-yank-message
   "R" gnus-summary-reply-with-original
+  "L" gnus-summary-reply-to-list-with-original
   "w" gnus-summary-wide-reply
   "W" gnus-summary-wide-reply-with-original
   "v" gnus-summary-very-wide-reply
@@ -1154,6 +1155,15 @@ The original article will be yanked."
   (interactive "P")
   (gnus-summary-reply (gnus-summary-work-articles n) wide))
 
+(defun gnus-summary-reply-to-list-with-original (n &optional wide)
+  "Start composing a reply mail to the current message.
+The reply goes only to the mailing list.
+The original article will be yanked."
+  (interactive "P")
+  (let ((message-reply-to-function #'(lambda nil
+				       `((To . ,(gnus-mailing-list-followup-to))))))
+    (gnus-summary-reply (gnus-summary-work-articles n) wide)))
+
 (defun gnus-summary-reply-broken-reply-to (&optional yank wide very-wide)
   "Like `gnus-summary-reply' except removing reply-to field.
 If prefix argument YANK is non-nil, the original article is yanked
-- 
1.7.5.1


[-- Attachment #3: Type: text/plain, Size: 23 bytes --]


-- 
Tommi Vainikainen

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "Reply to list" feature
  2011-06-07 21:22 "Reply to list" feature Tommi Vainikainen
@ 2011-06-26 10:04 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-06-26 10:04 UTC (permalink / raw)
  To: ding; +Cc: Timo Juhani Lindfors, Tommi Vainikainen

Tommi Vainikainen <thv@iki.fi> writes:

> I'm forwarding here a patch that adds "Reply to list" feature that is
> found from many other mail clients such as Thunderbird. Naturally one
> can configure Gnus in such way that it knows per group what to do, but I
> think that separate "Reply to list" benefits some group of users.

Thanks; applied.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-26 10:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-07 21:22 "Reply to list" feature Tommi Vainikainen
2011-06-26 10:04 ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).