From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61151 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: Bug in "View as type"? Date: Wed, 12 Oct 2005 17:43:41 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <87ek6r4pwe.fsf@koldfront.dk> <87u0fmj2e6.fsf@koldfront.dk> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1129134452 22068 80.91.229.2 (12 Oct 2005 16:27:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2005 16:27:32 +0000 (UTC) Original-X-From: ding-owner+m9684@lists.math.uh.edu Wed Oct 12 18:27:31 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EPjPi-0006q0-OY for ding-account@gmane.org; Wed, 12 Oct 2005 18:25:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EPjPe-00067a-00; Wed, 12 Oct 2005 11:25:06 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EPjPH-00067V-00 for ding@lists.math.uh.edu; Wed, 12 Oct 2005 11:24:43 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EPjPC-0005Zl-9O for ding@lists.math.uh.edu; Wed, 12 Oct 2005 11:24:43 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EPjPB-0006Um-00 for ; Wed, 12 Oct 2005 18:24:37 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EPjN4-0005sj-D5 for ding@gnus.org; Wed, 12 Oct 2005 18:22:26 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Oct 2005 18:22:26 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Oct 2005 18:22:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: mtjf/D:es1T0wHO:&CJ'ZXe"l;3C--rw\z!{`eFwL){|]RpI+4{u25L=5C /0>KuGeTsk<~<&NE-AKV1560e!+RJeyWmSskkrJm?[vUV#66{T_m|Ae<||Ku#Mk5`y&O`n~z2;n8eP J5#2h@2eQgV@E70IY_0WlEx!"&giy{+\%h1LJox$zv@/l%ZmU4^tZA>xQpnkUBVC5.jpg#0'(+2?Rs )NAr:>3<=WxHE$ktbLysDIM5TbmHu*3 On Wed, Oct 12 2005, Adam Sjøgren wrote: > On Wed, 12 Oct 2005 14:31:04 +0200, Reiner wrote: >> On Wed, Oct 12 2005, Adam Sjøgren wrote: >>> And was prompted like this: > >>> View as MIME type: audio/x-wav > > [...] > >> Can you show me the MIME part headers or MML part you used? [...] > Content-Type: application/octet-stream; name=message.wav > Content-Disposition: attachment; filename=message.wav Okay, I see. Thanks. The name can be either in the Content-Type header ("name") or in the Content-Disposition header ("filename"). I didn't study the relevant RFCs, but as this function is supposed to be useful when receiving mails from broken MUAs, I changed it to look at both and use the found type as DEFAULT instead of INITIAL-INPUT in `completing-read': * gnus-art.el (gnus-treat-predicate): Add `first'. (gnus-mime-view-part-as-type-internal): Try to fetch `filename' from Content-Disposition if Content-Type doesn't provide `name'. (gnus-mime-view-part-as-type): Set default instead of initial-input. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/