From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/40543 Path: main.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus displaying MIME automatically Date: Mon, 26 Nov 2001 19:53:08 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: <874rnhe54b.fsf@yahoo.com> References: <87y9ku1ld2.fsf@yahoo.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035176078 1503 80.91.224.250 (21 Oct 2002 04:54:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:54:38 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: (qmail 17387 invoked from network); 26 Nov 2001 19:25:08 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 26 Nov 2001 19:25:08 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 168RMx-0002X3-00; Mon, 26 Nov 2001 13:24:43 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 26 Nov 2001 13:24:28 -0600 (CST) Original-Received: from epithumia.math.uh.edu (epithumia.math.uh.edu [129.7.128.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id NAA20739 for ; Mon, 26 Nov 2001 13:24:21 -0600 (CST) Original-Received: (from tibbs@localhost) by epithumia.math.uh.edu (8.11.2/8.11.1) id fAQJOV630802 for ding@hpc.uh.edu; Mon, 26 Nov 2001 13:24:31 -0600 Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id MAA20604 for ; Mon, 26 Nov 2001 12:51:04 -0600 (CST) Original-Received: (qmail 16537 invoked by alias); 26 Nov 2001 18:51:04 -0000 Original-Received: (qmail 16532 invoked from network); 26 Nov 2001 18:51:04 -0000 Original-Received: from relay02.cablecom.net (62.2.33.102) by gnus.org with SMTP; 26 Nov 2001 18:51:04 -0000 Original-Received: from mail.swissonline.ch (mail.swissonline.ch [62.2.32.83]) by relay02.cablecom.net (8.11.6/8.11.4/SOL/AWF/MXRELAY/06072001) with ESMTP id fAQIoac05316; Mon, 26 Nov 2001 19:50:36 +0100 (CET) Original-Received: from confusibombus (dclient217-162-125-113.hispeed.ch [217.162.125.113]) by mail.swissonline.ch (8.11.4/8.11.4/MSOL-2.30/21-Dec-2000) with ESMTP id fAQIoJD19159; Mon, 26 Nov 2001 19:50:19 +0100 (MET) Original-Received: from alex by confusibombus with local (Exim 3.12 #1 (Debian)) id 168QsO-0000HY-00; Mon, 26 Nov 2001 19:53:08 +0100 Original-To: Simon Josefsson In-Reply-To: (Simon Josefsson's message of "Mon, 26 Nov 2001 16:20:29 +0100") Original-Lines: 68 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:40543 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:40543 Simon Josefsson writes: >> gnus-article-mime-match-handle-function's value is >> undisplayed-alternative >> gnus-article-mime-part-function's value is nil >> gnus-buttonized-mime-types's value is nil >> gnus-display-mime-function's value is gnus-display-mime >> gnus-ignored-mime-types's value is nil >> gnus-mime-multipart-functions's value is nil >> gnus-unbuttonized-mime-types's value is (".*/.*") >> >> Nothing unusual there, right? >> >> >From *Messages*: >> >> Viewing with /usr/bin/w3m -T text/html '%s' >> Displaying /usr/bin/w3m -T text/html '/tmp/emm.2592im/mm.259Dts'... > > You need to frob `mm-automatic-display' to not include text/html, I > think. > >> Content-Type: multipart/alternative; >> boundary="====_ABC0987654321DEF_====" > > Or `mm-discouraged-alternatives'. But... > >> Content-Type: audio/x-wav; >> name="stuff.MP3.pif" > > ...perhaps a MP3 file is even worse than HTML. (Also, it looks like a > worm instead of a real MP3 file.) Yes, I thought so, too. So much the worse, haha. But I am not sure which part actually started the xterm window -- perhaps you are right and it was the text/html part, not the audio/x-wav part which (I hope) would have been a button. Anyway, I have the following variables set, in addition to the ones mentioned above: mm-discouraged-alternatives's value is ("text/html" "text/richtext") mm-automatic-display's value is ("text/plain" "text/enriched" "text/richtext" "text/html" "text/x-vcard" "image/.*" "message/delivery-status" "multipart/.*" "message/rfc822" "text/x-patch" "application/pgp-signature" "application/emacs-lisp" "application/x-pkcs7-signature" "application/pkcs7-signature" "application/x-pkcs7-mime" "application/pkcs7-mime") Does it seem plausible then that I got a mail with no text/plain and only text/html in it -- thus the HTML is displayed. And the reason is that text/html is a discouraged alternative -- but if it is the only alternative, it will be used. Correct? The correct solution would be to remove text/html from mm-automatic-display. Then I don't have to specify text/html as a discouraged alternative anymore -- or do I? Or would it make more sense to add text/html to gnus-buttonized-mime-types? Anyway, is there any other place but the "MIME Commands" node in the Gnus manual where such things are explained? Alex. -- http://www.geocities.com/kensanata/ Coffee should be black as hell, strong as death and sweet as love. -- Turkish proverb