Commit ba4aecd2 ba4aecd20ec81021349f54733acc4ac497d90f67 by Alain Magloire

* mailbox/folder_mbox.c (folder_mbox_open): Implemeted.

1 parent 79983b06
1 2001-09-06 Alain Magloire
2
3 * mailbox/folder_mbox.c (folder_mbox_open): Implemeted.
4
1 2001-09-05 Sergey Poznyakoff 5 2001-09-05 Sergey Poznyakoff
2 6
3 * MySql/MySql.h: New defines MHOST, MPORT, etc. 7 * MySql/MySql.h: New defines MHOST, MPORT, etc.
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
23 #include <sys/types.h> 23 #include <sys/types.h>
24 #include <dirent.h> 24 #include <dirent.h>
25 #include <sys/stat.h> 25 #include <sys/stat.h>
26 #include <fcntl.h>
26 #include <unistd.h> 27 #include <unistd.h>
27 #include <string.h> 28 #include <string.h>
28 #include <glob.h> 29 #include <glob.h>
...@@ -163,7 +164,11 @@ folder_mbox_destroy (folder_t folder) ...@@ -163,7 +164,11 @@ folder_mbox_destroy (folder_t folder)
163 static int 164 static int
164 folder_mbox_open (folder_t folder, int flags) 165 folder_mbox_open (folder_t folder, int flags)
165 { 166 {
166 (void)(folder); 167 fmbox_t fmbox = folder->data;
168 if (flags & MU_STREAM_CREAT)
169 {
170 return (mkdir (fmbox->dirname, S_IRWXU) == 0) ? 0 : errno;
171 }
167 (void)(flags); 172 (void)(flags);
168 return 0; 173 return 0;
169 } 174 }
......