Am 2008-09-18 15:52:42, schrieb Peter Ivancik:
> Hi,
> 
> Was this bug fixed ? It looks not (debian etch/lenny).

This is NOT a Bug!

If you have setup procmail correctly, it  will  use  Maildirs.  However,
/var/mail/$LOGNAME is created as BACKUP IF delivery to $MAILDIR fails.

> It's problem, because we use Maildir (postfix+procmail delivery and users 
> are in ldap) and if for example user doesn't have Maildir directory (he 
> delete it), or ldap get slow response for $HOME variable etc. mail is 
> stored in /var/spool/mail/$LOGNAME and is never moved in Maildir.

...and why not create a simple check for it?

----8<-----------------------------------------------------
MAILDIR=${HOME}/Maildir
DEFAULT=${MAILDIR}/

DUMMY_EXEC=`if [ ! -d ${MAILDIR}/tmp ] || [ ! -d ${MAILDIR}/new ] || [ ! -d 
${MAILDIR}/cur ] ; then mkdir -p ${MAILDIR}/{tmp,new,cur} ; fi`

...
----8<-----------------------------------------------------

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature

Reply via email to