X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.el;h=5fc38bf711682cf7d016f0fc4a42e0e35d8e7eb9;hp=0f4ea1076758f4ae26cf030dd464daa8ae011338;hb=becdb42b1f660950f1d755ba2d96ff403e995671;hpb=7e3b416153b0d621afba72f88c6ea926dc9d238c diff --git a/notmuch.el b/notmuch.el index 0f4ea107..5fc38bf7 100644 --- a/notmuch.el +++ b/notmuch.el @@ -733,7 +733,7 @@ is what to put on the button." (let (mime-message mime-type) (save-excursion (re-search-forward notmuch-show-contentype-regexp end t) - (setq mime-type (car (split-string (buffer-substring + (setq mime-type (car (split-string (buffer-substring (match-beginning 1) (match-end 1)))))) (if (equal mime-type "text/html")