Re: [Postfixadmin-devel] Need help packinging postfixadmin from SVN sources
Brought to you by:
christian_boltz,
gingerdog
From: Juan C. G. D. <jua...@pe...> - 2010-11-26 16:37:40
|
On 25/11/2010 06:54 a.m., David Goodwin wrote: > Hi, > >> Am Mittwoch, 24. November 2010 schrieb Juan Carlos Gutiérrez Deliot: >>> I'm willing, for personal porpouse, to develop some new feature in >>> postfixadmin, it's about exposing mailbox creation and password >>> changing functionalities through web services in order to integrate >>> a mail server with a portal. >> Changing the password, the alias of a mailbox and switching vacaton >> on/off is already available via XMLRPC (but disabled by default in the >> config). >> >> Mailbox creation over XMLRPC sounds like a good feature. > > Ditto. > > >> You should base your work on the files in the postfixadmin-cli directory >> (that's a quite new command-line interface for postfixadmin), especially >> on the model/* files. (Well, they should be merged with the "main" >> model/* files, but that's another story ;-) >> >> postfixadmin-cli/model/UserHandler.php already contains functions to >> create a mailbox. Your task will be to >> a) implement admin login over XMLRPC (using a mailbox login is pointless >> when it comes to creating mailboxes ;-) >> b) integrate the mailbox creation in the XMLRPC interface >> c) make sure that you don't create any security holes ;-) >> >> If you need some inspiration how to use the XMLRPC interface, check the >> squirrelmail plugin in the ADDITIONS directory. > > It's not overly friendly in setup atm - I'm not sure how many people > have moved to using it - I've got one open 'support request' where > someone's emailed me for help, and i've put off doing anything as I > don't have time / motivation. > > >> Just take the SVN checkout (or your edited version of it) and make a >> tarball from it with tar czf. >> In theory you could exclude the .svn directories from the tarball, but >> in practise they won't hurt except taking some disk space ;-) > Yes; 'internally' for development, please point the web server to an svn > checkout of the source code. Once you're happy with your changes, send > us a 'diff' file (e.g. 'svn diff> patch.txt') and we'll merge it. Once > we're vaguely happy that you're competent, we'll add you as a developer > to the project, which will mean you can do what you like, when you like > without an official approval stage. > > > >>> Finally, if you think eclipse is not the right tool to work with >>> postfixadmin, I hope you can introduce me to "the official" >>> alternatives to work with. >> David and I use vi, but I wouldn't go as far as calling it the "Official >> PostfixAdmin source code editor" ;-) >> Seriously: take any editor or IDE you want and like. > Any editor is fine - emacs, nano, vim, eclipse, netbeans .... use which > ever one you're comfortable with. > > >> We don't have something like coding guidelines, and for historical >> reasons we even have some files with 3 and some with 4 spaces as tab >> replacement. (New files should use 4 spaces.) > I'd rather : > > spaces, not tabs > 4 space indentation > > beyond that i'm not fussed.. I code like : > > public function fred($arg1, $arg2) { > if($arg1 == false) { > return true; > } > // etc. > } > > > > > >>> I hope you people can guide me through this, maybe with tutorials or >>> even by personal contact. >> Personal contact as in "face to face meeting" might become difficult due >> to long distances - your name doesn't sound german ;-) > > I'm in the UK. Meetings would be difficult for me.... at least normally > (family/work etc) > > >> Additionally you can join the #postfixadmin channel on the freenode IRC >> network. I'm usually available there in the evening (as seen from CET >> timezone), and David (nick "GingerDog") is there all the day. Be >> "warned" that you won't get an answer within one or two minutes - there >> are not too many people in the channel, and some of them (including >> David) are there 24/7, but obviously not always awake ;-) > > If you want my attention, just say my name 'GingerDog' and i'll > eventually realise and respond. > > > thanks > David. Thank you guys, I really appreciate your help. When I said personal contact I meant contact via "direct" email or maybe chat, It was funny, Christian made laugh a lot with my name not sounding german. In fact, I'm from Colombia and we here are not used to use IRC as a usual communication media but I think it's time time learn something about it. @Christian: I couldn't find the command-line interface directory (not even in google), just the cli files in the scripts folder and another UserHandler.php file inside scripts/models-ext/. Is that the file you meant for me to check? I'm feeling a bit dumb with this, all you said sounds quite obvious but I'm still a bit loss here. Thanks again. |