From: Uwe Brauer <oub@mat.ucm.es>
To: ding@gnus.org
Subject: some solution but n>1 (was: reply to one message and at the same time forward another)
Date: Thu, 12 Jan 2012 13:10:52 +0100 [thread overview]
Message-ID: <87hb01w27n.fsf_-_@gilgamesch.quim.ucm.es> (raw)
In-Reply-To: <m3k458h52o.fsf@stories.gnus.org>
>> On Tue, 03 Jan 2012 22:03:11 +0100, Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:
> 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.
Ok I have found a very primitive solution, which only works
if I mark more than ONE message.
Look at the following:
O# 3623 [ Uwe Brauer ] 12-Jan 2 1 to be forwarded
O# 3624 [ Uwe Brauer ] 12-Jan 2 2 to be forwarded
R 3625 [ Uwe Brauer ] 12-Jan 2 to be replied
I reply to 3625 and in the reply buffer fire up my new
function which I attach below. Everything works as expected.
Both messages 3623 and 3624 will be "attached" as forwarded
messages in the reply buffer.
However:
O 3623 [ Uwe Brauer ] 12-Jan 2 1 to be forwarded
O# 3624 [ Uwe Brauer ] 12-Jan 2 2 to be forwarded
R 3625 [ Uwe Brauer ] 12-Jan 2 to be replied
I repeat the same procedure as above but now in the reply
buffer, message 3625 (the message I reply to NOT the message
I have marked for forwarding) will be attached as a forward
message. This is bizarre. Anybody has an idea what is wrong?
Thanks
Uwe Brauer
(defun my-gnus-summary-mail-forward ()
"This function is to be used within a reply or forward buffer,
marked messages (n>1!!!) will be inserted as forwarded messages."
(interactive)
(if (y-or-n-p (format "Did you mark the msg in the summary buffer? "))
(progn
(save-excursion
(let ((currentname (current-buffer)))
(switch-to-buffer "*Summary nnimap+UCM:INBOX*")
(gnus-summary-mail-forward nil)
(mail-text)
(copy-region-as-kill (point) (point-max))
(switch-to-buffer currentname)
(goto-char (point-max))
(yank nil))))
(progn
(message "You did NOT mark the msg, you fool!")
(beep) (sleep-for 1) (beep) (sleep-for 1) (beep))))
next prev parent reply other threads:[~2012-01-12 12:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-03 17:16 reply to one message and at the same time forward another 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
2012-01-12 12:10 ` Uwe Brauer [this message]
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=87hb01w27n.fsf_-_@gilgamesch.quim.ucm.es \
--to=oub@mat.ucm.es \
--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).