Re: [SOGo] get usermail var on web interface to add ovh api
> On Oct 12, 2016, at 10:01 AM, Maxime RUBINO (maxime.rub...@sfproduction.fr) >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 (flachape...@inverse.ca) a écrit : >> Hello Maxime >> >>> On Oct 12, 2016, at 7:34 AM, Maxime RUBINO (maxime.rub...@sfproduction.fr) >>> 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
Re: [SOGo] get usermail var on web interface to add ovh api
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 ? Le 12/10/2016 à 14:20, Francis Lachapelle (flachape...@inverse.ca) a écrit : Hello Maxime On Oct 12, 2016, at 7:34 AM, Maxime RUBINO (maxime.rub...@sfproduction.fr)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
Re: [SOGo] get usermail var on web interface to add ovh api
> On Oct 12, 2016, at 9:40 AM, Maxime RUBINO (maxime.rub...@sfproduction.fr) >wrote: > > Hi Francis, > > it's possible to use node.js for ovh api with sogo angularjs ? > > ovh api exist on python/php ... that's all. > > or can i execute php code from my template ? No. Templates are used by SOGo/SOPE. Is there some public documentation of the OVH API you want to use? > Le 12/10/2016 à 14:20, Francis Lachapelle (flachape...@inverse.ca) a écrit : >> Hello Maxime >> >>> On Oct 12, 2016, at 7:34 AM, Maxime RUBINO (maxime.rub...@sfproduction.fr) >>> 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
Re: [SOGo] get usermail var on web interface to add ovh api
Hi Francis, it's possible to use node.js for ovh api with sogo angularjs ? ovh api exist on python/php ... that's all. or can i execute php code from my template ? Thanks. Le 12/10/2016 à 14:20, Francis Lachapelle (flachape...@inverse.ca) a écrit : Hello Maxime On Oct 12, 2016, at 7:34 AM, Maxime RUBINO (maxime.rub...@sfproduction.fr)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
Re: [SOGo] get usermail var on web interface to add ovh api
Thanks Francis :-) Le 12/10/2016 à 14:20, Francis Lachapelle (flachape...@inverse.ca) a écrit : Hello Maxime On Oct 12, 2016, at 7:34 AM, Maxime RUBINO (maxime.rub...@sfproduction.fr)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
Re: [SOGo] get usermail var on web interface to add ovh api
Hello Maxime > On Oct 12, 2016, at 7:34 AM, Maxime RUBINO (maxime.rub...@sfproduction.fr) >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
[SOGo] get usermail var on web interface to add ovh api
Hi, 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 ? it's very important because i don't have dovecot/postfix, i use sogo with imap/smtp proxying to ovh mail servers, and it works great. Thanks. -- Cordialement, Maxime RUBINO -- users@sogo.nu https://inverse.ca/sogo/lists