Hi Stuart

On 2013-03-25, at 2:51 AM, Stuart Longland <[email protected]> wrote:

> I had a brief look around but didn't see anything jump out at me.  We
> have a CGI script on an internal mail server which generates the HTML
> email footer that goes at the bottom of everyone's email.
> 
> The CGI actually queries our ERP system to get their job title, phone
> number, etc.  It provides the signature in two formats.  A Windows
> log-in script downloads copies of the footer to peoples' profile
> directories so that Thunderbird can pick the files up.
> 
> I was wondering if something similar could be achieved with SOGo?  I can
> see someone can enter a plain-text signature easily.  HTML¹ doesn't seem
> to be doable however, and there's certainly no "load from URL" option
> that I can see.
> 
> Alternatively, if someone logs in for the first time, is there some way
> to hook this, and set up some defaults such as the email signature on
> the first login?  If there's some way to automagically set this on
> everyone's preferences from a script, we can update signatures that way.
> 
> Is there a way to implement this?


The easy path is to use sogo-tool :

sogo-tool user-preferences set defaults francis SOGoMailSignature 
'{"SOGoMailSignature": "Francis\nSOGo user"}'

But you could also customize the template of the preferences module 
(UIxPreferences.wox) and add some JavaScript to offer a link that would 
populate the signature field. There's an JavaScript variable named "UserLogin" 
that has the current username.


Francis

--
[email protected] :: +1.514.755.3640 :: http://www.inverse.ca
Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence 
(http://packetfence.org)

-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to