unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] Look for text/html content types ignoring case
@ 2010-02-16 18:51 James Westby
  2010-02-16 19:11 ` David Edmondson
  0 siblings, 1 reply; 5+ messages in thread
From: James Westby @ 2010-02-16 18:51 UTC (permalink / raw)
  To: notmuch

Some people send html parts as text/HTML or similar, so do a
case-sensitive comparison when checking for html parts.
---
 notmuch.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index 0f4ea10..b69c334 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -736,7 +736,7 @@ is what to put on the button."
             (setq mime-type (car (split-string (buffer-substring 
                                                 (match-beginning 1) (match-end 1))))))
 
-          (if (equal mime-type "text/html")
+          (if (equal (downcase mime-type) "text/html")
               (let ((filename (notmuch-show-get-filename)))
                 (with-temp-buffer
                   (insert-file-contents filename nil nil nil t)
-- 
1.6.6.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-19 15:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16 18:51 [PATCH] Look for text/html content types ignoring case James Westby
2010-02-16 19:11 ` David Edmondson
2010-02-18 17:29   ` James Westby
2010-02-19  8:32     ` David Edmondson
2010-02-19 15:06       ` James Westby

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).