Vincent Danen <[EMAIL PROTECTED]> writes: [...]
> > http://archives.mandrakelinux.com/cooker/2003-01/msg04580.php > > Wierd. Never even saw that message. yeah, cooker is somewhat ill :-/ > > Ok, yes, you have valid points. So we have to patch these programs to > make the maildirs then. I suppose that could be done. Kind of a PITA, > but I suppose making a call to mkdir() before delivering mail would be > ok. in the programs writing to Maildir, replace: fd = open(file, O_WRONLY); if (fd == -1) error... with fd = open(file, O_WRONLY); if (fd == -1) { mkdir(dir, 0); fd = open(file, O_WRONLY); } if (fd == -1) error... not even an overhead when the dir exists! in the programs reading from Maildir, don't change anything (or maybe remove the error message happening when Maildir doesn't exist when it is expected to exist) > > No, wait... these are IMAP clients. Now here's a problem... > courier-imap doesn't deliver mail. Do we do the mkdir() when they > check for POP3 mail? you do the mkdir() when you wanna write a Maildir and the directory is missing. cf above! > So what happens to the mail before they do a POP3 > check? Where does it go if no Maildir. > > I guess we patch postfix to make this then (maybe it already does, I > don't know). > > The difference with things like ~/Desktop or ~/Mail or ~/nsmail, or > even ~/.bash_history, is they are not required before an application > needs them. Nothing else depends on .bash_history but bash. Nothing > needs ~/nsmail other than Netscape and similiar proggies. Postfix will > not deliver to ~/nsmail, so it doesn't need to exist. now, what is the difference with ~/.kde or ~/.gnome ? [...] > Another, better, question to ask is: do we pre-create /var/spool/mail? because this is: - a standard, we don't do the same with /var/spool/news - only at one place. What happens when the program needing ~/Maildir is installed *after* the users are created (using urpmi for example). And what happens with auto-mounted home (think NIS)?
