Michael Heim <mheim(_at_)colltech(_dot_)com> writes:
Where/how should I modify the procmail source to deliver to a
/home/user/.mailspool/user spool?
Specific source examples are appreciated.
Is there some particular reason for including the username as well as
the home directory in the path to the mailspool? If not, and you could
simplify it to /home/user/.mailspool/mail or /home/users/.mailspool,
then it would simply be a matter of editing a #define in
src/authenticate.c (this all with procmail 3.11pre7).
However, if this is not something that can be changed, you could do
the following:
1) uncomment the #define of MAILSPOOLHOME
2) change that define to have the value "/.mailspool/"
3) edit the beginning of auth_mailboxname() function later in that file
to read as follows:
const char*auth_mailboxname(pass)auth_identity*const pass;
{ if(!pass->mbox)
#ifdef MAILSPOOLHOME
{ static const char mailfile[]=MAILSPOOLHOME;size_t i;
if(!(pass->mbox=malloc((i=strlen(pass->pw->pw_dir))+STRLEN(mailfile)+
strlen(pass->pw->pw_name)+1)))
return "";
strcpy(pass->mbox,pass->pw->pw_dir);
strcpy(pass->mbox+i,mailfile);
strcpy(pass->mbox+i+STRLEN(mailfile),pass->pw->pw_name);
#else
...
Philip Guenther