Package: exim4-config Version: 4.50-4 Severity: wishlist Tags: patch Hi,
Thanks for your work on exim4. I have played a bit with you package today and made a patch allowing to choose any other default name for ~/Maildir with update-exim4.conf. The idea is to be able to do with exim4 things similar as what is described here: http://www.ubuntulinux.org/wiki/MailStorageStandardisation . The patch is small though (I believe) complete, including bits for the man page and the README. Best regards, Frédéric Lehobey -- Package-specific info: Exim version 4.50 #1 built 02-Mar-2005 07:41:23 Copyright (c) University of Cambridge 2004 Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003) Support for: iconv() IPv6 GnuTLS Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis nis0 passwd Authenticators: cram_md5 plaintext Routers: accept dnslookup ipliteral manualroute queryprogram redirect Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp Fixed never_users: 0 Configuration file is /var/lib/exim4/config.autogenerated -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-2-k7 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages exim4-config depends on: ii adduser 3.63 Add and remove users and groups ii debconf [debconf-2.0] 1.4.30.11 Debian configuration management sy ii passwd 1:4.0.3-31sarge1 change and administer password and -- debconf information excluded
diff -ru exim4-4.50.orig/debian/README.Debian exim4-4.50/debian/README.Debian --- exim4-4.50.orig/debian/README.Debian 2005-03-30 13:31:56.995952000 +0000 +++ exim4-4.50/debian/README.Debian 2005-03-30 13:59:25.338366808 +0000 @@ -378,12 +378,19 @@ exim to change Reply-To, From, Sender and "MAIL FROM:" accordingly. The file includes examples. -Q: How to I setup exim4 to use Maildir and deliver to ~/Maildir instead +Q: How do I setup exim4 to use Maildir and deliver to ~/Maildir instead of to /var/mail/username? I need this for courier or dovecot. A: Add dc_localdelivery=maildir_home to /etc/exim4/update-exim4.conf.conf and run "invoke-rc.d exim4 reload". +Q: How can I change the default directory name for Maildir? + +A: Add +dc_maildirlocalname='myPreferredDirName' +to /etc/exim4/update-exim4.conf.conf and run "invoke-rc.d exim4 reload". +Mail will then be delivered to ~/myPreferredDirName. + # vim:tabstop=3:expandtab:shiftwidth=3:textwidth=73 diff -ru exim4-4.50.orig/debian/debconf/conf.d/transport/30_exim4-config_maildir_home exim4-4.50/debian/debconf/conf.d/transport/30_exim4-config_maildir_home --- exim4-4.50.orig/debian/debconf/conf.d/transport/30_exim4-config_maildir_home 2005-03-30 13:31:56.878970000 +0000 +++ exim4-4.50/debian/debconf/conf.d/transport/30_exim4-config_maildir_home 2005-03-30 13:44:04.357377200 +0000 @@ -7,7 +7,7 @@ maildir_home: debug_print = "T: maildir_home for [EMAIL PROTECTED]" driver = appendfile - directory = $home/Maildir + directory = $home/DEBCONFmaildirlocalnameDEBCONF delivery_date_add envelope_to_add return_path_add diff -ru exim4-4.50.orig/debian/debconf/update-exim4.conf exim4-4.50/debian/debconf/update-exim4.conf --- exim4-4.50.orig/debian/debconf/update-exim4.conf 2005-03-30 13:31:56.883969000 +0000 +++ exim4-4.50/debian/debconf/update-exim4.conf 2005-03-30 13:41:52.661398032 +0000 @@ -91,6 +91,7 @@ [ "x${CFILEMODE}" = "x" ] && CFILEMODE=644 [ "x${dc_use_split_config}" = "x" ] && dc_use_split_config='false' [ "x${dc_localdelivery}" = "x" ] && dc_localdelivery='mail_spool' +[ "x${dc_maildirlocalname}" = "x" ] && dc_maildirlocalname='Maildir' [ "x${UPEX4C_comments}" = "x" ] && UPEX4C_comments="${ue4c_keepcomments:-no}" mailname=`cat /etc/mailname | head -n 1` @@ -337,6 +338,7 @@ -e "sÄDEBCONFreturn_pathDEBCONFÄ${DEBCONFreturn_pathDEBCONF}Äg" \ -e "sÄDEBCONF_hardcode_primary_hostname_DEBCONFÄ${hardcode_primary_hostname}Äg" \ -e "sÄDEBCONFlocaldeliveryDEBCONFÄ${dc_localdelivery}Äg" \ + -e "sÄDEBCONFmaildirlocalnameDEBCONFÄ${dc_maildirlocalname}Äg" \ -e "sÄDEBCONFrewriteemailaddresses_mailnameDEBCONFÄ${dc_rewriteemailaddresses_mailname}Äg" \ | removecomments \ >> ${UPEX4C_outputfile}.tmp @@ -361,6 +363,7 @@ -e "sÄDEBCONFreturn_pathDEBCONFÄ${DEBCONFreturn_pathDEBCONF}Äg" \ -e "sÄDEBCONF_hardcode_primary_hostname_DEBCONFÄ${hardcode_primary_hostname}Äg" \ -e "sÄDEBCONFlocaldeliveryDEBCONFÄ${dc_localdelivery}Äg" \ + -e "sÄDEBCONFmaildirlocalnameDEBCONFÄ${dc_maildirlocalname}Äg" \ -e "sÄDEBCONFrewriteemailaddresses_mailnameDEBCONFÄ${dc_rewriteemailaddresses_mailname}Äg" \ < /etc/exim4/exim4.conf.template \ | removecomments \ diff -ru exim4-4.50.orig/debian/manpages/update-exim4.conf.8 exim4-4.50/debian/manpages/update-exim4.conf.8 --- exim4-4.50.orig/debian/manpages/update-exim4.conf.8 2005-03-30 13:31:56.974956000 +0000 +++ exim4-4.50/debian/manpages/update-exim4.conf.8 2005-03-30 14:32:20.173146288 +0000 @@ -172,6 +172,11 @@ transport for local delivery, i.e. usually mail_spool or maildir_home. It defaults to mail_spool if dc_localdelivery is unset. .TP +.I DEBCONFmaildirlocalnameDEBCONF +is replaced by the contents of dc_maildirlocalname in +/etc/exim4/update\-exim4.conf.conf. It defaults to Maildir if unset. Its +use is relevant only when dc_localdelivery is set to maildir_home. +.TP .I DEBCONFrewriteemailaddresses_mailnameDEBCONF is replaced with this rewriting rule: .br @@ -239,8 +244,14 @@ .TP .I dc_localdelivery name of the default transport for local mail delivery. Defaults to mail_spool -if unset, use maildir_home for delivery to ~/Maildir/. This setting -does not correspond to a Debconf question and needs to be set manually. +if unset, use maildir_home for delivery to ~/Maildir/ or directory name set +in dc_maildirlocalname. This setting does not correspond to a Debconf +question and needs to be set manually. +.TP +.I dc_maildirlocalname +name of the Maildir directory in users home. Defaults to Maildir if unset. +This setting does not correspond to a Debconf question and needs to be set +manually. Like \(lqdc_maildirlocalname='.Maildir'\(rq. .TP .I ue4c_keepcomments Boolean option that controls whether