X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-lib.el;h=d315f7656e9bc4a004575faa14be386a858cdb83;hb=3557acab6419c7b9ad9a19c5eb6c305b1184bcf8;hp=c906ca76eda2f9e21e9b423e05debf6c53f7ba01;hpb=bc267b70b01c79f6bdda52641e9cd7574a151eff;p=notmuch diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index c906ca76..d315f765 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -133,6 +133,15 @@ the user hasn't set this variable with the old or new value." (interactive) (kill-buffer (current-buffer))) +(defun notmuch-prettify-subject (subject) + ;; This function is used by `notmuch-search-process-filter' which + ;; requires that we not disrupt its' matching state. + (save-match-data + (if (and subject + (string-match "^[ \t]*$" subject)) + "[No Subject]" + subject))) + ;; (defun notmuch-common-do-stash (text)