Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: David S Goldberg <david.goldberg6@verizon.net>
Subject: Re: Attach messages from other groups
Date: Wed, 24 Jul 2002 16:18:13 -0400	[thread overview]
Message-ID: <u8zadogg9ru.fsf@blackbird-2k.MITRE.ORG> (raw)
In-Reply-To: <v9heiorjmv.fsf@marauder.physik.uni-ulm.de>

I use this with nnimap.  It's klunky in that it requires I know the
article number I want.  I very often use it by starting a gnus-slave,
finding what I want (sometimes with nnir) and then running it.
Ideally, it would be more general with respect to back ends and
present you with a group buffer that you could search for the article
you want to attach.  But I'm neither skilled enough in lisp nor
motivated enough to take it to that level.

(defun dsg-nnimap-insert-article (group message)
  (interactive
   (list (completing-read
	  "Group: " gnus-active-hashtb nil
	  (gnus-read-active-file-p)
	  nil
	  'gnus-group-history)
	 (read-number "Message: " t)))
  (let ((tmp (get-buffer-create (generate-new-buffer-name "*DSGTMP*"))))
    (nnimap-request-article message
			    (gnus-group-real-name group)
			    (nth 1 (gnus-group-method group))
			    tmp)
    (mml-attach-buffer (buffer-name tmp) "message/rfc822")))

-- 
Dave Goldberg
david.goldberg6@verizon.net


      parent reply	other threads:[~2002-07-24 20:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-24  7:31 Nicolas Kowalski
     [not found] ` <v9sn29rwg7.fsf@marauder.physik.uni-ulm.de>
     [not found]   ` <vqo65z5nk1m.fsf@imag.fr>
2002-07-24 17:20     ` Josh Huber
     [not found]       ` <v9heiorjmv.fsf@marauder.physik.uni-ulm.de>
2002-07-24 20:15         ` Josh Huber
2002-07-24 20:18         ` David S Goldberg [this message]

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=u8zadogg9ru.fsf@blackbird-2k.MITRE.ORG \
    --to=david.goldberg6@verizon.net \
    /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).