chiark / gitweb /
dot/emacs (bbdb-canonicalize-net-hook): Handle `nil' address.
[profile] / dot / emacs
index 13ac888936c23fbc947306447cf3c0b6c90dd3e4..afb08bdf4be21b053732a6bfbf28c81808ae2a7e 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
              "\\)$")
       bbdb-canonicalize-net-hook
       (lambda (addr)
-       (cond ((string-match (concat "^reply-[0-9a-f]+-[0-9a-f]+_"
+       (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)