From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/32092 Path: main.gmane.org!not-for-mail From: "Rene H. Larsen" Newsgroups: gmane.emacs.gnus.general Subject: Re: Shouldn't Gnus (er, W3) inline related images in ? Date: 12 Aug 2000 03:04:56 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: <87r97vp9vr.fsf@worldonline.dk> References: <87n1moph1r.fsf@mharnois.workgroup.net> <87ya672i8q.fsf@mharnois.workgroup.net> <87bt30n4sf.fsf@mharnois.workgroup.net> <87hf8tc5hx.fsf@cachemir.echo-net.net> <87og303647.fsf@worldonline.dk> <2ng0ocmn6o.fsf@tiger.jia.vnet> <87vgx7pdao.fsf@worldonline.dk> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035168421 17788 80.91.224.250 (21 Oct 2002 02:47:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:47:01 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id CC792D051E for ; Sat, 12 Aug 2000 10:48:43 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id UAD03453; Fri, 11 Aug 2000 20:28:53 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 11 Aug 2000 20:28:07 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id UAA17417 for ; Fri, 11 Aug 2000 20:27:55 -0500 (CDT) Original-Received: from fe020.worldonline.dk (fe020.worldonline.dk [212.54.64.196]) by mailhost.sclp.com (Postfix) with SMTP id 396C3D051E for ; Fri, 11 Aug 2000 21:28:25 -0400 (EDT) Original-Received: (qmail 5826 invoked by uid 0); 12 Aug 2000 01:28:08 -0000 Original-Received: from 30.ppp1-1.had.worldonline.dk (HELO izzlazz.ournet.dk) (212.54.67.30) by fe020.worldonline.dk with SMTP; 12 Aug 2000 01:28:08 -0000 Original-Received: from renehl.ournet.dk [192.168.0.1] by izzlazz.ournet.dk with esmtp (Exim 3.12 #1 (Debian)) id 13NPjM-0000b2-00; Sat, 12 Aug 2000 03:04:56 +0200 Original-Received: from renehl by renehl.ournet.dk with local (Exim 3.12 #1 (Debian)) id 13NPjM-0000bL-00; Sat, 12 Aug 2000 03:04:56 +0200 Original-To: ding@gnus.org In-Reply-To: "Rene H. Larsen"'s message of "12 Aug 2000 01:51:11 +0200" Original-Lines: 43 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:32092 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:32092 "Rene H. Larsen" writes: > Hmm, that's pretty bad, since all the mailcap entries shipped with > Debian GNU/Linux use the quoted form. All of the Debian > MIME-handling utilities expect the entries to be quoted as well. In fact, they are all single-quoted. I suppose that is Debian policy on mailcap entries. > It would be nice if there was an option to flip in Gnus so that it > won't escape spaces in filenames passed to mailcap handlers. This > would make it compatible with the way Debian (and others?) handles > mailcap quoting. The workaround I use right now is to modify mm-quote-arg to only quote single quotes (using the mildly hideous '"'"' hack). This is what I've put in my .gnus.el: ,---- | ;;; Convince Gnus to handle single-quoted mailcap entries correctly. | (eval-after-load 'mm-util | (defun mm-quote-arg (arg) | "Return a version of ARG that is safe to evaluate in a shell." | (let ((pos 0) new-pos accum) | ;; *** bug: we don't handle newline characters properly | (while (setq new-pos (string-match "'" arg pos)) | (push (substring arg pos new-pos) accum) | (push "'\"'\"" accum) | (push (list (aref arg new-pos)) accum) | (setq pos (1+ new-pos))) | (if (= pos 0) | arg | (apply 'concat (nconc (nreverse accum) (list (substring arg pos)))))))) `---- To handle double quoted entries you'll need something a bit different (more like what is used for the non-quoted case). If your mailcap entries are inconsistently quoted, you're basically screwed :/. -- Echelon bait: genetic Ft. Bragg Panama Legion of Doom Serbian World Trade Center JFK Noriega PLO Ft. Meade AK-47 $400 million in gold bullion Saddam Hussein fissionable NORAD