[Bug 210537] [patch] [feature request] set MIME type in cron-generated e-mails

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jun 24 20:25:36 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210537

            Bug ID: 210537
           Summary: [patch] [feature request] set MIME type in
                    cron-generated e-mails
           Product: Base System
           Version: 10.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch, patch-ready
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: mi at FreeBSD.org
          Keywords: patch

It is perfectly legitimate for cron-jobs to rely on cron doing the e-mailing
for them. And it works perfectly fine for the default content-type of
text/plain.

However, if a cron-job generated HTML, PNG, or anything other than text/plain,
it currently has to do the mailing itself.

The proposed patch, which I've been using for the last 9 years here myself
modifies the mail-sending part of cron to use libmagic(3) to determine the
output's type. If determined successfully, the Content-Type header is set to
advise the recipient's e-mail program on how to treat the message:

 http://aldan.algebra.com/~mi/cron-mime.diff

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


More information about the freebsd-bugs mailing list