From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58939 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: decoding more complex MIME messages Date: Tue, 19 Oct 2004 08:03:05 +0900 Organization: Emacsen advocacy group Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098140670 5177 80.91.229.6 (18 Oct 2004 23:04:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Oct 2004 23:04:30 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M7477@lists.math.uh.edu Tue Oct 19 01:04:16 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CJgY4-0008RA-00 for ; Tue, 19 Oct 2004 01:04:16 +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 1CJgX7-0006qi-00; Mon, 18 Oct 2004 18:03:17 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CJgX3-0006qd-00 for ding@lists.math.uh.edu; Mon, 18 Oct 2004 18:03:13 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CJgX1-0006oo-VP for ding@lists.math.uh.edu; Mon, 18 Oct 2004 18:03:11 -0500 Original-Received: from washington.hostforweb.net (washington.hostforweb.net [69.61.11.2]) by justine.libertine.org (Postfix) with ESMTP id B61E83A004B for ; Mon, 18 Oct 2004 18:03:11 -0500 (CDT) Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.42) id 1CJgX4-0001WB-A8; Mon, 18 Oct 2004 19:03:14 -0400 Original-To: David Edmondson X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:RiYudYSs44A8TFbLxjnMsST0yk4= X-Hashcash: 1:17:041018:dme@dme.org::ldmgq57gK+n24NY2:00000007xh X-Hashcash: 1:17:041018:ding@gnus.org::tN5vGtzADk06cFXB:00000A7M X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58939 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58939 >>>>> In David Edmondson wrote: > I receive some mail messages[1] that have the following form: > multipart/alternative { > text/plain > multipart/related { > text/html > image/jpeg > image/jpeg > ... >} >} > My preference is to read the HTML version with inline embedded > images. Unfortunately the code that searches for the images doesn't > find them, as they are nested too deeply. I see. It can be complicated infinitely, though I haven't seen such an article yet. > As a result, I modified mm-w3m-cid-retrieve-1: > (defun mm-w3m-cid-retrieve-1 (url handle) > (dolist (elem handle) > (when (listp elem) > (if (equal url (mm-handle-id elem)) > (progn > (mm-insert-part elem) > (throw 'found-handle (mm-handle-media-type elem)))) > (if (equal "multipart" (mm-handle-media-supertype elem)) > (mm-w3m-cid-retrieve-1 url elem))))) > In essence, if one of the sub-parts of the element being examined is a > multipart, we descend into the multipart to search. That's a great improvement. I couldn't find any doubt in it. > Could someone check this and, as appropriate, correct it, improve it > or commit it? I've previously signed FSF papers for Gnus I believe, > if that's relevant. I've installed it in the Gnus trunk and the v5-10 branch. Thank you very much for the contribution.