Maildrop didn't want to compile without a /var/spool/mail. (./configure failed, saying it couldn't find the system mailbox). I also had to modify maildrop/config.h so it would point to $HOME/.maildir. The configure switch to enable this behaviour doens't do anything i guess...
Creating a new attachment doesn't work... Pasting my patch below. *** maildrop-1.3.6.ebuild Wed Dec 19 08:40:39 2001 --- maildrop-1.3.6-r1.ebuild Wed Mar 6 18:08:05 2002 *************** *** 17,22 **** --- 17,25 ---- src_compile() { + if [ ! -d /var/spool/mail ]; then + mkdir -p /var/spool/mail + fi ./configure --host=${CHOST} \ --prefix=/usr \ --mandir=/usr/share/man \ *************** *** 25,31 **** --disable-tempdir --enable-syslog=1 \ --enable-maildirquota \ --enable-userdb || die ! make || die } --- 28,35 ---- --disable-tempdir --enable-syslog=1 \ --enable-maildirquota \ --enable-userdb || die ! cp maildrop/config.h maildrop/config.h.bak ! cat maildrop/config.h.bak | sed -e 's;\(DEFAULT_DEF\).*;\1 "./.maildir";' > maildrop/config.h make || die }
Hey Grant :) Of course, we can't create the /var/spool/mail directory as Jan has done, but we need to fix it somehow. Forwarding to you for assistance.
Here is another suggested patch (needs some work i guess). The patch has to be applied to $SRC_DIR/maildrop/configure (not $SRC_DIR/configure). It doesn't allow /var/spool/mail or something like that, without the user editing $SRC_DIR/maildrop/config.h. I don't know if that's a problem... Here is the patch: *** configure.old 2001-11-27 14:18:36.000000000 +0100 --- configure 2002-03-18 00:24:17.000000000 +0100 *************** *** 3210,3237 **** get_spooldir() { ! ! for f in /var/spool/mail /usr/spool/mail /var/mail /usr/mail ! do ! test_spooldir "$f" ! if test "$SPOOLDIR" != "" ! then ! return 0 ! fi ! done ! ! # Not found, possibly qmail $HOME/Mailbox ! if test "$QMAIL" != "" ! then ! SPOOLDIR="./Mailbox" ! else ! if test -d $srcdir/../courier ! then ! SPOOLDIR="./Maildir" ! else ! { echo "configure: error: Cannot determine default mailbox" 1>&2; exit 1; } ! fi ! fi } check_spooldir() { --- 3210,3216 ---- get_spooldir() { ! SPOOLDIR="./.maildir" } check_spooldir() {
The workaround should be fine for the moment. The main problem seems to be that the ./configure script is seriously broken for people using maildrop w/o either a standard mbox spool or qmail and ~/Maildir. We need to seriously modify how we do mail stuff w/ gentoo, so a real fix will have to wait a bit.
Reassigning to you since you've been re-working our mail system.
The latest build of maildrop includes support for setting the proper maildrop directory (--with-default-maildrop=./.maildir/) which corresponds with the gentoo default. I have also changed the dependancies to include net-mail/mailbase which installs /var/spool/mail and associated symlinks for mail programs. emerge rsync emerge maildrop Updated ebuild should be available on rsync servers within 24 hours. Please test and let me know how things work for you.
anybody still around on this bug? Can I get a verification that maildrop compiles and sets things properly with gentoo system defaults?