procmail
[Top] [All Lists]

Re: mail directory hashing (WAS Re: procmail digest, Vol 1 #171 - 16 msgs )

2000-10-16 18:07:42
jello <jello(_at_)lava(_dot_)net> writes:
On Mon, 16 Oct 2000 guenther+procmail(_at_)gac(_dot_)edu wrote:

jello <jello(_at_)lava(_dot_)net> writes:
On Mon, 16 Oct 2000 guenther+procmail(_at_)gac(_dot_)edu wrote:

jello <jello(_at_)lava(_dot_)net> writes:
Well see the thing is that when I *do* have these values changed
(MAILSPOOLDIR set to /var/mail and MAILSPOOLHASH set to 2), procmail
...
src/authenticate.c snippet:

#ifndef MAILSPOOLDIR
#define MAILSPOOLDIR    "/var/mail/spool/"          /* watch the trailing /
 */
#endif

There's a discrepancy between what you said and the code you just quoted.
Indeed, that snippet looks misquoted, as it has "spool" after "mail"
instead of before it.  What are you showing us?

Aye.  You see spool/ after /var/mail.  That part is  misquoted, but
further on you'll see that I recompiled things with MAILSPOOLDIR as
/var/mail/ (without the "spool/") and had the same results.

spool has *always* been after /var/mail in my configurations, yet when I
take out the default line (as you requested), it attempts delivery in
/var/spool/mail.  

Doh!  Unlike some other settings, the setting of MAILSPOOLDIR determined
automatically and put in autoconf.h will by default override the setting
at the top of the MAILSPOOLDIR.  Or more precisely, since it's already
set when that #ifndef is seen, the #define in src/authenticate.c if
skipped.  So, you should either change the setting of MAILSPOOLDIR in
the autoconf.h file or put
        #undef MAILSPOOLDIR

right before the #ifndef.

<sigh>

I've updated the comment in the src/authenticate.c file for future
versions.  My apologies for being so doubting.  You were correct.


Philip Guenther

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail