From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: decoding more complex MIME messages
Date: Tue, 19 Oct 2004 08:03:05 +0900 [thread overview]
Message-ID: <b9yoeizr5na.fsf@jpl.org> (raw)
In-Reply-To: <x74qksgd4j.fsf@tarte-tatin.hollytree-house.co.uk>
>>>>> In <x74qksgd4j.fsf@tarte-tatin.hollytree-house.co.uk> 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.
next prev parent reply other threads:[~2004-10-18 23:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-18 17:17 David Edmondson
2004-10-18 23:03 ` Katsumi Yamaoka [this message]
2004-12-30 1:31 ` Geoff Kuenning
2005-01-05 13:21 ` nnml question G.Ananth Somayaji
2005-01-05 18:54 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b9yoeizr5na.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).