You are here: Cyberhome » DebianPackages » UwImapd
  • Anpassungen im File: uw-imap-2001adebian/build-tree/imap-2001a/src/osdep/unix/env_unix.c

aus der Dokumentation:

Example 1: suppose your mailer delivers mail to file ".mailbox" in the user's home directory instead of the default UNIX mail spool directory. You will want to change routine sysinbox(), changing the line that reads: sprintf (tmp,"%s/%s",MAILSPOOL,myusername ()); to be: sprintf (tmp,"%s/.mailbox",myhomedir ());

Example 2: suppose you want to change c-client's idea of the user's mailbox directory to be the "mail" subdirectory of the user's home directory instead of the user's home directory. You will want to change variable mailsubdir, changing the line that reads:

static char mailsubdir = NIL; / mail subdirectory name */ to be: static char mailsubdir = "mail";/ mail subdirectory name */

Das ganze muss als patch im patch verzeichniss abgelegt werden. Der aktuelle patch lautet:

--- imap-2001a.orig/src/osdep/unix/env_unix.c   Thu Mar 13 19:22:11 2003
+++ imap-2001a/src/osdep/unix/env_unix.c        Thu Mar 13 19:09:48 2003
@@ -29,7 +29,7 @@
 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 *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 */
@@ -683,9 +683,11 @@
       sysInbox = cpystr (tmp); /* make system INBOX */
       anonymous = T;           /* flag as anonymous */
     }
-    myHomeDir = cpystr (home); /* set home directory */
+       sprintf(tmp,"%s/Mail",home); /*bt only show Mail dir*/
+       myHomeDir = cpystr (tmp);
+/*     myHomeDir = cpystr (home);*//* use real home directory */
   }
-^L
+
   if(!myHomeDir) myHomeDir = cpystr("");  /* if myHomeDir is still a null pointer */

   if (allowuserconfig) {       /* allow user config files */
@@ -803,7 +805,9 @@
 {
   char tmp[MAILTMPLEN];
   if (!sysInbox) {             /* initialize if first time */
-    sprintf (tmp,"%s/%s",MAILSPOOL,myusername ());
+    /* bt changed from : sprintf (tmp,"%s/%s",MAILSPOOL,myusername ());
+     *       to: */
+              sprintf (tmp,"%s/Inbox",myhomedir ());  /*remember we also changed myHomeDir !!*/
     sysInbox = cpystr (tmp);   /* system inbox is from mail spool */
   }
   return sysInbox;

Erstellt wurde der patch mit: diff -ruN imap-2001a.orig/src/osdep/unix/env_unix.c imap-2001a/src/osdep/unix/env_unix.c
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding wiki.doebe.li? Send feedback