X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-lib.el;h=2c8de32868018529c50567f068050b539e39736a;hb=dff7f06711dba1c2d6a84d3e76021da0bf606623;hp=61107e387a3f2382517ad5282311dc5cd0ea51fd;hpb=4f57e018431eefadda0157db05c7d84ead1bb1ae;p=notmuch diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 61107e38..2c8de328 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -534,14 +534,10 @@ This replaces spaces, percents, and double quotes in STR with (setq pred (cddr pred))) (cdr xplist))) -(defun notmuch-split-content-type (content-type) - "Split content/type into 'content' and 'type'." - (split-string content-type "/")) - (defun notmuch-match-content-type (t1 t2) "Return t if t1 and t2 are matching content types, taking wildcards into account." - (let ((st1 (notmuch-split-content-type t1)) - (st2 (notmuch-split-content-type t2))) + (let ((st1 (split-string t1 "/")) + (st2 (split-string t2 "/"))) (if (or (string= (cadr st1) "*") (string= (cadr st2) "*")) ;; Comparison of content types should be case insensitive.