X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-mua.el;h=dc1f518caf03c784b134cf6728ae04ac7a068e14;hp=f6d8ffc55ca9de4abec415fa088ffc46910843fb;hb=09f6533c3781b61ea634790d4bad38aadf89115c;hpb=dfb1b8eb89e814f4bf6f6e62b700c72aa1b4659a diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index f6d8ffc5..dc1f518c 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -198,7 +198,7 @@ Typically this is added to `notmuch-mua-send-hook'." (defun notmuch-mua-add-more-hidden-headers () "Add some headers to the list that are hidden by default." (mapc (lambda (header) - (when (not (member header message-hidden-headers)) + (unless (member header message-hidden-headers) (push header message-hidden-headers))) notmuch-mua-hidden-headers)) @@ -368,7 +368,7 @@ modified. This function is notmuch addaptation of (interactive) (when notmuch-mua-user-agent-function (let ((user-agent (funcall notmuch-mua-user-agent-function))) - (when (not (string= "" user-agent)) + (unless (string= "" user-agent) (push (cons 'User-Agent user-agent) other-headers)))) (unless (assq 'From other-headers) (push (cons 'From (message-make-from