Package: lwat
Version: 0.18~beta-3
Severity: important
Tags: patch

Hi,

as reported in http://bugs.skolelinux.org/show_bug.cgi?id=1438 the
creation of mail directories does not work on skolelinux. As reported
there, this is due to a commented cron job. However, the script
executed (/usr/share/lwat/scripts/mailnewuser) contains a bug which
prevents the creation of the mail directory. With the attached patch
the creation of the wellcome-mail worked for me.

Regards,
        Andi  


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-nouveau.git (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- mailnewuser_orig    2010-02-03 22:31:55.000000000 +0100
+++ mailnewuser 2010-02-04 17:10:05.000000000 +0100
@@ -38,7 +38,7 @@
 done 
 if [ "$AGE" ] ; then 
     DATESTAMP="$(date -u -d  -$AGE +%Y%m%d%H%M00Z)"
-    FILTER="$FILTER($createTimeStamp>=$DATESTAMP)"
+    FILTER="$FILTER(createTimeStamp>=$DATESTAMP)"
 fi
 
 if [ -z "$FILTER" ] ; then 
@@ -63,7 +63,7 @@
 
 Welcome to the mail-system. 
 
-Your email address is $usern...@intern
+Your email address is [email protected]
 
 Regards
 EOF

Reply via email to