Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: jidanni@jidanni.org
Cc: ding@gnus.org
Subject: Re: How to strip names out of To: and CC:
Date: Wed, 19 Mar 2008 17:46:05 +0100	[thread overview]
Message-ID: <v9iqzifyr6.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <878x58p09y.fsf@jidanni.org> (jidanni@jidanni.org's message of "Fri, 09 Nov 2007 11:26:17 +0800")

On Fri, Nov 09 2007, jidanni@jidanni.org wrote:
> Dear Gnus Pals: I have changed the function message-get-reply-headers.
> I have put the new version, all 200+ lines of it, in my .gnus.el file.
>
> ;;jidanni changed
> ;;	       (cons (downcase (mail-strip-quoted-names addr)) addr))
> ;;to
> 	       (cons (downcase (mail-strip-quoted-names addr))
> 		     (downcase (mail-strip-quoted-names addr))))
> ;;to avoid looking like a fool, even more consistantly than
> ;;mail-extr-ignore-realname-equals-mailbox-name and
> ;;mail-extr-ignore-single-names could, before gnus ignored them anyway
>
> Of course you, the authors, could kindly add one little variable, say
> message-austere-to-cc-reply, to toggle so we can avoid having to
> redefine the whole hundreds line function.
>
> No, this one line change cannot be done with one line in some hook, so
> forget that.

On Fri, Nov 09 2007, jidanni@jidanni.org wrote:
> Indeed, here lies your opportunity to end the embarrassment of
> To: "d@d.d" <d@d.d>
> which many of you seem to think looks just fine in one's outbound mail.

Should be possible with the CVS version now:

2008-03-19  Reiner Steib  <Reiner.Steib@gmx.de>

	* message.el (message-alter-recipients-discard-bogus-full-name): New
	function.
	(message-alter-recipients-function): New variable.
	(message-get-reply-headers): Use it.

,----[ <f1> v message-alter-recipients-function RET ]
| message-alter-recipients-function is a variable defined in `message.el'.
| Its value is message-alter-recipients-discard-bogus-full-name
| 
| Documentation:
| Function called to allow alteration of reply header structures.
| It is called in `message-get-reply-headers' for each recipient.
| The function is called with one parameter, a cons cell ...
| 
| You can customize this variable.
`----

,----[ <f1> f message-alter-recipients-discard-bogus-full-name RET ]
| message-alter-recipients-discard-bogus-full-name is a Lisp function
| in `message.el'.
| (message-alter-recipients-discard-bogus-full-name addrcell)
| 
| Discard mail address in full names.
| When the full name in reply headers contains the mail
| address (e.g. "foo@bar <foo@bar>"), discard full name.
| addrcell is a cons cell where the car is the mail address and the
| cdr is the complete address (full name and mail address).
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



  parent reply	other threads:[~2008-03-19 16:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-09  3:26 jidanni
2007-11-09 17:54 ` jidanni
2008-03-19 16:46 ` Reiner Steib [this message]
2008-03-21  3:16   ` jidanni
2008-03-21  7:35     ` Reiner Steib
2010-02-03  3:02       ` jidanni
2010-02-03 19:25         ` jidanni
2010-02-03 19:48           ` Reiner Steib
2010-02-03 20:15             ` jidanni
  -- strict thread matches above, loose matches on Subject: below --
2007-10-18 17:42 jidanni
2007-10-18 18:53 ` Reiner Steib
2007-10-20 19:30   ` jidanni
2007-10-21  5:54     ` Daniel Pittman
2007-10-24 18:52       ` jidanni
2007-10-24 20:03         ` Reiner Steib
2007-10-24 22:06           ` jidanni
2007-10-24 23:16             ` Bastien
2007-10-24 23:25               ` jidanni

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=v9iqzifyr6.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=ding@gnus.org \
    --cc=jidanni@jidanni.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).