Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th September 2010, 13:01
george_yohng george_yohng is offline
Junior Member
 
Join Date: Jun 2010
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Maildir creation in the latest ISPConfig3 SVN

Hello,

Looks like maildir creation script in the latest ISPConfig3 SVN is broken for the fact, that it adds too many apostrophes.

In addition to a normal maildir, I have a such peculiar folder structure inside /root home directory:

'
'/var
'/var/vmail
'/var/vmail/mydomain1.com
'/var/vmail/mydomain1.com/test
'/var/vmail/mydomain1.com/test/Maildir
'/var/vmail/mydomain1.com/test/Maildir/.Trash'
'/var/vmail/mydomain1.com/test/Maildir/.Trash'/tmp
'/var/vmail/mydomain1.com/test/Maildir/.Trash'/new
'/var/vmail/mydomain1.com/test/Maildir/.Trash'/cur
'/var/vmail/mydomain1.com/test/Maildir/.Junk'
'/var/vmail/mydomain1.com/test/Maildir/.Junk'/tmp
'/var/vmail/mydomain1.com/test/Maildir/.Junk'/new
'/var/vmail/mydomain1.com/test/Maildir/.Junk'/cur
'/var/vmail/mydomain1.com/test/Maildir/.Sent'
'/var/vmail/mydomain1.com/test/Maildir/.Sent'/tmp
'/var/vmail/mydomain1.com/test/Maildir/.Sent'/new
'/var/vmail/mydomain1.com/test/Maildir/.Sent'/cur
'/var/vmail/mydomain1.com/test/Maildir/.Drafts'
'/var/vmail/mydomain1.com/test/Maildir/.Drafts'/tmp
'/var/vmail/mydomain1.com/test/Maildir/.Drafts'/new
'/var/vmail/mydomain1.com/test/Maildir/.Drafts'/cur
'/var/vmail/mydomain1.com/test/Maildir/courierimapsubscribed'
'/var/vmail/mydomain1.com/test/Maildir/subscriptions'
'/var/vmail/mydomain1.com/test/Maildir'
'/var/vmail/mydomain1.com/test/Maildir'/tmp
'/var/vmail/mydomain1.com/test/Maildir'/new
'/var/vmail/mydomain1.com/test/Maildir'/cur
'/var/vmail/maildomain.com
'/var/vmail/maildomain.com/test
'/var/vmail/maildomain.com/test/Maildir
'/var/vmail/maildomain.com/test/Maildir/.Trash'
'/var/vmail/maildomain.com/test/Maildir/.Trash'/tmp
'/var/vmail/maildomain.com/test/Maildir/.Trash'/new
'/var/vmail/maildomain.com/test/Maildir/.Trash'/cur
'/var/vmail/maildomain.com/test/Maildir/.Junk'
'/var/vmail/maildomain.com/test/Maildir/.Junk'/tmp
'/var/vmail/maildomain.com/test/Maildir/.Junk'/new
'/var/vmail/maildomain.com/test/Maildir/.Junk'/cur
'/var/vmail/maildomain.com/test/Maildir/.Sent'
'/var/vmail/maildomain.com/test/Maildir/.Sent'/tmp
'/var/vmail/maildomain.com/test/Maildir/.Sent'/new
'/var/vmail/maildomain.com/test/Maildir/.Sent'/cur
'/var/vmail/maildomain.com/test/Maildir/.Drafts'
'/var/vmail/maildomain.com/test/Maildir/.Drafts'/tmp
'/var/vmail/maildomain.com/test/Maildir/.Drafts'/new
'/var/vmail/maildomain.com/test/Maildir/.Drafts'/cur
'/var/vmail/maildomain.com/test/Maildir/courierimapsubscribed'
'/var/vmail/maildomain.com/test/Maildir/subscriptions'

I can imagine that the maildir path is escaped one time too many when being passed to the actual directory creating utility.

Thanks,
George.
Reply With Quote
Sponsored Links
  #2  
Old 19th September 2010, 13:15
george_yohng george_yohng is offline
Junior Member
 
Join Date: Jun 2010
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Despite this, bare maildirs (without Drafts/Sent/Junk/Trash) also seem to be created at the proper location (by dovecot?) and mail functions properly. 'courierimapsubscribed' is not created in the proper location, but this file is probably not needed (dovecot is used and configured).
Reply With Quote
  #3  
Old 19th September 2010, 14:02
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Thanks for the bugreport. I've fixed that in svn.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
jwarnier (24th September 2010)
  #4  
Old 19th September 2010, 14:04
george_yohng george_yohng is offline
Junior Member
 
Join Date: Jun 2010
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just a short note - on another test server I also found /root/'/var/backup' folder. I don't know, if this is related, or a separate place to be fixed.
Reply With Quote
  #5  
Old 19th September 2010, 14:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Thats a separate problem. I will take a look at the sources.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 24th September 2010, 22:46
jwarnier jwarnier is offline
Member
 
Join Date: Jan 2008
Location: Brussels, Belgium
Posts: 34
Thanks: 5
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till View Post
Thanks for the bugreport. I've fixed that in svn.
Actually, it was due to a series of bugs I introduced while removing exec() calls where escapeshellarg() was used instead of escapeshellcmd().

My bad, sorry for that.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 latest SVN problems george_yohng Developers' Forum 17 2nd March 2011 12:13
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 04:24
Problems with Yum following The Perfect Server - CentOS 5.3 x86_64 Guide GOPalmer HOWTO-Related Questions 7 1st July 2009 14:20
ISPConfig3 latest from SVN not reading my raid info correctly binaryrogue General 2 18th March 2009 18:41
debian etch courier pop3 issue docean Installation/Configuration 6 20th March 2008 15:38


All times are GMT +2. The time now is 23:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.