From 0612a9149d46df422e11410d8ada66b78d3fe5d3 Mon Sep 17 00:00:00 2001 Message-Id: <0612a9149d46df422e11410d8ada66b78d3fe5d3.1717846544.git.mdw@distorted.org.uk> From: Mark Wooding Date: Thu, 24 Mar 2016 11:06:41 +0000 Subject: [PATCH] dot/emacs (bbdb-canonicalize-net-hook): Ignore a personal address scheme. Organization: Straylight/Edgeware From: Mark Wooding A friend uses email addresses of the form `newsNN@SOME.DOMAIN' in Usenet articles. Ignore these, but don't leak what the domain name actually is. --- dot/emacs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dot/emacs b/dot/emacs index f8a0a2a..b03ff68 100644 --- a/dot/emacs +++ b/dot/emacs @@ -222,7 +222,10 @@ "\\(" "debian\\.org" "\\|" "distorted\\.org\\.uk" "\\)$") - addr)) + addr) + (and (string-match "^news\\([0-9]+\\)@\\(.*\\)$" addr) + (string= (md5 (match-string 2 addr)) + "879b795aed959b1a000e9f95c132b16c"))) nil) ((string-match "^\\([^@+]+\\)\\+[^@]*\\(@.*\\)$" addr) (concat (match-string 1 addr) (match-string 2 addr))) -- [mdw]