From: Mark Wooding Date: Thu, 24 Mar 2016 11:06:41 +0000 (+0000) Subject: dot/emacs (bbdb-canonicalize-net-hook): Ignore a personal address scheme. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/0612a9149d46df422e11410d8ada66b78d3fe5d3?ds=sidebyside dot/emacs (bbdb-canonicalize-net-hook): Ignore a personal address scheme. 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. --- 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)))