Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

13. ... r-q1


computers / comp.mail.mutt / Re: Viewing HTML attachments with embedded pictures

SubjectAuthor
* Viewing HTML attachments with embedded picturescjsmall
`* Re: Viewing HTML attachments with embedded picturescjsmall
 `* Re: Viewing HTML attachments with embedded picturesChristian Ebert
  `* Re: Viewing HTML attachments with embedded picturescjsmall
   `- Re: Viewing HTML attachments with embedded picturescjsmall

1
Viewing HTML attachments with embedded pictures

<b2514cb1-dcbe-42a1-82c1-c01fbb7fa413n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=103&group=comp.mail.mutt#103

 copy link   Newsgroups: comp.mail.mutt
X-Received: by 2002:a05:622a:1a28:b0:391:b3d0:41fe with SMTP id f40-20020a05622a1a2800b00391b3d041femr15260940qtb.147.1665416673378;
Mon, 10 Oct 2022 08:44:33 -0700 (PDT)
X-Received: by 2002:a05:6214:d4b:b0:4b1:80eb:64e2 with SMTP id
11-20020a0562140d4b00b004b180eb64e2mr15583050qvr.123.1665416673214; Mon, 10
Oct 2022 08:44:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.mutt
Date: Mon, 10 Oct 2022 08:44:33 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2601:600:9100:5ca0:e23f:49ff:fee8:1a31;
posting-account=HkkpOQkAAADsR9HpuB7NpuJa7KNw-XVw
NNTP-Posting-Host: 2601:600:9100:5ca0:e23f:49ff:fee8:1a31
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b2514cb1-dcbe-42a1-82c1-c01fbb7fa413n@googlegroups.com>
Subject: Viewing HTML attachments with embedded pictures
From: jefferys...@gmail.com (cjsmall)
Injection-Date: Mon, 10 Oct 2022 15:44:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1754
 by: cjsmall - Mon, 10 Oct 2022 15:44 UTC

I have a shell script filter called "attach_view" that handles a number of different attachment types, including HTML, PDF, Microsoft documents and various images. I bind "|attach_view\n" to an attachment key and can press it to see the selected attachment. This works fine for me.

However, I'm getting HTML emails that have embedded images. These come in as an HTML attachment, and a set of additional image attachments which are often in random order. Is there a method of being able to view the HTML with the attached images as you can with most GUI email readers? Has anyone tackled this very typical problem?

Thanks.

Re: Viewing HTML attachments with embedded pictures

<a493111e-b156-4108-94f2-d34f5a75e733n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=104&group=comp.mail.mutt#104

 copy link   Newsgroups: comp.mail.mutt
X-Received: by 2002:a05:620a:17a0:b0:6cd:a185:131d with SMTP id ay32-20020a05620a17a000b006cda185131dmr13989201qkb.759.1665424307457;
Mon, 10 Oct 2022 10:51:47 -0700 (PDT)
X-Received: by 2002:ae9:e315:0:b0:6ee:761d:4b8b with SMTP id
v21-20020ae9e315000000b006ee761d4b8bmr698199qkf.748.1665424307262; Mon, 10
Oct 2022 10:51:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!npeer.as286.net!npeer-ng0.as286.net!feeder1-1.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.mutt
Date: Mon, 10 Oct 2022 10:51:47 -0700 (PDT)
In-Reply-To: <b2514cb1-dcbe-42a1-82c1-c01fbb7fa413n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:600:9100:5ca0:e23f:49ff:fee8:1a31;
posting-account=HkkpOQkAAADsR9HpuB7NpuJa7KNw-XVw
NNTP-Posting-Host: 2601:600:9100:5ca0:e23f:49ff:fee8:1a31
References: <b2514cb1-dcbe-42a1-82c1-c01fbb7fa413n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a493111e-b156-4108-94f2-d34f5a75e733n@googlegroups.com>
Subject: Re: Viewing HTML attachments with embedded pictures
From: jefferys...@gmail.com (cjsmall)
Injection-Date: Mon, 10 Oct 2022 17:51:47 +0000
Content-Type: text/plain; charset="UTF-8"
 by: cjsmall - Mon, 10 Oct 2022 17:51 UTC

