X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-lib.el;h=d315f7656e9bc4a004575faa14be386a858cdb83;hp=c906ca76eda2f9e21e9b423e05debf6c53f7ba01;hb=6bd3d8af5431542f352f084b6366e88b98b019a1;hpb=e516a712bb79e523629012ee6a8325f5166b4ee5 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)