aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Clements <amdragon@MIT.EDU>2014-02-20 14:16:36 -0500
committerDavid Bremner <david@tethera.net>2014-02-22 19:51:13 -0400
commit4b2ec627eb9e04d1deffe31b0f2ec95c6b29096a (patch)
treeb3e5bfdbff3bcfe95fa90cbec781ac9cb57dbd45
parent4b734374fb2e26ef54414c8f0b933271fdf58c3b (diff)
emacs: Fix `notmuch-user-other-email' when no other emails are configured
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.
-rw-r--r--emacs/notmuch-lib.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index 09110b53..2fefdadc 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -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.