On Monday, October 10, 2022 at 8:44:34 AM UTC-7, cjsmall wrote:
> I have a shell script filter called "attach_view" that handles a number
> of different attachment types, including HTML, PDF, Microsoft
> documents and various images. I bind "|attach_view\n" to an
> attachment key and can press it to see the selected attachment.
> his works fine for me.
>
> However, I'm getting HTML emails that have embedded images.
> These come in as an HTML attachment, and a set of additional
> image attachments which are often in random order. Is there a
> method of being able to view the HTML with the attached images
> as you can with most GUI email readers? Has anyone tackled
> this very typical problem?
>
> Thanks.

Following up to my own post, here is an example. From the decoded
html file there is this line:

<img src="cid:183b8408554dbcb66d71" style="width:1364px;max-width:100%">

And from the original email message:

Content-Type:
image/jpeg; name="6674A791-428C-450F-9D38-F93951FD796D.jpeg"
Content-Disposition: inline;
filename="6674A791-428C-450F-9D38-F93951FD796D.jpeg"
Content-Transfer-Encoding: base64
Content-ID: <183b8408554dbcb66d71>
X-Attachment-Id: 183b8408554dbcb66d71
..... encoded image ...

Which, when saved, produces the file:

19F23E05-3F36-474E-AF64-54594565D171.jpeg

Short of writing a complex program that:

* creates a temporary directory
* filters the entire email, using munpack(1) to export all the image files
* extracts the HTML portion and then edits it to replace all <img> tags
with absolute paths to the actual image file

It's certainly doable, but I hope there is a tool that does this already! In
my searching I haven't found any suitable tool.

Re: Viewing HTML attachments with embedded pictures

<l2fj2jxj7a2.ln2@krille.phloxic.productions>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=111&group=comp.mail.mutt#111

 copy link   Newsgroups: comp.mail.mutt
Path: i2pn2.org!i2pn.org!aioe.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bcc...@phloxic.productions (Christian Ebert)
Newsgroups: comp.mail.mutt
Subject: Re: Viewing HTML attachments with embedded pictures
Date: Mon, 24 Oct 2022 23:09:57 +0100
Lines: 22
Message-ID: <l2fj2jxj7a2.ln2@krille.phloxic.productions>
References: <b2514cb1-dcbe-42a1-82c1-c01fbb7fa413n@googlegroups.com>
<a493111e-b156-4108-94f2-d34f5a75e733n@googlegroups.com>
X-Trace: individual.net OHHRwBaVlyUT1GX6ThFKxAdAAoG2uubB/SKxHQ47UUX+nNI0+O
X-Orig-Path: krille.phloxic.productions!not-for-mail
Cancel-Lock: sha1:fVjlT5Kj8Wsleu1sR6UWs1vMteA=
Mail-Copies-To: nobody
X-Face: )&#alA:[x"-#%%./(nuC&8n;#gqM;=mfY&ivRz@Gnv|AD_0l1Uz{fnJ^BW~OX[d;/)z!y
V
User-Agent: slrn/pre1.0.4-6 (Darwin)
 by: Christian Ebert - Mon, 24 Oct 2022 22:09 UTC

* cjsmall on Monday, October 10, 2022:
> Short of writing a complex program that:
>
> * creates a temporary directory
> * filters the entire email, using munpack(1) to export all the image files
> * extracts the HTML portion and then edits it to replace all <img> tags
> with absolute paths to the actual image file
>
> It's certainly doable, but I hope there is a tool that does this already! In
> my searching I haven't found any suitable tool.

shameless plug: viewhtmlmsg of
https://hg.phloxic.productions/muttils
does this.

Does not use munpack, I'm afraid, but python3.

--
LAST SHIP HOME --->> https://lastshiphome.de/en
Official Selection DOK.fest Munich 2018
German Ocean Film Award CineMare Kiel 2019
Best Documentary Feature Wales International Film Festival 2020

Re: Viewing HTML attachments with embedded pictures

<32589d0d-d4ca-4635-99b3-d25e5116afccn@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=112&group=comp.mail.mutt#112

 copy link   Newsgroups: comp.mail.mutt
