View Single Post
  #2  
Old 5th August 2011, 09:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,172 Times in 4,055 Posts
Default

Quote:
My next problem is that in /usr/local/ispconfig/server/plugins-enabled/mail_plugin.inc.php the subfolder "sieve" is not created. I would like to create that folder when the subfolders Junk, Trash, Sent and Inbox are created. Due it is a normal folder and not a maildir I can't use existing code. To admit that: I'm not much of a php-coder. Is it sufficient to add the creation of that folder in the mentioned file - and - (I feel a bit ashamed) with which code-line?
The command to create a directory is:

mkdir("/path/to/the/directory");

Quote:
two times. Is that suffiecient to fulfill my goal?
Yes. But be aware that some email client will complain when you use a structure without the Maildir directory. We had that before but it causes errors in outlook if I remember correctly, as outlook requires that no other files or folders are in the directory that contains the mailfolders, otherwise it will display the foolders in the imap folder list and will show a error if someone tries to subscribe to that "non maildir" folder.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote