Rather than trying to transform them into something apparently innocent,
just ignore uninteresting addresses like bug lists.
(lambda (addr)
(cond ((null addr)
nil)
(lambda (addr)
(cond ((null addr)
nil)
- ((string-match (concat "^reply-[0-9a-f]+-[0-9a-f]+_"
- "HTML-[0-9]+-[0-9]+-[0-9]+"
- "@\\(nationwide-communications\\.co\\.uk\\)")
- addr)
- (concat "nationwide@" (match-string 1 addr)))
- ((string-match (concat "^[0-9]+@bugs\\."
- "\\(" "debian\\.org"
- "\\|" "distorted\\.org\\.uk"
- "\\)")
- addr)
- (concat "submit@bugs." (match-string 1 addr)))
+ ((or (string-match (concat "^reply-[0-9a-f]+-[0-9a-f]+_"
+ "HTML-[0-9]+-[0-9]+-[0-9]+"
+ "@\\(nationwide-communications\\."
+ "co\\.uk\\)$")
+ addr)
+ (string-match (concat "^[0-9]+@bugs\\."
+ "\\(" "debian\\.org"
+ "\\|" "distorted\\.org\\.uk"
+ "\\)$")
+ addr))
+ nil)
((string-match "^\\([^@+]+\\)\\+[^@]*\\(@.*\\)$" addr)
(concat (match-string 1 addr) (match-string 2 addr)))
(t addr))))
((string-match "^\\([^@+]+\\)\\+[^@]*\\(@.*\\)$" addr)
(concat (match-string 1 addr) (match-string 2 addr)))
(t addr))))