Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Slackrat <gnus4Q@azurservers.com>
To: info-gnus-english@gnu.org
Subject: Re: hiding some of address
Date: Thu, 01 Nov 2007 08:09:36 +0100	[thread overview]
Message-ID: <87ve8mo30v.fsf@azurservers.com> (raw)
In-Reply-To: <mailman.2820.1193873148.18990.info-gnus-english@gnu.org>

* Sebastian Tennant ***@smolny.plus.com> a écrit profondement:
|
| Quoth Slackrat <gnus4Q@azurservers.com>:
| > and it produces this
| >
| > * "William Witteman" <william.ohiggins@utoronto.ca> a écrit  profondement:
| >
| > But I would like it to omit the email address
| > <william.ohiggins@utoronto.ca> entirely or alternatively insert say
| > three asterisks before the "@" in the email address as I have seen
| > others do.
| 
| This will obscure the local part with three asterixes in most cases.
| 
|  (defun my-insert-citation-line ()
|    (when message-reply-headers
|      (let* ((unobscured (mail-header-from message-reply-headers))
|             (i (or (string-match " [<[(]?[A-z0-9_-.]+@" unobscured) -1))
|             (j (string-match "@" unobscured))
|             (obscured (concat (substring unobscured 0 (+ i 1))
|                               "***"
|                               (substring unobscured j))))
|        (insert "* " obscured " a écrit profondement:\n|\n"))))
| 
|  ;;; these are not part of the function definite above
|  (setq message-citation-line-function 'my-insert-citation-line)
|  (setq message-yank-prefix "| ")
|  (setq message-yank-cited-prefix "| ")
| 
| Hope it helps.  I haven't tested it extensively.

Thanks, it works great - mostly

But try replying to the following message which has 2 * "@" in it

R   [11-01 00:25]   ["Mark Atwood    ] Problem with nnmail-split-methods

and which has this from line 

From:  "Mark Atwood <me@mark.atwood.name>" <fallenpegasus@gmail.com>

and you get 

* "Mark Atwood ***@mark.atwood.name>" <fallenpegasus@gmail.com> a écrit profondement:


-- 
SlackRat - 4Q to Reply

  parent reply	other threads:[~2007-11-01  7:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31 17:23 Slackrat
2007-10-31 22:08 ` Reiner Steib
2007-10-31 23:35   ` Sebastian Tennant
2007-11-01  8:36     ` Reiner Steib
2007-11-01 10:52       ` Sebastian Tennant
2007-10-31 23:25 ` Sebastian Tennant
     [not found] ` <mailman.2820.1193873148.18990.info-gnus-english@gnu.org>
2007-11-01  7:09   ` Slackrat [this message]
2007-11-01 10:45     ` Sebastian Tennant

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=87ve8mo30v.fsf@azurservers.com \
    --to=gnus4q@azurservers.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).