From 2d14c35371483621691ade4d71d16e3ea5e82a9b Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 24 Mar 2016 11:06:41 +0000 Subject: [PATCH] dot/emacs: Squash away `blah+...@some.domain' suffixes for BBDB. Some people have far too many suffixes. --- dot/emacs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dot/emacs b/dot/emacs index fe857bc..31cfd15 100644 --- a/dot/emacs +++ b/dot/emacs @@ -213,6 +213,8 @@ "\\)") addr) (concat "submit@bugs." (match-string 1 addr))) + ((string-match "^\\([^@+]+\\)\\+[^@]*\\(@.*\\)$" addr) + (concat (match-string 1 addr) (match-string 2 addr))) (t addr)))) ;; Customization. -- 2.11.0