Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jun 2016 20:25:36 +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@https.bugs.freebsd.org/bugzilla/>

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

            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@FreeBSD.org
          Reporter: mi@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/pla=
in,
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

--=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>