Gnus development mailing list
 help / color / mirror / Atom feed
* forward/insert a message in a reply message buffer
@ 2018-02-28  9:23 Uwe Brauer
  0 siblings, 0 replies; 9+ messages in thread
From: Uwe Brauer @ 2018-02-28  9:23 UTC (permalink / raw)
  To: ding


 
http://ding.gnus.narkive.com/J5R2w4Tj/forward-insert-a-message-in-a-reply-message-buffer


Hello

I asked this some time ago, but I am not sure whether the following
feature has been implemented:
in a reply/followup buffer I want to insert/forward a message from any
other group something like

For example:


(insert-or-attach-or-forward
"Message-ID: <CAMErEMjN_Thvq0X4jdRYw2-B02HSrGGJX3LTZJcRwhKPgun=***@mail.gmail.com> Group: nnimap+UCMgmail:INBOX")


Dave Goldberg has a nice implementation, but it relies on the message
number. It would be great if it could be generalised for marked messages.

Uwe Brauer




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

* Re: forward/insert a message in a reply message buffer
  2015-01-31 16:47           ` Dave Goldberg
@ 2015-02-05  3:37             ` Lars Ingebrigtsen
  0 siblings, 0 replies; 9+ messages in thread
From: Lars Ingebrigtsen @ 2015-02-05  3:37 UTC (permalink / raw)
  To: Dave Goldberg; +Cc: ding

david.goldberg6@verizon.net (Dave Goldberg) writes:

> OK.  How do I do that?  M-x gnus-bug or someplace else?

`M-x report-emacs-bug' is best.

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



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

* Re: forward/insert a message in a reply message buffer
  2015-01-29  2:22         ` Lars Ingebrigtsen
@ 2015-01-31 16:47           ` Dave Goldberg
  2015-02-05  3:37             ` Lars Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Dave Goldberg @ 2015-01-31 16:47 UTC (permalink / raw)
  To: ding

> david.goldberg6@verizon.net (Dave Goldberg) writes:
>
>>> Or, perhaps, there should be a command to do this the other way?  Where
>>> you select an article in a group, and then there's a command "attach
>>> this article to this message buffer"?
>>
>> That is exactly what I tried to do before punting and attaching by
>> article number - I wanted something along the line of gnus-dired.
>> Unfortunately that is beyond my level of lisp-fu.
>
> Could you report this as a wishlist bug report, and I'll take a crack at
> it later some time...

OK.  How do I do that?  M-x gnus-bug or someplace else?

Thanks,

-- 
Dave Goldberg
david.goldberg6@verizon.net



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

* Re: forward/insert a message in a reply message buffer
  2015-01-28  2:20       ` Dave Goldberg
@ 2015-01-29  2:22         ` Lars Ingebrigtsen
  2015-01-31 16:47           ` Dave Goldberg
  0 siblings, 1 reply; 9+ messages in thread
From: Lars Ingebrigtsen @ 2015-01-29  2:22 UTC (permalink / raw)
  To: Dave Goldberg; +Cc: ding

david.goldberg6@verizon.net (Dave Goldberg) writes:

>> Or, perhaps, there should be a command to do this the other way?  Where
>> you select an article in a group, and then there's a command "attach
>> this article to this message buffer"?
>
> That is exactly what I tried to do before punting and attaching by
> article number - I wanted something along the line of gnus-dired.
> Unfortunately that is beyond my level of lisp-fu.

Could you report this as a wishlist bug report, and I'll take a crack at
it later some time...

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



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

* Re: forward/insert a message in a reply message buffer
  2015-01-27  5:20     ` Lars Ingebrigtsen
@ 2015-01-28  2:20       ` Dave Goldberg
  2015-01-29  2:22         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Dave Goldberg @ 2015-01-28  2:20 UTC (permalink / raw)
  To: ding

> Uwe Brauer <oub@mat.ucm.es> writes:
>
>>    > I'm pretty sure I've posted this before. It's very klunky. Only
>>    > tested with nnimap and nnml. It requires knowing the message number
>>    > (not message-id) which I solve by displaying it with %N in my
>>    > customized gnus-summary-line-format.

Hmmm, that looks very familiar ....

>>
>> This is awesome, thanks very much. :-D :-D
>> Lars: couldn't this be included in gnus mainstream?
>
> Having to type the message number makes it rather awkward to use, I
> think... 
>
>> However, just one observation, could this function use marked-messages
>> instead of the message number which would make it more comfortable?
>
> Or, perhaps, there should be a command to do this the other way?  Where
> you select an article in a group, and then there's a command "attach
> this article to this message buffer"?

That is exactly what I tried to do before punting and attaching by article number - I wanted something along the line of gnus-dired.  Unfortunately that is beyond my level of lisp-fu.

-- 
Dave Goldberg
david.goldberg6@verizon.net



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

* Re: forward/insert a message in a reply message buffer
  2014-09-05 11:57   ` Uwe Brauer
