Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: imputerate <imputerate@gmail.com>
To: info-gnus-english@gnu.org
Subject: remove sender name from alternative "Reply-To"
Date: Thu, 18 Oct 2007 20:46:52 -0000	[thread overview]
Message-ID: <1192740412.389313.59350@i13g2000prf.googlegroups.com> (raw)

i have this
in .gnus.el:

-------------
snip------------------
(setq user-full-name "peter
hodgson")
------------------
snip-----------
(defun rs-message-replace-header (header new-
value)
  "Remove HEADER and insert the NEW-
VALUE."
  ;; Similar to `nnheader-replace-header' but for message
buffers.
  (save-
excursion
    (save-
restriction
      (message-narrow-to-
headers)
      (message-remove-header
header))
    (message-position-on-field
header)
    (insert new-
value)))

(defun rs-message-change-address (from reply-
to)
  "Change FROM and REPLY-
TO."
 
(interactive)
  (rs-message-replace-header "Reply-
To"
                             (format "%s (%s)" reply-to user-full-
name))
  (rs-message-replace-header
"From"
                             (format "%s (%s)" from user-full-
name)))

(define-key message-mode-map (kbd "C-c a
1")
  (lambda
()
 
(interactive)
;;    (rs-message-change-address
"myfrom-1@invalid"
"replyto-1@invalid")))
  (rs-message-change-address ""
"imputerate@puteracy.com")))
----------------------
snip------------

When i type `C-c a 1' i get this in the
header:

"Reply-To: imputerate@puteracy.com (peter
hodgson)"

How can i get rid of the "(peter hodgson)" part?

                 reply	other threads:[~2007-10-18 20:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1192740412.389313.59350@i13g2000prf.googlegroups.com \
    --to=imputerate@gmail.com \
    --cc=info-gnus-english@gnu.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).