The image macros (%EI1%, %EM1%, etc.) appear to be generating badly formed content when viewed in Thunderbird or the Apple iPhone email program.
The relevant part of the email source is:
This is a multi-part message in MIME format.
--_----------=_169484928125998620
Content-Transfer-Encoding: binary
Content-Type: multipart/related; boundary="_----------=_169484928125998621"
MIME-Version: 1.0
X-Mailer: MIME::Lite 3.033 (F2.85; T2.22; A2.21; B3.16; Q3.16)
Date: Sat, 16 Sep 2023 09:28:01 +0200
This is a multi-part message in MIME format.
--_----------=_169484928125998621
Content-Disposition: inline
Content-Type: text/plain
MIME-Version: 1.0
X-Mailer: MIME::Lite 3.033 (F2.85; T2.22; A2.21; B3.16; Q3.16)
Date: Sat, 16 Sep 2023 09:28:01 +0200
Content-Transfer-Encoding: quoted-printable
ZM alarm detected
<img src="cid:00001-capture.jpg"/>
<img src="cid:00003-capture.jpg"/>
--_----------=_169484928125998621
Content-Disposition: inline; filename="00001-capture.jpg"
Content-Id: <00001-capture.jpg>
Content-Transfer-Encoding: base64
Content-Type: image/jpeg; name="00001-capture.jpg"
/9j/4AAQSkZJRgABAgAAAQABAAD//gARTGF2YzU4LjEzNC4xMDAA/9sAQwAI
Dg4QDhATExMTExMWFRYXFxcWFhYWFxcXGRkZHR0dGRkZFxcZGRwcHR0gISAe
...
This appears in Thunderbird and iPhone email as links with no attachment:
Looking at the eml file shows that the attachments are there (as shown above). Manually removing the links and resending the message then successfully shows the image, although as an attachment, not inline.ZM alarm detected
<img src="cid:00001-capture.jpg"/>
<img src="cid:00003-capture.jpg"/>
I'm not familiar with perl, php or CakeEmail. I can see that zmfilter.pl does the macro substitution, but no idea what the correct fix is to get this displaying correctly in Thunderbird and iPhone mail.
Anyone have a fix?
ZoneMinder 1.37.43
Linux domcich1 5.15.0-83-generic #92-Ubuntu SMP Mon Aug 14 09:30:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Thanks!
Alistair