Mailing List Archive

imapd patch for qmail
Someone mentioned the need for an imapd... I'm guessing
they really meant they want an imapd that supports Maildir.

But if all people want is an imapd that's tweaked to support
qmail's ~/Mailbox it's pretty trivial. Here's a patch against
<ftp://ftp.cac.washington.edu/imap/imap-4.1.BETA.tar.Z> (which according
to the bulletin released today does not have the security flaw just
found).

Compile with "make EXTRACFLAGS=-DHOMEDIRMAIL ostype".

No I make no guarantees that imapd is up to the same security standards
as qmail.

BTW, when wishing for Maildir support you should be sure of what you're
getting. It does have higher i/o overhead than mailboxes. For example,
if you've got typical users who keep several thousand messages in their
inbox then Maildir can hurt. It's the same performance pig that mh
folders are. It all depends on what you're trying to solve.

Dean

diff -c3 -r imap-4.1.BETA.dist/src/osdep/unix/env_unix.c imap-4.1.BETA/src/osdep/unix/env_unix.c
*** imap-4.1.BETA.dist/src/osdep/unix/env_unix.c Wed Nov 27 21:15:39 1996
--- imap-4.1.BETA/src/osdep/unix/env_unix.c Fri Feb 28 21:03:46 1997
***************
*** 428,434 ****
--- 428,438 ----
{
char tmp[MAILTMPLEN];
if (!sysInbox) { /* initialize if first time */
+ #ifndef HOMEDIRMAIL
sprintf (tmp,"%s/%s",MAILSPOOL,myUserName);
+ #else
+ sprintf (tmp,"%s/Mailbox",myHomeDir);
+ #endif
sysInbox = cpystr (tmp); /* system inbox is from mail spool */
}
return sysInbox;