Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5343F431FBC for ; Tue, 9 Feb 2010 16:23:06 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.995 X-Spam-Level: X-Spam-Status: No, score=-1.995 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1.8, AWL=-0.010, BAYES_40=-0.185] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id teNUJ651qVd7; Tue, 9 Feb 2010 16:23:05 -0800 (PST) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4D851431FAE; Tue, 9 Feb 2010 16:23:04 -0800 (PST) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id C0E1225416F; Tue, 9 Feb 2010 16:23:02 -0800 (PST) From: Carl Worth To: Alex Ghitza , notmuch@notmuchmail.org In-Reply-To: <54iqa6bt4m.fsf@gmail.com> References: <54iqa6bt4m.fsf@gmail.com> Date: Tue, 09 Feb 2010 16:22:56 -0800 Message-ID: <87iqa6lz1b.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] viewing text/html (inline or otherwise) X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2010 00:23:06 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 09 Feb 2010 21:28:25 +1100, Alex Ghitza wrote: > Ideally, I'd like to be able to see what's hidden behind the=20 > "Non-text part: text/html", and if it could happen inline that would be > great. I would also entertain the idea of opening an external browser > window, if that's the way this has to go. We actually had some support for inline viewing of HTML message parts for a while. I reverted the code only because it was slowing down rendering of non-HTML messages. And I did that with the expectation that the code would appear again shortly with the obvious optimization to not do any extra work for non-HTML messages. I know that Keith is using a little script he wrote so that he can hit '|' on a message and pipe it to his script. The script then uses a utility, (munpack?) to extract all the various MIME parts to a temporary directory and then run a web broswer on that directory. Perhaps Keith would be so kind as to share that script with the community here. What I'm doing write now is using 'V' to view the raw message and then running eval-expression (by typing M-:) and then using: (mm-display-parts (mm-dissect-buffer)) That isn't ideal because it leaves a bunch of the raw message around, and leaves a buffer open with a modified version of a mail file in the mailstore. I'd definitely like a correct solution. Emacs definitely has no shortage of already-existing code to parse and render HTML, (even with inline images, etc.). We just need to find and hook things up properly. =2DCarl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLcfxh6JDdNq8qSWgRAgfFAJ9TKRduCZu+2jl573zL7wlPhV2raQCfc3vS 9fuO8rhpnyqGqcMZOUuCF6E= =70VA -----END PGP SIGNATURE----- --=-=-=--