Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2017 20:34:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 210537] [patch] [feature request] set MIME type in cron-generated e-mails
Message-ID:  <bug-210537-8-yLGrQd75wG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210537-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210537-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210537

--- Comment #10 from Eugene Grosbein <eugen@freebsd.org> ---
(In reply to Mikhail T. from comment #9)

> cron-jobs aren't supposed to spit /anything/ to standard output

They are, as any other shell command.

> why should the logic be any different, if I switched to fetching a JPG?

Because SMTP does not support unencoded arbitrary binary data. That is,
"Content-Transfer-Encoding: binary" is not supported in the Internet e-mail=
: no
MTA is supposed to to receive and process such data, and many do not.

And I don't think we should make cron to perform MIME encoding.

> What overhead?

libmagic processing may be expensive in terms of I/O, memory and CPU times.
Have you tried to evaluate this overhead using some slow CPU like Intel Ato=
m or
ARM or MIPS32? You may be surprised. It evolves reading significant amount =
of
libmagic own data and I/O may be slow due to slow media like CompactFlash. =
Then
it may run plenty regexp's against input data. The whole process can easily
long for seconds of wall time making measurable system load.

Such processing should be opt-in, not opt-out.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210537-8-yLGrQd75wG>