From owner-freebsd-questions Thu Sep 21 17:25:22 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cliff.i-plus.net (cliff.i-plus.net [209.100.20.42]) by hub.freebsd.org (Postfix) with ESMTP id 667C437B43C for ; Thu, 21 Sep 2000 17:25:17 -0700 (PDT) Received: from arcadia (ARCADIA.PSKNET.COM [63.171.251.13]) by cliff.i-plus.net (Postfix) with SMTP id 37451418B; Thu, 21 Sep 2000 20:25:16 -0400 (EDT) From: "Troy Settle" To: "Francis A. Vidal" Cc: "FreeBSD Questions" Subject: RE: Default IMAP INBOX to $HOME/Mailbox Date: Thu, 21 Sep 2000 20:25:50 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Francis, The code you originally posted was using the variable 'myHomeDir', which will not work. You need to use the function 'myhomedir()', and it will work. I promise. It took me a while to get it to function right as well, but eventually, I got it done. -- Troy Settle Pulaski Networks 540.994.4254 It's always a long day, 86400 doesn't fit into a short > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Francis A. > Vidal > Sent: Thursday, September 21, 2000 8:23 PM > To: Troy Settle > Cc: FreeBSD Questions > Subject: RE: Default IMAP INBOX to $HOME/Mailbox > > > Hi Troy, > > I changed my patch file to something similar to yours but I still > can't make it work. I'm using the latest UW-IMAP package from the > ports tree (imap-4.7c2). > > ---- Quoting Troy Settle's message, sent 09/21/00 7:54pm ---- > > > Francis, > > > > You've almost got it. > > > > Here's what I've got in production right now: > > > > --- src/osdep/unix/env_unix.c.orig Thu Sep 21 22:56:39 2000 > > +++ src/osdep/unix/env_unix.c Thu Sep 21 22:57:02 2000 > > @@ -642,7 +642,7 @@ > > { > > char tmp[MAILTMPLEN]; > > if (!sysInbox) { /* initialize if first time */ > > - sprintf (tmp,"%s/%s",MAILSPOOL,myusername ()); > > + sprintf (tmp,"%s/%s",myhomedir(),".mail"); > > sysInbox = cpystr (tmp); /* system inbox is from > mail spool */ > > } > > return sysInbox; > > > > > > -- > > Troy Settle > > Pulaski Networks > > 540.994.4254 > > > > It's always a long day, 86400 doesn't fit into a short > > > > > > > -----Original Message----- > > > From: owner-freebsd-questions@FreeBSD.ORG > > > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Francis A. > > > Vidal > > > Sent: Thursday, September 21, 2000 7:44 PM > > > To: FreeBSD Questions > > > Subject: Default IMAP INBOX to $HOME/Mailbox > > > > > > > > > Hi all, > > > > > > I've created a patch (from one of the tutorials online) for IMAP 4.7c2 > > > to make the default INBOX to $HOME/Mailbox rather than > > > /var/mail/: > > > > > > --- src/osdep/unix/env_unix.c.orig Thu Sep 21 22:56:39 2000 > > > +++ src/osdep/unix/env_unix.c Thu Sep 21 22:57:02 2000 > > > @@ -642,7 +642,7 @@ > > > { > > > char tmp[MAILTMPLEN]; > > > if (!sysInbox) { /* initialize if first time */ > > > - sprintf (tmp,"%s/%s",MAILSPOOL,myusername ()); > > > + sprintf (tmp,"%s/%s",myHomeDir,"/Mailbox"); > > > sysInbox = cpystr (tmp); /* system inbox is from > mail spool */ > > > } > > > return sysInbox; > > > > > > This patches cleanly on my system but IMAP still reads the INBOX from > > > /var/mail/! I've also tried the suggestion from the IMAP > > > documentation but that also failed. > > -- > francis vidal university of st. la salle, bacolod city, philippines > . . . . . . . PGP key available via e-mail / subject: get PGP key > u s l s N E T tel nos. (+63.34).433.3526 / fax (+63.34).434.0415 > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message