Package: dtc-common
Version: 0.29.17-1
Severity: wishlist
Tags: patch
There does not seem to be an option to switch off the renewal email
reminders, which is desirable on shared hosting servers. The attached
patch adds the feature for shared hosting, where a zero-size reminder
message file in /etc makes the reminder function return before it sends
email. This patch doesn't work on git HEAD due to the reminder i18n.
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.27.4 (SMP w/4 CPU cores)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages dtc-common depends on:
ii apache2 2.2.9-10+lenny6 Apache HTTP Server metapackage
ii apache2-mpm-prefo 2.2.9-10+lenny6 Apache HTTP Server - traditional n
ii bind9 1:9.5.1.dfsg.P3-1 Internet Domain Name Server
ii bzip2 1.0.5-1 high-quality block-sorting file co
ii ca-certificates 20080809 Common CA certificates
ii chrootuid 1.3-5 Run commands in restricted environ
ii courier-maildrop 0.60.0-2 Courier mail server - mail deliver
ii file 4.26-1 Determines file type using "magic"
ii gawk 1:3.1.5.dfsg-4.1 GNU awk, a pattern scanning and pr
ii libapache2-mod-lo 1.100-14 Use SQL to store/write your apache
ii libapache2-mod-ph 5.2.6.dfsg.1-1+lenny4 server-side, HTML-embedded scripti
ii libnss-mysql-bg 1.5-1 NSS module for using MySQL as a na
ii libpam-mysql 0.6.2-1 PAM module allowing authentication
ii locales 2.7-18 GNU C Library: National Language (
ii lsb-release 3.2-20 Linux Standard Base version report
ii mhonarc 2.6.16-1 Mail to HTML converter
ii mime-support 3.44-1 MIME files 'mime.types' & 'mailcap
ii mlmmj 1.2.15-1.1 mail server independent mailing li
ii mysql-client-5.0 5.0.51a-24+lenny2 MySQL database client binaries
ii mysql-server 5.0.51a-24+lenny2 MySQL database server (metapackage
ii mysql-server-5.0 5.0.51a-24+lenny2 MySQL database server binaries
ii ncftp 2:3.2.1-1 A user-friendly and well-featured
ii net-tools 1.60-22 The NET-3 networking toolkit
ii openssl 0.9.8g-15+lenny5 Secure Socket Layer (SSL) binary a
ii patch 2.5.9-5 Apply a diff file to an original
ii php-crypt-cbc 0.4-3 A class to emulate Perl's Crypt::C
ii php-fpdf 1.53.dfsg-6 PHP class to generate PDF files
ii php-pear 5.2.6.dfsg.1-1+lenny4 PEAR - PHP Extension and Applicati
ii php5 5.2.6.dfsg.1-1+lenny4 server-side, HTML-embedded scripti
ii php5-cli 5.2.6.dfsg.1-1+lenny4 command-line interpreter for the p
ii php5-curl 5.2.6.dfsg.1-1+lenny4 CURL module for php5
ii php5-gd 5.2.6.dfsg.1-1+lenny4 GD module for php5
ii php5-mysql 5.2.6.dfsg.1-1+lenny4 MySQL module for php5
ii pure-ftpd-mysql 1.0.21-11.4 Pure-FTPd FTP server with MySQL us
ii rrdtool 1.3.1-4 Time-series data storage and displ
ii sasl2-bin 2.1.22.dfsg1-23+lenny1 Cyrus SASL - administration progra
ii sbox-dtc 1.11-5 A CGI wrapper script for chrooted
ii spamassassin 3.2.5-2+lenny1 Perl-based spam filter using text
ii spamc 3.2.5-2+lenny1 Client for SpamAssassin spam filte
ii ssh 1:5.1p1-5 secure shell client and server (me
ii sudo 1.6.9p17-2 Provide limited super user privile
ii unzip 5.52-12 De-archiver for .zip files
ii webalizer 2.01.10-32.4 web server log analysis program
ii zip 2.32-1 Archiver for .zip files
dtc-common recommends no packages.
Versions of packages dtc-common suggests:
ii dtc-postfix-courier 0.29.17-1 web control panel for admin and ac
-- no debconf information
--- /usr/share/dtc/admin/reminders.php.orig 2009-11-30 17:30:23.000000000 +0000
+++ /usr/share/dtc/admin/reminders.php 2009-11-30 17:33:06.000000000 +0000
@@ -100,6 +100,10 @@
// only if the admin asks for it. We just let Debian manage them...
if(file_exists("/etc/dtc/reminders_msg/".$file)){
$fname = "/etc/dtc/reminders_msg/".$file;
+ // Zero-size reminders shouldn't be sent
+ if (filesize($fname)==0){
+ return 127;
+ }
}else{
$fname = $dtcshared_path."/reminders_msg/".$file;
}
--- /usr/share/dtc/admin/reminders.php.orig 2009-11-30 17:30:23.000000000 +0000
+++ /usr/share/dtc/admin/reminders.php 2009-11-30 17:33:06.000000000 +0000
@@ -100,6 +100,10 @@
// only if the admin asks for it. We just let Debian manage them...
if(file_exists("/etc/dtc/reminders_msg/".$file)){
$fname = "/etc/dtc/reminders_msg/".$file;
+ // Zero-size reminders shouldn't be sent
+ if (filesize($fname)==0){
+ return 127;
+ }
}else{
$fname = $dtcshared_path."/reminders_msg/".$file;
}