[Bug 1313055] Re: No Content-Type headers in emails from Anacron
Launchpad Bug Tracker
1313055 at bugs.launchpad.net
Tue Jun 3 08:06:56 UTC 2014
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: anacron (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to anacron in Ubuntu.
https://bugs.launchpad.net/bugs/1313055
Title:
No Content-Type headers in emails from Anacron
Status in “anacron” package in Ubuntu:
Confirmed
Bug description:
I have some cron.daily jobs which output in UTF-8 (due to doing file
operations on /etc which contains some files with UTF-8 characters).
These are run through Anacron and emailed through the Mandrill mail
service. Because there's no Content-Type headers sent with these,
Mandrill accepts them as ISO-8859-1 by default. Part of the Mandrill
process is to break the mail apart and recreate it before sending to
the target email address, this process fails because of the UTF-8
characters and the mail is truncated as soon as it hits the first
character which is outside of its expected character set (which is
ISO-8859-1).
runjob.c seemingly has no method for specifying a Content-Type, and
although this can potentially be worked around by having the first
line of my shell scripts echo "Content-Type: plain/text;
charset=UTF-8" this breaks anacron's detection of whether there's any
output (which compares the file size of the temporary file containing
the mail headers before and after the job has run). This approach also
isn't compatible with any non-shell script jobs.
Description: Ubuntu 14.04 LTS
Release: 14.04
anacron:
Installed: 2.3-20ubuntu1
Candidate: 2.3-20ubuntu1
Version table:
*** 2.3-20ubuntu1 0
500 http://gb.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/anacron/+bug/1313055/+subscriptions
More information about the foundations-bugs
mailing list