]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: Fix `notmuch-user-other-email' when no other emails are configured
authorAustin Clements <amdragon@MIT.EDU>
Thu, 20 Feb 2014 19:16:36 +0000 (14:16 -0500)
committerDavid Bremner <david@tethera.net>
Sat, 22 Feb 2014 23:51:13 +0000 (19:51 -0400)
Thanks to the previous patch, this no longer crashes in this
situation, but now would return ("").  Fix it to return () when no
emails are configured.

emacs/notmuch-lib.el

index 09110b5382c6bd024dd0091aad20ef662b4416a3..2fefdadc4e19e17b6f79f0b5b1c1e5350bbe226f 100644 (file)
@@ -220,7 +220,7 @@ on the command line, and then retry your notmuch command")))
 
 (defun notmuch-user-other-email ()
   "Return the user.other_email value (as a list) from the notmuch configuration."
-  (split-string (notmuch-config-get "user.other_email") "\n"))
+  (split-string (notmuch-config-get "user.other_email") "\n" t))
 
 (defun notmuch-poll ()
   "Run \"notmuch new\" or an external script to import mail.