> On Oct 12, 2016, at 10:01 AM, Maxime RUBINO ([email protected]) > <[email protected]> wrote: > > Francis, > > I tested this : https://github.com/blaryjp/ng-ovh <--- (dont work) it's for > ovh api 1.0 and he will disappear in the futur. > > if i want ovh api 2.0 for long term support i can use this node.js wrapper : > https://github.com/ovh/node-ovh > > I think it's a good idea to integrated api support in SOGo for all user/admin > not using postfix/dovecot but imap/smtp proxy. > > i'm not a dev expert but i need to make it, can you help me a little bit ?
You probably want to develop some "CGI" in nodejs and call it from the $send method of the Message JavaScript model. > Le 12/10/2016 à 14:20, Francis Lachapelle ([email protected]) a écrit : >> Hello Maxime >> >>> On Oct 12, 2016, at 7:34 AM, Maxime RUBINO ([email protected]) >>> <[email protected]> wrote: >>> >>> I use SOGO 3.x and i need to get useremail to interface it with ovh api for >>> the responder. >>> >>> i have edit the page >>> /usr/lib/GNUstep/SOGo/Templates/PreferencesUI/UIxPreferences.wox >>> >>> i can print the usermail with : {{activeUser.identification}} >>> >>> i can't add javascript/php/... code, it will be automaticaly deleted on web >>> source code view (?????) >>> >>> the idea is to add a form, executed by php script (ovh api) to >>> activate/deactivate the responder (php code works manually) >>> >>> do you have an idea how i can include this ? >> Notice that your custom template will be overwritten if you update SOGo. >> Follow this procedure to modify the templates: >> https://sogo.nu/nc/support/faq/article/how-to-customize-the-html-2.html >> >> To include JavaScript code, I recommend using a distinct file. You have >> different options: >> >> 1. add a <script> tag to the custom template that links to an external >> script; >> 2. specify your script filename in the jsFiles attribute of the >> <var:component> of the custom template; >> 3. add your script filename to the SOGoUIAdditionalJSFiles parameter of >> sogo.conf. This will include your file in all templates. >> >> >> Francis -- [email protected] https://inverse.ca/sogo/lists
