This patch create directory for incoming mail,
when it not
exist... Sorry for tags <gandie>
:)))
Simple use: patch <
file-with-patch
---
vdelivermail.c Thu Sep 6 23:24:24
2001
+++ g-vdelivermail.c Tue Sep 11 12:22:35 2001 @@ -49,6 +49,10 @@ char bounce[AUTH_SIZE]; int CurrentQuotaSizeFd; +//<gandie>
+char tempik[256]; +//</gandie> + #ifdef QMAIL_EXT char TheUserExt[AUTH_SIZE]; /* the User with '-' and following chars out if any */ #endif @@ -432,6 +436,14 @@ snprintf(local_file_new, 156, "%snew/%lu.%lu.%s,S=%lu", address,(long unsigned)tm,(long unsigned)pid,hostname, (long unsigned)message_size); + +//<gandie> + if (strlen(TheDir)) { + strncpy(tempik, TheDir, strlen(TheDir)-9); + vmake_maildir(tempik, 100, 104); + printf("create homedir: %s\n",tempik); + } +//</gandie2> /* open the new email
file */
if ((write_fd=open(local_file,O_CREAT|O_RDWR,S_IRUSR|S_IWUSR))== -1) { NIXNET.CZ - Váš webhosting u nás je již
připraven
|