Browse Source

Add double-quotes around person name

The double-quotes are important when sending an email in case the
person name contains a comma.
tags/v0.2.0
Damien Cassou 1 year ago
parent
commit
78181e4b5f
Signed by: Damien Cassou <damien@cassou.me> GPG Key ID: B68746238E59B548
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      khardel.el

+ 1
- 1
khardel.el View File

@@ -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 <email>\"."

Loading…
Cancel
Save