Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: sigurd@12move.de (Karl Pflästerer)
Subject: Re: Making a shortcut for Reply-To
Date: Sun, 02 Mar 2003 18:15:15 +0100	[thread overview]
Message-ID: <m31y1plmnr.fsf@hamster.pflaesterer.de> (raw)
In-Reply-To: <u0lwujhda3z.fsf@durin.imf.au.dk>

On 02 Mar 2003, Rasmus Villemoes <- burner+usenet@imf.au.dk wrote:

> In my .gnus I have some mail-splitting methods which depend on the
> content of the line To: (ie. ("Tutor"
> "^To:.*tutor+.*@\\|^Cc:.*tutor+.*@") ). When writing a mail, I often
> use C-c C-f C-r to add a Reply-To -address, and then type in some
> e-mail-alias, such that replies get sorted into the right folder. Now
> I would like some kind of shortcut key (possibly C-c C-f C-R) to an
> interactive command, which prompts for an integer, and then inserts the
> corresponding (predefined) e-mail-adress in the Reply-To field of the
> header. I suppose all this should be defined in my .gnus, but I have
> no idea how to do it. Does anybody have any suggestions?

Here is a possibility, it doesn't ask for an integer but allows you to
scroll through a list of addresses. Maybe you like it. If you prefer a
solution with an integer perhaps you enter the integer and use it as a
key in an alist.


(defun  rv-reply-to ()
  (interactive)
  (message-goto-reply-to)
  (insert
   (let ((addresses
	  (list
	   "adress1"
	   "adress2"
	   "address3")))
     (completing-read "Reply-To?-> " addresses nil nil
		      (car addresses) '(addresses . 1)))))

bye
   KP

-- 
"But it has nothing to do with what a _value_ is.  This has to do with
whether you pass whatever-a-value-is or wherever-whatever-is-a-value-is
whenever you pass an argument to a function.  (Call it the Shakira
theory. :)"       [Erik Naggum in cll über call-by-value und call-by-reference]


           reply	other threads:[~2003-03-02 17:15 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <u0lwujhda3z.fsf@durin.imf.au.dk>]

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=m31y1plmnr.fsf@hamster.pflaesterer.de \
    --to=sigurd@12move.de \
    /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).