Re: [Postfixadmin-devel] refactoring
Brought to you by:
christian_boltz,
gingerdog
From: Christian B. <pos...@cb...> - 2008-07-28 12:08:16
|
Hello, Am Montag, 28. Juli 2008 schrieb Guido 'lenix' Böhm: > i just subscribed to the list. I've seen the recent > "Refactoring" thread in the archives and would like to > participate if anybody is interested. Yes, of course ;-) > What would you guys think about using ZendFramework [1] > for the ORM [2] and validation part at least? Good question - I don't know it, so I can't really answer. After having a quick look at the documentation, it looks like it has lots of things we'll never need and might therefore cause some overhead. (I can't judge if it is worth it ;-) > [...] It could probably ease the hassle with PG- > vs. MySQL since it comes with a pretty much complete > database abstraction layer. Well, in postfixadmin the things we need is mostly SELECT / INSERT / UPDATE / DELETE. We already have some abstraction functions for those queries which work well IMHO and are easy to use. I consider the various checks for pgsql in the code mostly historical issues - usually they can be replaced with db_boolean() calls or alike. The ALTER TABLE for database upgrades are always special (_very_ special if foreign keys come into play ;-) and I'm quite sure that most abstraction layers won't be very useful for those things. > Of course this would be PHP5 only, but i don't think this > is really an issue since PHP4 isn't officially supported ACK > anymore anyway and should be outdated soon. Moving to > PHP5 would allow for various other improvements like > and exception-based error-handling throughout the source. Yes, why not... > Maybe it would be a good idea to consider an MVCed [3] > rework of the interface, too, My proposal goes in this direction, even if I didn't have MVC in mind when writing it ;-) > and think up a way how to > integrate some kind of module-/plugin-system for > additional functions which extend the core-functionality Yes, good idea. And not really difficult to implement. > I was thinking about adding a searchable maillog for > Domain-Admins for example, which would include rejects/ > bounces/... from /var/log/maillog for the domains in > question, something i would consider a typical plugin > use-case. Vacation, Fetchmail and broadcast-msgs would > imho make good candidates for being "outsourced" as > plugins as well. We could call _everything_ a module or plugin. > On an unrelated note, can someone provide me with an > (maildir-) archive of postfixadmin-devel? It seems like > sourceforge itself doesn't provide any downloads and i > like to have archives searchable in my mailclient.. I'll send you a mailbox off-list. Converting to maildir shouldn't be too hard ;-) Regards, Christian Boltz -- Und der erste, der mich darauf hinweist, ich könne das ja selbst umkonfigurieren, ich müsse nur die 200KB-Doku lesen, den besuche ich zu Hause und *singe*(!) ihm den Sourcecode vor, und DAS ist WIRKLICH eine STRAFE. [Ratti in suse-linux] |