bugweb-cyradm - Bugs: bug #8241, WISH: Initial mailbox config


bug #8241: WISH: Initial mailbox config

Submitted by:  Anders Norrbring <MrPiercer>
Submitted on:  Mon Mar 22 07:27:29 2004  
Category: mainSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Wish
Status: Ready For TestPrivacy: Public
Assigned to: Lukasz Marciniak <landm>Originator Name: MrPiercer
Open/Closed: OpenRelease: 0.5.3
Operating System: GNU/LinuxReproducibility: Every Time
Planned Release: 0.5.5Cyrus IMAP version: 2.1.x
PHP version: 4.3Database type: MySQL 4.1

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Thu Sep 7 10:33:42 2006, comment #6:

Will start testing it any day.. :)

Anders Norrbring <MrPiercer>
Fri Aug 11 17:56:23 2006, comment #5:

I've added basic functionality for automatic folder creation (svn version 816). It needs one extra column in domain table (sql script attached). For now it is available only for superadmin and there is no support for non-english letters in folder names.
Thanks for Ryan Brown. Changes are based on his patches.
Tests are VERY welcome ;-)

Lukasz Marciniak <landm>
Project MemberIn charge of this item.
Tue May 17 07:54:41 2005, comment #4:

I decided that it was easy enough to code this my self. I've uploaded two diff files, one for lib/cyradm.php and one for newaccount.php. Apply these two patches and add a line like:
$AUTOCREATE_MAILBOXES = array("INBOX.Junk", "INBOX.Sent", "INBOX.Trash", "INBOX.Drafts");
to your conf.php file.

A few notes:
You must specify the mailbox names as they would appear to the client. This means that if cyrus's altnamespace option is yes, an item in AUTOCREATE_MAILBOXES would be "Junk" rather than "INBOX.Junk". And if unixhierarchysep is yes then it would be "INBOX/Junk". This is necessary because the mailboxes are not just added but subscribed to as well, and subscribing can only be done by a client connected to his IMAP account (not a cyrus admin). Thanks to Tim Schaab (tim at madtown.cc), for whoms post to the mailing list this is based.

Ryan Brown <rbrown46>
Tue May 17 05:47:58 2005, comment #3:

I for one would really like to see this feature. As far as naming conventions; the structure should be configurable via variables in conf.php, with English defaults. My mail server currently does server-side filtering of junk mail. When junk mail is received it is put into a specific IMAP mailbox. As it stands now I have to manually create this mailbox when adding new users. This feature would save me from having to do that.


Ryan Brown <rbrown46>
Sun Dec 12 01:02:12 2004, comment #2:

Check out Hsys-Mailadmin, an alternative to webcyradm:

You can define that structure in the config-file. Don't be afraid of all the German text on that page - the tool itself is localized.

Sun Apr 4 14:28:06 2004, comment #1:

Usually MUA's create the needed folders by them self. One more problem is language dependency of folder naming. The community is asked to vote how to go further with this issues and make some suggestions how to solve this issue for everybodys convenience.

Luc de Louw <delouw>
Project Administrator
Mon Mar 22 07:27:29 2004, original submission:

Would it be possible to add some functionality to Web-cyradm so that it sets up mailboxes and rules when the accounts are created?

I was thinking in the line of when a mailbox/account is created it should create a structure like:


And on top of that set up the rules so that sent mail will be moved to INBOX.Sent and deleted mail to INBOX.Trash etc.

I'm about to set up a mail/web hosting site, and that functionality would be really nice to have, instead of having to run cyradm all the time for all accounts...


Anders Norrbring <MrPiercer>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #10521:  upgrade-0.5.5cvs-to-0.5.5_pgsql.sql added by landm (171B - application/octet-stream - DB update script for 0.5.5beta1)
file #10520:  upgrade-0.5.5cvs-to-0.5.5_mysql.sql added by landm (69B - application/octet-stream - DB update script for 0.5.5beta1)
file #2976:  newaccount.php.diff added by rbrown46 (603B - application/octet-stream - newaccount.php diff)
file #2975:  cyradm.php.diff added by rbrown46 (598B - application/octet-stream - lib/cyradm.php diff)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.


Please enter the title of George Orwell's famous dystopian book (it's a date):



Follow 10 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri Aug 11 17:57:35 2006landmAttached File-=>Added upgrade-0.5.5cvs-to-0.5.5_pgsql.sql, #10521
Fri Aug 11 17:56:23 2006landmStatusIn Progress=>Ready For Test
  Planned ReleaseNone=>0.5.5
  Attached File-=>Added upgrade-0.5.5cvs-to-0.5.5_mysql.sql, #10520
Fri Aug 11 12:53:15 2006landmStatusRemind=>In Progress
  Assigned toNone=>landm
Tue May 17 07:41:05 2005rbrown46Attached File-=>Added newaccount.php.diff, #2504
Tue May 17 07:40:09 2005rbrown46Attached File-=>Added cyradm.php.diff, #2503
Sun Apr 4 14:28:06 2004delouwStatusNone=>Remind
  Planned Release0.5.4=>None

Back to the top

Powered by Savane 3.1-cleanup1