From: Uwe Brauer <oub@mat.ucm.es>
To: ding@gnus.org
Subject: strange behaviour of gnus-summary-mail-forward. (was: some solution but n>1)
Date: Thu, 12 Jan 2012 14:36:59 +0100 [thread overview]
Message-ID: <87k44xujno.fsf_-_@gilgamesch.quim.ucm.es> (raw)
In-Reply-To: <87hb01w27n.fsf_-_@gilgamesch.quim.ucm.es>
>> On Thu, 12 Jan 2012 13:10:52 +0100, Uwe Brauer <oub@mat.ucm.es> wrote:
>> 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
It seems that the problem is caused by the behavior of
gnus-summary-mail-forward.
If in a summary two messages are marked and the point is on
a third message,
gnus-summary-mail-forward.
Will forward the marked message
However is only one message marked and the point is on
another message then
gnus-summary-mail-forward.
Will forward the message the POINTER is on
I found this bizarre.
The the following kludge "solves" this issue.
(goto-char (point-max))
(search-backward "#")
(defun my-gnus-reply-mail-forward (&optional arg)
"This function is to be used within a reply or forward buffer,
marked messages 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*")
(goto-char (point-max))
(search-backward "#")
(gnus-summary-mail-forward arg)
(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 13:36 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 ` some solution but n>1 (was: reply to one message and at the same time forward another) Uwe Brauer
2012-01-12 13:36 ` Uwe Brauer [this message]
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=87k44xujno.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).