From owner-freebsd-questions Fri Jul 28 1:18:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dkik.dk (per.dkik.dk [194.234.39.16]) by hub.freebsd.org (Postfix) with SMTP id 3817637B7C7 for ; Fri, 28 Jul 2000 01:18:10 -0700 (PDT) (envelope-from simon@dkik.dk) Received: (qmail 31686 invoked from network); 28 Jul 2000 08:19:31 -0000 Received: from bofh.nitro.dk (HELO chimera) (194.234.39.102) by per.dkik.dk with SMTP; 28 Jul 2000 08:19:31 -0000 Message-ID: <000201bff86c$6d1f7dc0$6627eac2@dkik.dk> From: "Simon Nielsen" To: Subject: imapd-wu and ./Mailbox Date: Fri, 28 Jul 2000 01:54:04 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello I'm trying to store user mail in ~/Mailbox. I'm using QMail as mailserver and it delivers the mail correctly to ~/Mailbox, but when I try to get mail with wu-imapd 4.7c (from the newest port) I won't read from there. I have patched it as suggested in the imapd documentation (see patch below), and I the patch is being applyed. When I make a symlink from /var/mail/ to /home//Mailbox I can get mail, but then imapd complains a lot about /var/mail/ not being a real file (i guess because it can lock the file correctly). I'm using FreeBSD 4.0-RELEASE. What do I need to do to make imapd use ./Mailbox? [simon@nitro simon]$ cat /usr/ports/mail/imap-uw/patches/patch-nitro --- src/osdep/unix/env_unix.c.orig Wed Jul 26 22:49:41 2000 +++ src/osdep/unix/env_unix.c Wed Jul 26 22:45:23 2000 @@ -642,7 +642,8 @@ { char tmp[MAILTMPLEN]; if (!sysInbox) { /* initialize if first time */ - sprintf (tmp,"%s/%s",MAILSPOOL,myusername ()); + #sprintf (tmp,"%s/%s",MAILSPOOL,myusername ()); + sprintf (tmp,"%s/Mailbox",myhomedir ()); sysInbox = cpystr (tmp); /* system inbox is from mail spool */ } return sysInbox; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message