From 78181e4b5f9a1cc51073a49c7ed3fc26e9b89689 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 12 Nov 2018 16:45:50 +0100 Subject: [PATCH] Add double-quotes around person name The double-quotes are important when sending an email in case the person name contains a comma. --- khardel.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/khardel.el b/khardel.el index 2090ea6..381b5bd 100644 --- a/khardel.el +++ b/khardel.el @@ -61,7 +61,7 @@ (goto-char (point-min)) (cl-loop while (re-search-forward "^\\([^\t\n]*\\)\t\\([^\t\n]*\\)\t.*$" nil t) - collect (format "%s <%s>" (match-string 2) (match-string 1)))))) + collect (format "\"%s\" <%s>" (match-string 2) (match-string 1)))))) (defun khardel--list-emails () "Return a list of strings of the form \"Name \"."