1 Return-Path: <keithp@keithp.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 5D287431FBD
\r
6 for <notmuch@notmuchmail.org>; Tue, 9 Feb 2010 22:10:09 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.331 tagged_above=-999 required=5
\r
12 tests=[AWL=-1.332, BAYES_50=0.001] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id GCCAkH2QSJfD for <notmuch@notmuchmail.org>;
\r
16 Tue, 9 Feb 2010 22:10:08 -0800 (PST)
\r
17 Received: from keithp.com (home.keithp.com [63.227.221.253])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 37D54431FAE
\r
19 for <notmuch@notmuchmail.org>; Tue, 9 Feb 2010 22:10:08 -0800 (PST)
\r
20 Received: from localhost (localhost [127.0.0.1])
\r
21 by keithp.com (Postfix) with ESMTP id 616657601AA;
\r
22 Tue, 9 Feb 2010 22:10:07 -0800 (PST)
\r
23 X-Virus-Scanned: Debian amavisd-new at keithp.com
\r
24 Received: from keithp.com ([127.0.0.1])
\r
25 by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024)
\r
26 with LMTP id uDOGkN5onN11; Tue, 9 Feb 2010 22:10:04 -0800 (PST)
\r
27 Received: by keithp.com (Postfix, from userid 1033)
\r
28 id 472407601AE; Tue, 9 Feb 2010 22:10:04 -0800 (PST)
\r
29 Received: from koto.keithp.com (localhost [127.0.0.1])
\r
30 by keithp.com (Postfix) with ESMTP id 29C6E7601AA;
\r
31 Tue, 9 Feb 2010 22:10:04 -0800 (PST)
\r
32 Received: by koto.keithp.com (Postfix, from userid 1488)
\r
33 id 815C211C0DA; Tue, 9 Feb 2010 22:10:02 -0800 (PST)
\r
34 From: Keith Packard <keithp@keithp.com>
\r
35 To: Carl Worth <cworth@cworth.org>, Alex Ghitza <aghitza@gmail.com>,
\r
36 notmuch@notmuchmail.org
\r
37 In-Reply-To: <87iqa6lz1b.fsf@yoom.home.cworth.org>
\r
38 References: <54iqa6bt4m.fsf@gmail.com> <87iqa6lz1b.fsf@yoom.home.cworth.org>
\r
39 Date: Tue, 09 Feb 2010 22:10:02 -0800
\r
40 Message-ID: <yuneiktmxj9.fsf@aiko.keithp.com>
\r
42 Content-Type: multipart/signed; boundary="=-=-=";
\r
43 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
44 Subject: Re: [notmuch] viewing text/html (inline or otherwise)
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Wed, 10 Feb 2010 06:10:09 -0000
\r
60 Content-Transfer-Encoding: quoted-printable
\r
62 On Tue, 09 Feb 2010 16:22:56 -0800, Carl Worth <cworth@cworth.org> wrote:
\r
64 > I know that Keith is using a little script he wrote so that he can hit
\r
65 > '|' on a message and pipe it to his script. The script then uses a
\r
66 > utility, (munpack?) to extract all the various MIME parts to a temporary
\r
67 > directory and then run a web broswer on that directory. Perhaps Keith
\r
68 > would be so kind as to share that script with the community here.
\r
70 It's not much of a script, I call it 'view-html'
\r
75 cat "$@" > "$dir"/msg
\r
76 if munpack -C "$dir" -t < "$dir"/msg 2>&1 | grep 'Did not find'; then
\r
77 sed -n '/[Hh][Tt][Mm][Ll]/,$p' "$dir"/msg > $dir/part1.html
\r
80 for i in "$dir"/part*; do
\r
81 if grep -q -i -e '<html>' -e 'text/html' "$i"; then
\r
88 Note that if iceweasel isn't already running, it seems to shut down when
\r
89 the script exits. I don't know why.
\r
92 keith.packard@intel.com
\r
95 Content-Type: application/pgp-signature
\r
97 -----BEGIN PGP SIGNATURE-----
\r
98 Version: GnuPG v1.4.10 (GNU/Linux)
\r
100 iD8DBQFLck26Qp8BWwlsTdMRAgW8AJ9rDdGpYYEdxfLURa6lWTao7VaUjwCfVt58
\r
101 6waGkFWv0o++W8C4CDkb/wA=
\r
103 -----END PGP SIGNATURE-----
\r