procmail
[Top] [All Lists]

Re: authenticate.c problem

2001-09-10 23:25:56
Rino Mardo <rmardo(_at_)yahoo(_dot_)com> writes:
...
hi.  i'm trying to move the system mailbox from "/var/mail/<users>" to
"$HOME/<user>" and in "~/procmail-3.15.2/examples/advanced" it says to edit
"~/procmail-3.15.2/config.h" which in turn says to edit
"~/procmail-3.15.2/src/authenticate.c".

right so now i have "authenticate.c" in front of me and this following defines
stumps me:

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

how can i set MAILSPOOLDIR to use $HOME/Mail?  will it accept environment
variables like $HOME?

If you want the default mailspool to be $HOME/Mail, then look about six
lines further down in src/authenticate.c.  You'll find a couple lines
that read:

/*#define MAILSPOOLHOME "/.mail"                      /* watch the leading / */
                                                  /* delivers to $HOME/.mail */


Delete the leading "/*" on the first of those and change "/.mail" to "/Mail"
so that it looks like:

#define MAILSPOOLHOME "/Mail"                         /* watch the leading / */
                                                  /* delivers to $HOME/.mail */

Then recompile and reinstall.


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

<Prev in Thread] Current Thread [Next in Thread>