X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-lib.el;h=a754de77ce00689be5050836883eddfe3ccac70b;hb=f57ef643026540d6eb20179ccc92e54445a9d21a;hp=c146748ac2935206377a8418bfc6a5cf5b105fd2;hpb=650123510cfa64caf6b20f5239f43433fa6f2941;p=notmuch diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index c146748a..a754de77 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -185,8 +185,9 @@ the user hasn't set this variable with the old or new value." (st2 (notmuch-split-content-type t2))) (if (or (string= (cadr st1) "*") (string= (cadr st2) "*")) - (string= (car st1) (car st2)) - (string= t1 t2)))) + ;; Comparison of content types should be case insensitive. + (string= (downcase (car st1)) (downcase (car st2))) + (string= (downcase t1) (downcase t2))))) (defvar notmuch-multipart/alternative-discouraged '(