Re: [Postfixadmin-devel] Add 'maildir' field to the 'Edit Mailbox' page
Brought to you by:
christian_boltz,
gingerdog
From: Christian B. <pos...@cb...> - 2014-04-05 19:56:24
|
Hello, Am Mittwoch, 2. April 2014 schrieb Tanstaafl: > I am encountering a problem where the inability to specify a different > maildir directory name for a few users (Administrative users), so > that their maildir is different from their login name. > > Looking at the code for edit-mailbox.php, it seems like it would be > fairly easy to do - for someone who knows this stuff... > > Is there kind soul who could help me with this? I'll do the work, but > need to make sure it is done right (this is a production system after > all)... Would it be possible for you to upgrade to SVN trunk? With the new code, this is probably a one-byte change (or 5 lines if you do it in the official, clean way with a hook function). You can also install SVN trunk in parallel - the database layout is compatible with 2.3.x. You only need to know two things: - run setup.php (of SVN trunk) to do some database upgrades - if you create new superadmins, create them with the SVN trunk code If you want to do it in 2.3.x, you'll need to add some code to edit-mailbox.php and its template. This shouldn't be too hard - just copy&paste the code of another field ;-) If you want a review, send the changes you do (as a patch) to the mailinglist before applying it to your production system. Oh, and there's still the hardcore solution - change the maildir directly in the database. If this only needs to be done for some admin users, it might be the easiest solution ;-) Regards, Christian Boltz -- macht ja nichts, dass 95'er ist doch schnell wieder installiert ;-) Und zur not gibts halt ein wenig geisterbeschwörung "Oh grosser Geist von Norton ich rufe dich. Erhöre mein Flehen und zeichne mir ein Abbild auf diese von Unrat befallene Festplatte...." [Daniel Brachmann in suse-talk] |