Gnus development mailing list
 help / color / mirror / Atom feed
From: David Edmondson <dme@dme.org>
Subject: decoding more complex MIME messages
Date: Mon, 18 Oct 2004 18:17:00 +0100	[thread overview]
Message-ID: <x74qksgd4j.fsf@tarte-tatin.hollytree-house.co.uk> (raw)

[ Gnus 5.10.6 on Emacs 21.3.1 ]

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.  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.

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.

Footnotes: 
[1]  From newspipe: http://newspipe.sourceforge.net.

dme.




             reply	other threads:[~2004-10-18 17:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-18 17:17 David Edmondson [this message]
2004-10-18 23:03 ` Katsumi Yamaoka
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=x74qksgd4j.fsf@tarte-tatin.hollytree-house.co.uk \
    --to=dme@dme.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).