Search found 6 matches

by CascadianDuck
Thu Mar 28, 2019 4:40 am
Forum: ZoneMinder 1.30.x
Topic: corrupt email images
Replies: 9
Views: 37598

Re: corrupt email images

It's been a while since I worked on this, I need to dig a bit to see what I ended up changing.
by CascadianDuck
Mon Dec 11, 2017 10:42 pm
Forum: ZoneMinder 1.30.x
Topic: corrupt email images
Replies: 9
Views: 37598

Re: corrupt email images

So strange. For some reason it works better by opening a pipe to the ssmtp command, and "printing" mail->as_string to the file handle. It doesn't get corrupted as often, but still happens in some cases...
by CascadianDuck
Tue Dec 05, 2017 6:08 am
Forum: ZoneMinder 1.30.x
Topic: corrupt email images
Replies: 9
Views: 37598

Re: corrupt email images

Ugh. Somehow text from the email body is getting inserted into the base64 encoded section of the mail for the attachment. This causes the base64 encoding to become corrupted and the only portion of the image that shows is the portion before the base64 encoding is broken. And somehow this is happenin...
by CascadianDuck
Mon Dec 04, 2017 8:49 am
Forum: ZoneMinder 1.30.x
Topic: corrupt email images
Replies: 9
Views: 37598

Re: corrupt email images

For debugging purposes I edited zmfilter.pl and added a line: $mail->send_by_testfile(); Just before the line: if ( $Config{ZM_SSMTP_MAIL} ) { to see what MIME::Lite had created, and it was already corrupted at that point. So something inside MIME::Lite is messing up. Need to keep digging. Edit: scr...
by CascadianDuck
Sun Nov 05, 2017 3:58 pm
Forum: ZoneMinder 1.30.x
Topic: corrupt email images
Replies: 9
Views: 37598

Re: corrupt email images

Note that the source files that ZM tries to attach, like zoneminder/events/1/17/11/04/21/11/56/00026-capture.jpg, is perfectly fine and I'm able to attach it to an email with SSMTP when directly calling SSMTP on the command line. But when ZM tries to do the attaching, the problem above happens...
by CascadianDuck
Sun Nov 05, 2017 7:29 am
Forum: ZoneMinder 1.30.x
Topic: corrupt email images
Replies: 9
Views: 37598

corrupt email images

Hi, I've installed ZM 1.30.4 on my FreeNAS box. It works great except that when it sends email notifications the attached images are corrupted. It only shows a small portion of the image and the rest is gray. I'm using SSMTP. I've confirmed SSMTP works fine and have used a command similar to the fol...