Subject: pkg/32369: maildrop assumes HAVE_COURIER and thus does not get maildir from mysql
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <usebsd@free.fr>
List: pkgsrc-bugs
Date: 12/23/2005 17:10:01
>Number:         32369
>Category:       pkg
>Synopsis:       maildrop assumes HAVE_COURIER and thus does not get maildir from mysql
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 23 17:10:00 +0000 2005
>Originator:     mouss
>Release:        3.0 RC5
>Organization:
>Environment:
NetBSD ouzoud.netoyen.net 3.0_RC5 NetBSD 3.0_RC5 (GENERIC) #0: Thu Dec  1 01:48:31 UTC 2005  builds@b4.netbsd.org:/home/builds/ab/netbsd-3-0-RC5/i386/200511302123Z-obj/home/builds/ab/netbsd-3-0-RC5/src/sys/arch/i386/compile/GENERIC i386

>Description:
When maildrop is built from pkgsrc, the patch-ab modified the configure script so that it does not check for ../courier. As a consequence, this builds maildrop with HAVE_COURIER. the result of this is that maildrop will use the DEFAULT_DEF, which is "./Maildir". so the maildir configured in a backend (mysql here) is not used. 
>How-To-Repeat:
cd /usr/pkgsrc/maildrop
make update

then configure authdaemon to use a mysql db, where the maildir is configured, and run

# su vmail
$ maildrop -d root@domain.example ... < message.eml

maildrop will put the message in $HOME/Maildir/ where $HOME is the home dir of vmail (the user running the command)

>Fix:
- just removing patch-ab fixes the problem.
- use a pkgsrc option if HAVE_COURIER is needed in some setups