Gnus development mailing list
 help / color / mirror / Atom feed
From: david.goldberg6@verizon.net (Dave Goldberg)
To: ding@gnus.org
Subject: Re: reply to one message and at the same time forward another
Date: Fri, 27 Jan 2012 17:52:28 -0500	[thread overview]
Message-ID: <84r4ykzrkj.fsf@davestoy.home> (raw)
In-Reply-To: <87liot6p3q.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri,	27 Jan 2012 18:18:33 +0100")


> Uwe Brauer <oub@mat.ucm.es> writes:
>> >> Is it possible to combine gnus-summary-reply and
>> >> gnus-summary-mail-forward, such that I can reply (or
>> >> followup) to somebody, including a another mail as
>> >> forward.
>> 
>> > I don't think any such command exists, but it does
>> > sound kinda useful, and probably wouldn't be too
>> > difficult to implement.  Gnus and Emacs is in a feature
>> > freeze at the moment, though.
>> 
>> Can you give me a hint where to start, I might give it a
>> try.

> I think the best way to implement this would be to allow people
> composing the article in the normal way.  But then have a new command in
> the summary buffer that would put the article under point into the
> Message buffer.

> That is, you'd pop to the summary buffer, find the message you want to
> include, issue the new command keystroke, and it'd prompt you for
> "attach message to buffer *unsent wide repl...*" etc, allowing you to
> choose what Message buffer to attach the message to (if there are
> several active Message buffers), and then insert the MML the same way `S
> O m' and friends do.

That would be a lot better than my approach, which is to set up gnus-summary-line-format to display the article number and use this:

(defun dsg-message-attach-article (group message)
  (interactive
   (list (completing-read
	  "Group: " gnus-active-hashtb nil
	  (gnus-read-active-file-p)
	  nil
	  'gnus-group-history)
	 (read-number "Message: ")))
  (let ((tmp (get-buffer-create (generate-new-buffer-name "*DSGTMP*"))))
    (save-excursion
      (set-buffer tmp)
      (gnus-request-article-this-buffer message group))
    (mml-attach-buffer (buffer-name tmp) "message/rfc822")))

Since I open message buffers in a new frame, picking up the article number is fairly easy.

-- 
Dave Goldberg
david.goldberg6@verizon.net



  reply	other threads:[~2012-01-27 22:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-03 17:16 Uwe Brauer
2012-01-03 21:03 ` Lars Magne Ingebrigtsen
2012-01-09 21:17   ` Uwe Brauer
2012-01-27 17:18     ` Lars Ingebrigtsen
2012-01-27 22:52       ` Dave Goldberg [this message]
2012-01-12 12:10   ` some solution but n>1 (was: reply to one message and at the same time forward another) Uwe Brauer
2012-01-12 13:36     ` strange behaviour of gnus-summary-mail-forward. (was: some solution but n>1) Uwe Brauer
2012-01-12 15:08       ` strange behaviour of gnus-summary-mail-forward Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84r4ykzrkj.fsf@davestoy.home \
    --to=david.goldberg6@verizon.net \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).