From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46115 Path: main.gmane.org!not-for-mail From: Hrvoje Niksic Newsgroups: gmane.emacs.gnus.general Subject: Re: [patch] Fix displaying attachments with spaces etc. Date: Tue, 13 Aug 2002 20:45:30 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029264373 19774 127.0.0.1 (13 Aug 2002 18:46:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2002 18:46:13 +0000 (UTC) Cc: hniksic@xemacs.org Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17eggE-00058X-00 for ; Tue, 13 Aug 2002 20:46:11 +0200 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 17eggF-0004IV-00; Tue, 13 Aug 2002 13:46:11 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 13 Aug 2002 13:46:40 -0500 (CDT) 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 NAA10186 for ; Tue, 13 Aug 2002 13:46:27 -0500 (CDT) Original-Received: (qmail 7484 invoked by alias); 13 Aug 2002 18:45:52 -0000 Original-Received: (qmail 7479 invoked from network); 13 Aug 2002 18:45:51 -0000 Original-Received: from h-213.61.75.77.host.de.colt.net (HELO florida.munich.redhat.com) (213.61.75.77) by gnus.org with SMTP; 13 Aug 2002 18:45:51 -0000 Original-Received: from hniksic by florida.munich.redhat.com with local (Exim 3.35 #1 (Debian)) id 17egfa-0000lE-00; Tue, 13 Aug 2002 20:45:30 +0200 Original-To: ding@gnus.org X-Attribution: Hrvoje X-Face: &{dT~)Pu6V<0y?>3p$;@vh\`C7xB~A0T-J%Og)J,@-1%q6Q+, gs<-9M#&`I8cJp2b1{vPE|~+JE+gx;a7%BG{}nY^ehK1"q#rG O,Rn1A_Cy%t]V=Brv7h (Simon Josefsson's message of "Tue, 13 Aug 2002 20:28:17 +0200") Original-Lines: 48 User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Common Lisp, i686-pc-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46115 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46115 Simon Josefsson writes: > Hrvoje Niksic writes: > >> My Debian system tries to be smart and has system mailcap entries that >> look like this: >> >> image/jpeg; display '%s' > > Has anyone talked to the Debian people that maintain the file? [1] I haven't. I can only assume that they did that to fix the broken and simple-minded applications that simply do the printf-like replacement of %s and handle the rest to sh -c. I have a hunch that there is a large number of those around. Maybe they can be persuaded to change that on the grounds of correctness. Maybe not. I don't know. Be that as it may, Gnus should at least handle that format on the ground of all those broken Debian mailcaps around. :-( > IMHO mailcap application must quote things internally, and mailcap > files should not quote things. The Debian approach doesn't work when > the filename contains '. With my patch it does. :-) But yes, I see your point. > FWIW, I like the patch. Thanks. I think it's "safe" in the sense that it fixes an important class of cases, while making Gnus behave no worse than it did before. > [1] Which package creates mailcap, btw? dpkg isn't very helpful (the > file exists of course, and I didn't create it): > > bash-2.05b$ dpkg -S /etc/mailcap > dpkg: /etc/mailcap not found. > bash-2.05b$ `man update-mime'. The idea is that every package stores its MIME types in its own file, and runs `update-mime' from PACKAGE.postinst. That way a package can safely update its MIME types without touching other packages. This kind of split is very frequent in Debian. The comment at the beginning of `update-mime' is encouraging: # Update-MIME: Install programs into "/etc/mailcap", resolve conflicts, # auto-uninstall, make dinner, and wash dishes.