Bug#406989: need to tell exim4_refresh_gnutls-params to use a different spooldirectory

Marc Haber mh+debian-packages at zugschlus.de
Tue Jan 16 19:26:02 CET 2007


tags #406989 confirmed pending
thanks

On Sun, Jan 14, 2007 at 03:17:59PM +0100, Simon Walter wrote:
> Using exim4 with MailScanner modifies the configuration so exim has
> two spooldirectories. First one for incoming messages (exim4 ...)
> second one for outgoing (exim4 -DOUTGOING ...). MailScanner takes the
> messages from incoming, scanns them an places them into outgoing.

I have thought that mailscanner had _FINALLY_ stopped messing with
exim's _INTERNAL_ data structures which is absolutely _ASKING_ for
trouble. Alas, it doesn't seem to be that way. Bad program.

> So I need a way to tell exim4_refresh_gnutls-params to deligate the
> -DOUTGOING to its exim4 call or tell exim4_refresh_gnutls-params
> directly in which spooldirectory it should work.

The following patch allows the spool directory variable (which has
been renamed to EXIM4_SPOOLDIR) to be overridden fromthe parent
environment.

> Related mailscanner bugs is: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=406814

Mailscanner _IS_ a bug. See above.

Greetings
Marc

Index: debian/exim4_refresh_gnutls-params
===================================================================
--- debian/exim4_refresh_gnutls-params  (revision 1895)
+++ debian/exim4_refresh_gnutls-params  (working copy)
@@ -7,7 +7,7 @@
 fi


-# regenerate $SPOOLDIR/gnutls-params
+# regenerate $EXIM4_SPOOLDIR/gnutls-params
 # As this can take _very_ long on machines with little entropy, we limit
 # the maximum runtime to 2*$CERTTOOLTIMEOUT seconds and keep using the
 # old file otherwise.
@@ -25,12 +25,12 @@

 TIMEOUT=${1:-1800}

-SPOOLDIR="$(/usr/lib/exim4/exim4 -bP spool_directory | sed 's/.*=[[:space:]]\(.*\)/\1/')"
-cd $SPOOLDIR
+EXIM4_SPOOLDIR="${EXIM4_SPOOLDIR:-$(/usr/lib/exim4/exim4 -bP spool_directory | sed 's/.*=[[:space:]]\(.*\)/\1/')}"
+cd $EXIM4_SPOOLDIR

-PARAMFILE="$SPOOLDIR/gnutls-params"
+PARAMFILE="$EXIM4_SPOOLDIR/gnutls-params"

-tempgnutls=$(tempfile -d $SPOOLDIR -p "gnutp" )
+tempgnutls=$(tempfile -d $EXIM4_SPOOLDIR -p "gnutp" )

 if [ -x /usr/bin/certtool ] ; then
   # GnuTLS
Index: debian/changelog
===================================================================
--- debian/changelog    (revision 1895)
+++ debian/changelog    (working copy)
@@ -2,8 +2,10 @@

   * Add ta (Tamil) translation of Tirumurti Vasudevan
     Closes: #406974
+  * exim4_refresh_gnutls-params: allow EXIM4_SPOOLDIR to be overridden from
+    the environment.

- -- Marc Haber <mh+debian-packages at zugschlus.de>  Sat,  6 Jan 2007 22:48:28 +0100
+ -- Marc Haber <mh+debian-packages at zugschlus.de>  Tue, 16 Jan 2007 19:23:19 +0100

 exim4 (4.63-15) unstable; urgency=low


-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835




More information about the Pkg-exim4-maintainers mailing list