@ 2015-01-27  5:20     ` Lars Ingebrigtsen
  2015-01-28  2:20       ` Dave Goldberg
  0 siblings, 1 reply; 9+ messages in thread
From: Lars Ingebrigtsen @ 2015-01-27  5:20 UTC (permalink / raw)
  To: ding

Uwe Brauer <oub@mat.ucm.es> writes:

>    > I'm pretty sure I've posted this before. It's very klunky. Only
>    > tested with nnimap and nnml. It requires knowing the message number
>    > (not message-id) which I solve by displaying it with %N in my
>    > customized gnus-summary-line-format.
>
> This is awesome, thanks very much. :-D :-D
> Lars: couldn't this be included in gnus mainstream?

Having to type the message number makes it rather awkward to use, I
think... 

> However, just one observation, could this function use marked-messages
> instead of the message number which would make it more comfortable?

Or, perhaps, there should be a command to do this the other way?  Where
you select an article in a group, and then there's a command "attach
this article to this message buffer"?

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



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

* Re: forward/insert a message in a reply message buffer
  2014-09-05  2:03 ` Dave Goldberg
@ 2014-09-05 11:57   ` Uwe Brauer
  2015-01-27  5:20     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Uwe Brauer @ 2014-09-05 11:57 UTC (permalink / raw)
  To: ding








   > I'm pretty sure I've posted this before. It's very klunky. Only
   > tested with nnimap and nnml. It requires knowing the message number
   > (not message-id) which I solve by displaying it with %N in my
   > customized gnus-summary-line-format.


This is awesome, thanks very much. :-D :-D
Lars: couldn't this be included in gnus mainstream?

I have a similar setting for gnus-summary-line-format, so I am used to
it.

However, just one observation, could this function use marked-messages
instead of the message number which would make it more comfortable?

BTW how is gnus-active-hashtb computed, because in my case it refers
also to some old imap setting I am not using anymore.

Uwe 




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

* Re: forward/insert a message in a reply message buffer
  2014-09-04 12:35 Uwe Brauer
@ 2014-09-05  2:03 ` Dave Goldberg
  2014-09-05 11:57   ` Uwe Brauer
  0 siblings, 1 reply; 9+ messages in thread
From: Dave Goldberg @ 2014-09-05  2:03 UTC (permalink / raw)
  To: ding


> Hello
> I asked this some time ago, but I am not sure whether the following
> feature has been implemented:
> in a reply/followup buffer I want to insert/forward a message from any
> other group something like 

> For example: 


> (insert-or-attach-or-forward 
> "Message-ID:
> <CAMErEMjN_Thvq0X4jdRYw2-B02HSrGGJX3LTZJcRwhKPgun=sw@mail.gmail.com>
> Group: nnimap+UCMgmail:INBOX")


> Maybe orgmode has some functionality of this sort?

I'm pretty sure I've posted this before.  It's very klunky.  Only tested with nnimap and nnml.  It requires knowing the message number (not message-id) which I solve by displaying it with %N in my customized gnus-summary-line-format.

(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")))


-- 
Dave Goldberg
david.goldberg6@verizon.net



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

* forward/insert a message in a reply message buffer
@ 2014-09-04 12:35 Uwe Brauer
  2014-09-05  2:03 ` Dave Goldberg
  0 siblings, 1 reply; 9+ messages in thread
From: Uwe Brauer @ 2014-09-04 12:35 UTC (permalink / raw)
  To: ding

Hello

I asked this some time ago, but I am not sure whether the following
feature has been implemented:
in a reply/followup buffer I want to insert/forward a message from any
other group something like 

For example: 


(insert-or-attach-or-forward 
"Message-ID: <CAMErEMjN_Thvq0X4jdRYw2-B02HSrGGJX3LTZJcRwhKPgun=sw@mail.gmail.com> Group: nnimap+UCMgmail:INBOX")


Maybe orgmode has some functionality of this sort?

Uwe Brauer 




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

end of thread, other threads:[~2018-02-28  9:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-28  9:23 forward/insert a message in a reply message buffer Uwe Brauer
  -- strict thread matches above, loose matches on Subject: below --
2014-09-04 12:35 Uwe Brauer
2014-09-05  2:03 ` Dave Goldberg
2014-09-05 11:57   ` Uwe Brauer
2015-01-27  5:20     ` Lars Ingebrigtsen
2015-01-28  2:20       ` Dave Goldberg
2015-01-29  2:22         ` Lars Ingebrigtsen
2015-01-31 16:47           ` Dave Goldberg
2015-02-05  3:37             ` Lars 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).