Package: apticron
Version: 1.1.27
Severity: wishlist
Tags: patch

Hello,

please consider the attached patchset. It adds an APTICRON_IN_SUBJECT option
in apticron.conf and changes the From field of the generated e-mails.



-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686-bigmem (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apticron depends on:
ii  apt                0.7.20.2+lenny1       Advanced front-end for dpkg
ii  bsd-mailx          8.1.2-0.20071201cvs-3 A simple mail user agent
ii  debconf [debconf-2 1.5.24                Debian configuration management sy
ii  ucf                3.0016                Update Configuration File: preserv

Versions of packages apticron recommends:
ii  apt-listchanges               2.83       package change history notificatio
ii  iproute                       20080725-2 networking and traffic control too

apticron suggests no packages.

-- debconf information excluded

*** /tmp/apticron-patch
--- apticron-orig       2009-01-31 17:18:46.000000000 +0200
+++ apticron    2009-06-17 10:54:25.000000000 +0300
@@ -138,6 +138,16 @@
        done
 fi
 
+if [ -z "$APTICRON_IN_SUBJECT" ]; then
+
+       MAILX_SUBJECT="$DISTRIB_ID package updates on $SYSTEM"
+
+elif [ "$APTICRON_IN_SUBJECT" = "1" ]; then
+
+       MAILX_SUBJECT="[apticron] $DISTRIB_ID package updates on $SYSTEM"
+
+fi
+
 if [ -n "$PKGNAMES" ] ; then
 
        # do the upgrade downloads
@@ -236,8 +246,8 @@
 --
 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 | /usr/bin/mailx -a "Content-type: text/plain; charset=UTF-8" -a 
"From: apticron <aptic...@$system>" -s "$MAILX_SUBJECT" $EMAIL
 
 fi
 

*** /tmp/apticron.conf-patch
--- apticron.conf-orig  2009-06-17 09:46:10.000000000 +0300
+++ apticron.conf       2009-06-17 10:57:18.000000000 +0300
@@ -38,3 +38,9 @@
 # "ip" command
 #
 # IPADDRESSES="192.0.2.1 2001:db8:1:2:3::1"
+
+#
+# Set APTICRON_IN_SUBJECT if you like apticron to add "[apticron]" in the 
subject of
+# the notification e-mails. This helps filtering/sorting client-side e-mail.
+#
+# APTICRON_IN_SUBJECT="1"



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to