In message <QG+GIsU6iX+iFwxT@ku.gro.lloiff>, Adrian
<bulleid@ku.gro.lioff> writes
No, I haven't tried it, the thought hadn't occurred to me. I'll give
it a go and report back.
Hmm, well it sort of works.
I can run mpack against the image that I want to send, and it creates an output file, but there is no addressing information with it :
Message-ID: <10695.1660569414@pi2>
Mime-Version: 1.0
Subject: Front Door Alert
Content-Type: multipart/mixed; boundary="-"
This is a MIME encoded message. Decode it with "munpack"
or any other MIME reading software. Mpack/munpack is available
via anonymous FTP in ftp.andrew.cmu.edu:pub/mpack/
---
Content-Type: image/jpeg; name="image_202208151316.jpg" Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="image_202208151316.jpg"
Content-MD5: 7YS3HQC2BvZxh142Go44Xg==
and then into the encoded version of the image.
Mpack won't allow me to add a destination address if the output is to a
file (rather than as an email).
I can then cat that into msmtp (after some header information), and the
email duly appears. So far, so good. The problem now is that I don't
have a jpg file (as such), I've got a base64 encoding of it, and my
(Android) phone won't convert that back into a usable JPG (one that I
can look at),
Eli the Bearded <*@eli.users.panix.com> writes
I just did some playing with mpack myself. The output is compliant with
mid-90s RFCs (eg RFC-2046), I am not up on more modern standards, but it
is very quirky looking compared to modern MIME encoding.
mpack -c image/jpeg -d /dev/null -o output_file <file>
gives :
Message-ID: <14058.1660767984@pi2>
Mime-Version: 1.0
Subject:
Content-Type: multipart/mixed; boundary="-"
This is a MIME encoded message. Decode it with "munpack"
or any other MIME reading software. Mpack/munpack is available
via anonymous FTP in ftp.andrew.cmu.edu:pub/mpack/
---
---
Content-Type: image/jpeg; name="image_202208172025.jpg" Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="image_202208172025.jpg"
Content-MD5: NhPEg4pgYEkaTbtZnOkNsg==
I'm assuming that the set of blank lines is the area for the
description.
Switching to the multipart address script, rather than the simple
version it all appears to work. The email appears on my mail hosts
server, I can see an attachment (but not read it, this shouldn't be a >problem, I rarely read emails directly on the server). The mail gets
copied to my Gmail account (where I can read it, and view the
attachment), and it also forwards to my home PC (which I'm not bothered >about, but can live with), and I can view the attachment there as well.
Sysop: | Coz |
---|---|
Location: | Anoka, MN |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 140:17:05 |
Calls: | 166 |
Files: | 5,389 |
Messages: | 223,236 |