Your message dated Wed, 17 Jun 2009 03:47:06 +0000
with message-id <[email protected]>
and subject line Bug#530347: fixed in apticron 1.1.32
has caused the Debian Bug report #530347,
regarding apticron: Please improve compatibility to different mailx
implementations
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.)
--
530347: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530347
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apticron
Severity: normal
Tags: patch
Hi Tiago,
Please consider the attached patch. This time, the patch has actually
been tested.
Regards,
Nis
>From 5f800612e607bc854b5a0a5399a3911ec2b85701 Mon Sep 17 00:00:00 2001
From: Nis Martensen <[email protected]>
Date: Sun, 24 May 2009 11:08:41 +0200
Subject: [PATCH] Make apticron work correctly with more mailx implementations
BSD-mailx and mailutils' mailx don't do character set detection or
conversion, but do not send proper mime-headers either. Therefore, make
them send correct headers by means of their -a option.
Heirloom-mailx detects the message charset, can do character set
conversion and sends proper mime-headers. However, correct character set
detection depends on the LC_CTYPE locale setting. The Debian changelog
entries (which apticron is sending) are encoded in UTF-8. Detection can
fail if LC_CTYPE is not set to a UTF-8 locale, in which case the message
might be sent as application/octet-stream. Setting ttycharset to utf-8
makes it use a text/plain content type.
---
apticron | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/apticron b/apticron
index 1b3d3cb..fcc9211 100755
--- a/apticron
+++ b/apticron
@@ -13,6 +13,25 @@ isDigit() {
}
+# Character set handling differs between the different mailx
+# 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" ]
+ then
+ # heirloom-mailx creates correct headers, but needs help
+ # if the terminal charset (LC_CTYPE) is no UTF-8 locale
+ /usr/bin/mailx -S ttycharset=utf-8 "$@"
+ else
+ # bsd-mailx/mailutils' mailx don't do character set
+ # conversion, but do not support MIME either.
+ /usr/bin/mailx -a "MIME-Version: 1.0" \
+ -a "Content-type: text/plain; charset=UTF-8" \
+ -a "Content-transfer-encoding: 8bit" \
+ "$@"
+ fi
+}
+
if [ "x$1" = "x--cron" ] ; then
shift
@@ -237,7 +256,7 @@ EOF
apticron
EOF
- ) 2>&1 | /usr/bin/mailx -a "Content-type: text/plain; charset=UTF-8" -s
"$DISTRIB_ID package updates on $SYSTEM" $EMAIL
+ ) 2>&1 | Mailx -s "$DISTRIB_ID package updates on $SYSTEM" $EMAIL
fi
--
1.5.6.5
--- End Message ---
--- Begin Message ---
Source: apticron
Source-Version: 1.1.32
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:
apticron_1.1.32.dsc
to pool/main/a/apticron/apticron_1.1.32.dsc
apticron_1.1.32.tar.gz
to pool/main/a/apticron/apticron_1.1.32.tar.gz
apticron_1.1.32_all.deb
to pool/main/a/apticron/apticron_1.1.32_all.deb
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: SHA1
Format: 1.8
Date: Tue, 26 May 2009 16:40:56 -0300
Source: apticron
Binary: apticron
Architecture: source all
Version: 1.1.32
Distribution: unstable
Urgency: low
Maintainer: Tiago Bortoletto Vaz <[email protected]>
Changed-By: Tiago Bortoletto Vaz <[email protected]>
Description:
apticron - simple tool to mail about pending package updates
Closes: 530347 530655
Changes:
apticron (1.1.32) unstable; urgency=low
.
* Use specific mailx parameters for heirloom-mailx. Thanks to Nis Martensen
for the patch. (Closes: #530347)
* debian/control:
+ remove inactive uploaders.
+ remove heirloom-mailx from Conflicts due to the fix in #530347.
* Support listing packages on hold by both dselect/apt-get and aptitude. This
can be chosen through the new config var NOTIFY_HOLDS. Thanks to Daniel B.
for reporting this. (Closes: #530655)
Checksums-Sha1:
f97fb8a575215f248de9c7b1eae4b5f552495803 869 apticron_1.1.32.dsc
80cb7d5c3be995b603a0d1e36388c5f63cd2a588 16905 apticron_1.1.32.tar.gz
9144b11d57be4dd4d7b3e1a4332dab02af0ca38a 16338 apticron_1.1.32_all.deb
Checksums-Sha256:
ac3541db4b1dade31f29d097dc719ffb76a5e1c159903a7879cd1eee781ed828 869
apticron_1.1.32.dsc
83f05abc09db51be858e1af498a599aaacddad675050da8442bbb899bf7f39bd 16905
apticron_1.1.32.tar.gz
c643903e53a44f8062127f0255beda7c21b39095a6065fab99c56602489a5286 16338
apticron_1.1.32_all.deb
Files:
797550e69cd3b0a9a0cddb1d0d1903d1 869 admin extra apticron_1.1.32.dsc
5dc29e3ce09dfb37d75fcbf26829db08 16905 admin extra apticron_1.1.32.tar.gz
1b4c643e96991207888b420a00f72960 16338 admin extra apticron_1.1.32_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAko4YyEACgkQaQ1iFKUE/soU2QCdE5m8IxQQnHuqEJ+kT+ckK17e
ed8AmweNnlTUBgxTvtDIot/ccS2heeLg
=txZY
-----END PGP SIGNATURE-----
--- End Message ---