From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/22744 Path: main.gmane.org!not-for-mail From: Colin Rafferty Newsgroups: gmane.emacs.gnus.general Subject: [patch] choose best looking alternative Date: 22 Apr 1999 11:30:37 -0400 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035160608 30921 80.91.224.250 (21 Oct 2002 00:36:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:36:48 +0000 (UTC) Keywords: text,handles,type,seq,reverse,plain,order,mm-decode Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA19649 for ; Thu, 22 Apr 1999 11:32:22 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB28884; Thu, 22 Apr 1999 10:31:23 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 22 Apr 1999 10:31:56 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id KAA05347 for ; Thu, 22 Apr 1999 10:31:46 -0500 (CDT) Original-Received: from piinbh2.ms.com (firewall-user@piinbh2.ms.com [199.89.64.72]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA19631 for ; Thu, 22 Apr 1999 11:31:38 -0400 (EDT) Original-Received: (from uucp@localhost) by piinbh2.ms.com (8.8.6/fw v1.22) id LAA07309 for ; Thu, 22 Apr 1999 11:31:00 -0400 (EDT) Original-Received: from unknown(144.14.9.190) by piinbh2.ms.com via smap (4.1) id xma006661; Thu, 22 Apr 99 11:30:39 -0400 Original-Received: from sag3 (sag3.morgan.com [144.14.8.198]) by safid1.morgan.com (8.8.5/hub+ldap v2.3) with ESMTP id LAA11451 for ; Thu, 22 Apr 1999 11:30:38 -0400 (EDT) Original-Received: (craffert@localhost) by sag3 (950413.SGI.8.6.12/sendmail.cf.client v1.05) id LAA29456; Thu, 22 Apr 1999 11:30:37 -0400 Original-To: GNUS Mailing List Mail-Copies-To: never X-Attribution: > X-Face: D>:hrrB{l6#\wU;)0R:OHSTA@ayd.Oq?s@Rrc;[+z0m+<-U"$G-J6L)F2QY`qK~uPu!s1(6{\#uy!Ag/D)?'L[}xErXvxoPn8T_hKi{M]/(`BF{e}X7;hby`p\.E$rJ}Aff#BT,rdDIw\y X-Y-Zippy: Am I in GRADUATE SCHOOL yet? Original-Lines: 43 User-Agent: Gnus/5.070083 (Pterodactyl Gnus v0.83) XEmacs/21.2(beta13) (Demeter) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:22744 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:22744 --=-=-= According to some RFC, a multipart/alternative is supposed to be in order of human readable, and reverse order of prettiness when displayed. I just upgraded from 0.80 to 0.83, and the implied precedence order was is reversed. --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= An example is this line. It *should* be in text/enriched, but it's in text/plain. --==-=-= Content-Type: text/enriched An example is this line. It should be in text/enriched, but it's in text/plain. --==-=-=-- --=-=-= Anyway, here is the patch: 1999-04-22 Colin Rafferty * mm-decode.el (mm-preferred-alternative-precedence): Later handles are nicer than earlier handles. --- mm-decode.el~ Sun Apr 18 08:44:10 1999 +++ mm-decode.el Thu Apr 22 11:10:19 1999 @@ -586,7 +586,7 @@ (defun mm-preferred-alternative-precedence (handles) "Return the precedence based on HANDLES and mm-discouraged-alternatives." - (let ((seq (mapcar (lambda (h) (car (mm-handle-type h))) handles))) + (let ((seq (mapcar (lambda (h) (car (mm-handle-type h))) (reverse handles)))) (dolist (disc (reverse mm-discouraged-alternatives)) (dolist (elem (copy-sequence seq)) (when (string-match disc elem) -- Colin --=-=-=--