From 4a9e20a56b509e5cff77b56716baa67343daa9a9 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 2 Jun 2000 02:48:08 +0000 Subject: [PATCH] Show "text/plain" entities regardless of character set. There are some pretty broken mailers out there (e.g. Outlook Express) that claim random character sets when they should be claiming "us-ascii". --- v7/src/imail/imail-top.scm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/v7/src/imail/imail-top.scm b/v7/src/imail/imail-top.scm index 5f0d027a9..8e35d5a49 100644 --- a/v7/src/imail/imail-top.scm +++ b/v7/src/imail/imail-top.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: imail-top.scm,v 1.118 2000/06/02 02:25:36 cph Exp $ +;;; $Id: imail-top.scm,v 1.119 2000/06/02 02:48:08 cph Exp $ ;;; ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology ;;; @@ -781,13 +781,14 @@ With prefix argument N moves backward N messages with these flags." (if (null? selector) (message-body message) (message-mime-body-part message selector)))) - (if (let ((charset - (let ((entry (assq 'CHARSET (mime-body-parameters body)))) - (if entry - (cdr entry) - "us-ascii")))) - (or (string-ci=? charset "us-ascii") - (re-string-match "\\`iso-8859-[0-9]+\\'" charset #t))) + (if (or (eq? (mime-body-subtype body) 'PLAIN) + (let ((charset + (let ((entry (assq 'CHARSET (mime-body-parameters body)))) + (if entry + (cdr entry) + "us-ascii")))) + (or (string-ci=? charset "us-ascii") + (re-string-match "\\`iso-8859-[0-9]+\\'" charset #t)))) (begin (case (mime-body-one-part-encoding body) ((QUOTED-PRINTABLE) -- 2.25.1