Your message dated Sun, 25 Dec 2016 13:48:24 +0000
with message-id <[email protected]>
and subject line Bug#812719: fixed in apticron 1.1.60
has caused the Debian Bug report #812719,
regarding apticron: check for mailx as s-nail not working
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
812719: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812719
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apticron
Version: 1.1.58
Severity: normal
Tags: upstream patch
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages apticron depends on:
ii apt 1.2
ii bzip2 1.0.6-8
pn cron | cron-daemon <none>
ii debconf [debconf-2.0] 1.5.58
ii dpkg 1.18.4
ii s-nail [mailx] 14.8.6-1
ii ucf 3.0032
Versions of packages apticron recommends:
ii apt-listchanges 2.85.14
ii iproute2 4.3.0-1
apticron suggests no packages.
-- debconf information:
apticron/notification: root
Problem
-------
Currently, for users using s-nail on their systems, apticron mail
reporting is broken. This is also true for apticron's cron reporting
back to the user.
Although apticron does check for the system mailx as being
heirloom-mailx or bsd-mailx, it doesn't check for s-nail correctly. It
relies on 'readlink -e /usr/bin/mailx' to return "heirloom-mailx",
whereas on my sid system it returns "s-nail".
The reporting email is never sent.
Fix
---
The fix is to check specifically for s-nail rather than rely on readlink
to return a reference to s-nail, as currently it returns mailx instead
of s-nail.
How is this a problem?
----------------------
s-nail uses the '-a' parameter differently to previous versions of
mailx. With previous versions, -a indicated an additional email header
to be included, whereas s-nail uses -a to specify an attachment to be
included with the email.
Since apticron uses -a to set a number of headers, s-nail throws errors
about such as "MIME-Version: 1.0: No such file or directory".
"MIME-Version: 1.0" is meant to be an email header.
--- apticron 2016-01-15 22:16:05.000000000 +0800
+++ /tmp/apticron 2016-01-26 09:25:49.359961187 +0800
@@ -4,7 +4,8 @@
# implementations in Debian. Make sure we send proper headers, and a
# text/plain content type.
Mailx() {
- if [ "x`readlink -e /usr/bin/mailx`" = "x/usr/bin/heirloom-mailx" ]
+ local MAILER="`readlink -e /usr/bin/mailx`"
+ if [ x$MAILER = "x/usr/bin/heirloom-mailx" -o x$MAILER = "x/usr/bin/s-nail" ]
then
# heirloom-mailx creates correct headers, but needs help
# if the terminal charset (LC_CTYPE) is no UTF-8 locale
--- End Message ---
--- Begin Message ---
Source: apticron
Source-Version: 1.1.60
We believe that the bug you reported is fixed in the latest version of
apticron, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Tiago Bortoletto Vaz <[email protected]> (supplier of updated apticron package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 25 Dec 2016 08:30:55 -0500
Source: apticron
Binary: apticron
Architecture: source all
Version: 1.1.60
Distribution: unstable
Urgency: medium
Maintainer: Tiago Bortoletto Vaz <[email protected]>
Changed-By: Tiago Bortoletto Vaz <[email protected]>
Description:
apticron - Simple tool to mail about pending package updates
Closes: 812719
Changes:
apticron (1.1.60) unstable; urgency=medium
.
* Fix for s-nail. Thanks to Nick Coleman. (Closes: #812719)
Checksums-Sha1:
061a318297a4661cf68142e394e4d8386506a24d 1581 apticron_1.1.60.dsc
6158d9b69cb2ba4d65361b2c8a9dd8dbd40dc3bd 19216 apticron_1.1.60.tar.xz
e7a3b37b3e45a367037ecf47c84fcba00c0fa95e 19932 apticron_1.1.60_all.deb
826062a8d2956065f2016bc27b6cedaab5f6aaab 4614 apticron_1.1.60_amd64.buildinfo
Checksums-Sha256:
8504f0e5e1a3620aa39e07d5bd994c3ba5c4dce350e639fb6e9c2f419562fcac 1581
apticron_1.1.60.dsc
32621826d0ee58f2bc3e2e42188a374fecc32079497374bf7418530c83082e04 19216
apticron_1.1.60.tar.xz
cc7657111251bc6c5e9ad17840a2ea844d8dce461da11eb7f9ef2bc5fdbcd313 19932
apticron_1.1.60_all.deb
3336168e128c4fba9e6b7a714933ee2a2e4c0d53cb2ca4c523679603306fc689 4614
apticron_1.1.60_amd64.buildinfo
Files:
89b17ec6358cf50c57156f2a210c0d0a 1581 admin extra apticron_1.1.60.dsc
2c77f165c2dc86e09675bdca7fee32bd 19216 admin extra apticron_1.1.60.tar.xz
218b95772ded21a2dd83e09a42f7ffc7 19932 admin extra apticron_1.1.60_all.deb
abb7134000145e35be0bdbd4ff88a150 4614 admin extra
apticron_1.1.60_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJYX8uwAAoJENhHR6zktoE9jKgP/2CVhDL2IznBR2cYn0KUkiIp
Xr5md2nRepJB9bEs8zNUpZUFuWk5cCwQryqrXv6cRTMIBarRXFOdCpy59+r4ceVD
jmZE21iv7NEQ4X9p0ExsE+LQa2dEmkKhTdFdqVnspQ4rE88oGeLtX2gEA0o8gPpD
I5JsmXQ4oFXukUka4g4/V0Ij+QeToIjkwJFwI5gJCbv0xdLLsw8NsTM8JzydXQOp
NoU5cBQ7fT20cPIUzSwwCfCkCazrXKUB8P2P2zcvaJtA7svEgT3otBffC5SrmDfi
IHlgkSJ1yuW4fFJzIhx8UULjzR/N6fgZR4WnzC8lm/8TBdpviXUTwXmSIKJM9JDg
SZSZa9GNosZIomn6pcR7xf12aUYEuxtltztC2qPOmxC/PZ+dfCGfzKAX+SPmrFKx
0X2O8uYM9+eQQfEgWcMZGjN7t+e+KP7fPmJw7zIzs28Ne8yaxMtixlIDnuvwpW7u
y7FqdgEoNjdVLkBHA/koG4Q74jEyyCScEMSWgxNeCdU4bMdN1bzQuIfN8GSOUpFQ
wpa0ZxZQuUEu5q0cwhe6THSurgRi23yf8ifq70pscLL/vkA8WHg3aDEoHuFlXkEz
hTaoADx1SXmA7nn0fHagL9AEjeV1tH/gpkBDfiMMOdtFvcubRbzhLHilDCYwC2ZU
sOQI7rT2uW+0jpPWpCeZ
=sPlw
-----END PGP SIGNATURE-----
--- End Message ---