Closed larryhynes closed 7 years ago
Which OS X did you use again?
10.10.5 (Yosemite) AKA the most recent least awful one. ;^)
I guess we could hack around it using sigpending. Can you verify you have man 2 sigpending
?
Yup, do have. (Sorry about this!)
Try the lastest commit.
It builds! 'xcellent, thanks, sorry for being a thorn in your side.
more importantly, does it work? ;)
Well, on my most recent 'complicated' received email, filter seems to be doing its thing perfectly:
--- --- --- 5: image/jpeg size=48430 render="gm identify -format "%m %b %q-bit %Gpx %Qquality %C" -" ---
JPEG 47.3Ki 8-bit 1229x283px 70quality JPEG
--- --- 6: application/pdf size=802387 render="file -b -" ---
PDF document, version 1.4
--- --- 7: application/pdf size=454921 render="file -b -" ---
PDF document, version 1.4
--- --- 8: application/pdf size=89255 render="file -b -" ---
PDF document, version 1.4
--- --- 9: application/postscript size=1390 render="file -b -" ---
PostScript document text
--- --- 10: image/png size=1090 render="gm identify -format "%m %b %q-bit %Gpx %Qquality %C" -" ---
PNG 1.1Ki 8-bit 305x121px 75quality Zip
--- --- 11: application/postscript size=1398 render="file -b -" ---
PostScript document text
--- --- 12: image/png size=1107 render="gm identify -format "%m %b %q-bit %Gpx %Qquality %C" -" ---
PNG 1.1Ki 8-bit 305x121px 75quality Zip
That is with an admittedly modest ~/.mblaze/filter
of:
text/html: lynx -dump -stdin -nomargins -width=60 ${PIPE_CHARSET:+-assume_charset $PIPE_CHARSET}
image: gm identify -format "%m %b %q-bit %Gpx %Qquality %C" -
application: file -b -
Good, thanks. file
will trigger the SIGPIPE case.
With the addition of sigtimedwait to filter.c, make fails on OS X: