Address parsing fixup
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 7 Feb 2014 00:13:55 +0000 (16:13 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 7 Feb 2014 00:14:09 +0000 (16:14 -0800)
* ietf-drums.el (ietf-drums-parse-address): Don't bug out when called
with an empty string.

lisp/ChangeLog
lisp/ietf-drums.el

index 06f9e27..e6f22e4 100644 (file)
@@ -1,3 +1,8 @@
+2014-02-07  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * ietf-drums.el (ietf-drums-parse-address): Don't bug out when called
+       with an empty string.
+
 2014-02-06  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-msg.el (gnus-summary-cancel-article): `user-mail-address' is
index d46f288..1121368 100644 (file)
@@ -214,7 +214,8 @@ backslash and doublequote.")
                (mapconcat 'identity (reverse display-name) " "))
        (setq display-string (ietf-drums-get-comment string)))
       (if (not mailbox)
-         (when (string-match "@" display-string)
+         (when (and display-string
+                    (string-match "@" display-string))
            (cons
             (mapconcat 'identity (nreverse display-name) "")
             (ietf-drums-get-comment string)))