]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch.el
emacs: Sanitize authors and subjects in search and show
[notmuch] / emacs / notmuch.el
index 6081245560134446ea362b686b1dec17bafec481..d0cd9061ac338ff563f78059d1c8466765fe0ed3 100644 (file)
@@ -811,11 +811,13 @@ non-authors is found, assume that all of the authors match."
                                        (plist-get result :total)))
                        'face 'notmuch-search-count)))
    ((string-equal field "subject")
-    (insert (propertize (format format-string (plist-get result :subject))
+    (insert (propertize (format format-string
+                               (notmuch-sanitize (plist-get result :subject)))
                        'face 'notmuch-search-subject)))
 
    ((string-equal field "authors")
-    (notmuch-search-insert-authors format-string (plist-get result :authors)))
+    (notmuch-search-insert-authors
+     format-string (notmuch-sanitize (plist-get result :authors))))
 
    ((string-equal field "tags")
     (let ((tags (plist-get result :tags)))