[Gllug] KMail's disappearing inbox

Doug Winter doug at pigeonhold.com
Tue Feb 11 13:28:10 UTC 2003


On Tue 11 Feb Stig Brautaset wrote:
> procmail delivers to somewhere in your home directory, say,
> ~/Mail/inbox. I'm pretty sure uw-imapd can be reconfigured (recompiled?)
> to look in there for new mail instead.

Yes, it can.  Irritatingly it requires a recompile (a number of times I
have *very nearly* patched it to use a config file, like it ought, but
never quite got round to it :)

Here is a context diff you can use to patch the appropriate files from a
recent uw imapd distribution:

*** imap-2002b/src/osdep/unix/env_unix.c.orig   Wed Oct 30 17:55:54 2002
--- imap-2002b/src/osdep/unix/env_unix.c        Sun Jan 19 09:10:48 2003
***************
*** 29,35 ****
  static char *myMailboxDir = NIL;/* mailbox directory name */
  static char *myLocalHost = NIL;       /* local host name */
  static char *myNewsrc = NIL;  /* newsrc file name */
! static char *mailsubdir = NIL;        /* mail subdirectory name */
  static char *sysInbox = NIL;  /* system inbox name */
  static char *newsActive = NIL;        /* news active file */
  static char *newsSpool = NIL; /* news spool */
--- 29,35 ----
  static char *myMailboxDir = NIL;/* mailbox directory name */
  static char *myLocalHost = NIL;       /* local host name */
  static char *myNewsrc = NIL;  /* newsrc file name */
! static char *mailsubdir = "Mail/";    /* mail subdirectory name */
  static char *sysInbox = NIL;  /* system inbox name */
  static char *newsActive = NIL;        /* news active file */
  static char *newsSpool = NIL; /* news spool */
***************
*** 793,799 ****
  {
    char tmp[MAILTMPLEN];
    if (!sysInbox) {            /* initialize if first time */
!     sprintf (tmp,"%s/%s",MAILSPOOL,myusername ());
      sysInbox = cpystr (tmp);  /* system inbox is from mail spool */
    }
    return sysInbox;
--- 793,799 ----
  {
    char tmp[MAILTMPLEN];
    if (!sysInbox) {            /* initialize if first time */
!     sprintf (tmp,"%s/Mailbox",myhomedir());
      sysInbox = cpystr (tmp);  /* system inbox is from mail spool */
    }
    return sysInbox;

Cheers,

Doug.

-- 
key 1024D/6973E2CF print 2C95 66AD 1596 37D2 41FC  609F 76C0 A4EC 6973 E2CF
http://www.britishsteal.com                             doug at pigeonhold.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20030211/661741ad/attachment.pgp>


More information about the GLLUG mailing list