mirror of
https://github.com/opensolutions/ViMbAdmin.git
synced 2026-04-26 00:36:00 +03:00
[GH-ISSUE #34] Use PostfixAdmin core code? #29
Labels
No labels
bug
feature
feature
improvement
improvement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ViMbAdmin-opensolutions#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cboltz on GitHub (Feb 14, 2013).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/34
Hello,
I'm one of the PostfixAdmin authors and would like to ask if you are interested in using the PostfixAdmin core code instead of re-inventing the wheel all the time ;-)
I'm currently working on a full rewrite of PostfixAdmin, which has PHP classes for each part (AliasHander, MailboxHandler, AliasdomainHandler, AdminHandler etc.) that does all the work, and a common edit.php that works for all of them. (You can find the code in SVN trunk on sf.net/projects/postfixadmin - this will become the 3.0 release.)
This also means: You could use the *Handler classes and would only have to maintain your version of edit.php as a "skin". You'd also get all new features (for example alias domains and a commandline client) and bugfixes in PostfixAdmin for free ;-)
If you are interested or have any questions, just reply here, join the #postfixadmin channel on freenode or the PostfixAdmin mailinglist on sourceforge.
Regards,
Christian Boltz
@lenada commented on GitHub (Feb 22, 2013):
To me http://sourceforge.net/p/postfixadmin/code/1435/tree/trunk/edit.php still looks very spagetti. No offence but I think opensolutions have a good point in
reinventing the wheel@cboltz commented on GitHub (Feb 23, 2013):
Thanks for your feedback!
edit.php supports creating and editing all things (mailboxes, aliases, admins etc.) and reconfigures itsself based on the thing to edit, which also means it needs some pragmatic[tm] coding. I wouldn't call it spaghetti ;-) but that might depend on the POV (and I'm of course open to suggestions how to enhance the code). As I said, edit.php is just a frontend / "skin", and is the part ViMbAdmin would probably need to replace anyway.
For ViMbAdmin, the more interesting code are the classes in model/*Handler.php. They do all the work and are quite easy to use.
To give you an example, here's how to edit an alias:
When using AJAX to validate the input on the fly, stop after $handler->set() and check if there's for example an error in the 'goto' field:
Does this still look like spaghetti? ;-)
@lenada commented on GitHub (Feb 23, 2013):
@cboltz this is probably not the right place to review code of a different project ;) Where would be the appropriate place to give feedback/review? SF?
@cboltz commented on GitHub (Feb 23, 2013):
yes, sourceforge ( http://sourceforge.net/projects/postfixadmin/ ) is a good place - either in the forum or subscribe to the postfixadmin-devel mailinglist.
If you like IRC, you can also meet me in the #postfixadmin channel on freenode. I'm usually there in the evening (CET).
@barryo commented on GitHub (Sep 10, 2013):
Sorry for the late reply - we won;t be using Postfix core code but thanks for the suggestion. V3 is already complete bar some final review and tests and has been for some time. It would be a backward step to change now.