X-Received: by 2002:a05:620a:1a04:b0:6ee:93fc:b44f with SMTP id bk4-20020a05620a1a0400b006ee93fcb44fmr24607044qkb.756.1666653314621;
Mon, 24 Oct 2022 16:15:14 -0700 (PDT)
X-Received: by 2002:a05:6214:1c81:b0:4af:664c:2913 with SMTP id
ib1-20020a0562141c8100b004af664c2913mr30164457qvb.103.1666653314405; Mon, 24
Oct 2022 16:15:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.mutt
Date: Mon, 24 Oct 2022 16:15:14 -0700 (PDT)
In-Reply-To: <l2fj2jxj7a2.ln2@krille.phloxic.productions>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:600:9100:5ca0:e23f:49ff:fee8:1a31;
posting-account=HkkpOQkAAADsR9HpuB7NpuJa7KNw-XVw
NNTP-Posting-Host: 2601:600:9100:5ca0:e23f:49ff:fee8:1a31
References: <b2514cb1-dcbe-42a1-82c1-c01fbb7fa413n@googlegroups.com>
<a493111e-b156-4108-94f2-d34f5a75e733n@googlegroups.com> <l2fj2jxj7a2.ln2@krille.phloxic.productions>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <32589d0d-d4ca-4635-99b3-d25e5116afccn@googlegroups.com>
Subject: Re: Viewing HTML attachments with embedded pictures
From: jefferys...@gmail.com (cjsmall)
Injection-Date: Mon, 24 Oct 2022 23:15:14 +0000
Content-Type: text/plain; charset="UTF-8"
 by: cjsmall - Mon, 24 Oct 2022 23:15 UTC

On Monday, October 24, 2022 at 3:10:04 PM UTC-7, Christian Ebert wrote:
> * cjsmall on Monday, October 10, 2022:
> > Short of writing a complex program that:
> >
> > * creates a temporary directory
> > * filters the entire email, using munpack(1) to export all the image files
> > * extracts the HTML portion and then edits it to replace all <img> tags
> > with absolute paths to the actual image file
> >
> > It's certainly doable, but I hope there is a tool that does this already! In
> > my searching I haven't found any suitable tool.
> shameless plug: viewhtmlmsg of
> https://hg.phloxic.productions/muttils
> does this.
>
> Does not use munpack, I'm afraid, but python3.

Thanks Christian. I was just starting to write my own tool. I'll
download and try out yours! Much appreciated.

Re: Viewing HTML attachments with embedded pictures

<f6d6770c-37dc-430e-ae52-10665da301c6n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=113&group=comp.mail.mutt#113

 copy link   Newsgroups: comp.mail.mutt
X-Received: by 2002:a05:6214:c21:b0:4bb:9fea:f545 with SMTP id a1-20020a0562140c2100b004bb9feaf545mr4794526qvd.73.1666903734612;
Thu, 27 Oct 2022 13:48:54 -0700 (PDT)
X-Received: by 2002:a05:6214:519c:b0:4b1:8eaf:a21f with SMTP id
kl28-20020a056214519c00b004b18eafa21fmr43307640qvb.97.1666903734400; Thu, 27
Oct 2022 13:48:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.mutt
Date: Thu, 27 Oct 2022 13:48:54 -0700 (PDT)
In-Reply-To: <32589d0d-d4ca-4635-99b3-d25e5116afccn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:600:9100:5ca0:e23f:49ff:fee8:1a31;
posting-account=HkkpOQkAAADsR9HpuB7NpuJa7KNw-XVw
NNTP-Posting-Host: 2601:600:9100:5ca0:e23f:49ff:fee8:1a31
References: <b2514cb1-dcbe-42a1-82c1-c01fbb7fa413n@googlegroups.com>
<a493111e-b156-4108-94f2-d34f5a75e733n@googlegroups.com> <l2fj2jxj7a2.ln2@krille.phloxic.productions>
<32589d0d-d4ca-4635-99b3-d25e5116afccn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f6d6770c-37dc-430e-ae52-10665da301c6n@googlegroups.com>
Subject: Re: Viewing HTML attachments with embedded pictures
From: jefferys...@gmail.com (cjsmall)
Injection-Date: Thu, 27 Oct 2022 20:48:54 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1567
 by: cjsmall - Thu, 27 Oct 2022 20:48 UTC

I just wanted to publically thank Christian Ebert for sharing his
python-based tool to view html attachments with embedded
images. It works great and saved me a lot of time and headaches
building my own.

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor