Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: bloodshoteye on January 16, 2009, 08:31:31 PM

Title: Horde restart after custom-template
Post by: bloodshoteye on January 16, 2009, 08:31:31 PM
Hi all,

Despite trawling the forum & documentation, I can't seem to find the correct command to restart mail services after creating a custom Horde template, specifically:
Quote
/etc/e-smith/templates-custom/home/httpd/html/horde/config/mime_drivers.php/160html

Would someone help out with the syntax or please point me in the right direction?
Much obliged,
Title: Re: Horde restart after custom-template
Post by: cactus on January 16, 2009, 10:59:19 PM
Would someone help out with the syntax or please point me in the right direction?
Much obliged,
That is only the template fragment. You would need to recreate the configuration file like this:
Code: [Select]
expand-template /home/httpd/html/horde/config/mime_drivers.php
Not sure if horde uses (precompiled) templates that need to be cleared out.
Title: Re: Horde restart after custom-template
Post by: bloodshoteye on January 19, 2009, 11:05:39 AM
cactus, excuse delay in replying.
I did as you suggested, but still can't view html mail.
The 160html custom template has this edit:
Quote
'inline' => false,
changed to this:
Quote
'inline' => true,

Afterwards I did signal-event post-upgrade; signal-event reboot as well, but still no html mail. I wonder?

Title: Re: Horde restart after custom-template
Post by: Normando on January 19, 2009, 03:47:18 PM
Can you see if templates are expanded without errors?

Look at:

/home/httpd/html/horde/config/mime_drivers.php

You will see 'inline' => true,

BUT if you look at the header of /home/httpd/html/horde/imp/config/mime_drivers.php you see that IMP settings override horde settings. SO you must modify IMP mime_drivers.php template.
Title: Re: Horde restart after custom-template
Post by: cactus on January 19, 2009, 03:56:03 PM
BUT if you look at the header of /home/httpd/html/horde/imp/config/mime_drivers.php you see that IMP settings override horde settings. SO you must modify IMP mime_drivers.php template.
AFAIK that is what OP is trying to do.
Title: Re: Horde restart after custom-template
Post by: Normando on January 19, 2009, 03:59:35 PM
AFAIK that is what OP is trying to do.
Exactly
Title: Re: Horde restart after custom-template
Post by: Stefano on January 19, 2009, 04:15:13 PM
AFAIK that is what OP is trying to do.

yes.. but he's working on the wrong file.. OP is working on /home/httpd/html/horde/config/mime_drivers.php and not on
/home/httpd/html/horde/imp/config/mime_drivers.php as Normando said.. :-)

Ciao
Stefano
Title: Re: Horde restart after custom-template
Post by: bloodshoteye on January 19, 2009, 04:48:40 PM
OK, I'll make the change presently.
Title: Re: Horde restart after custom-template
Post by: cactus on January 19, 2009, 08:09:59 PM
yes.. but he's working on the wrong file.. OP is working on /home/httpd/html/horde/config/mime_drivers.php and not on
/home/httpd/html/horde/imp/config/mime_drivers.php as Normando said.. :-)
Oops, you are right, sorry.
Title: Re: Horde restart after custom-template - Solved!
Post by: bloodshoteye on January 19, 2009, 09:39:21 PM
Thanks for all the advice - Stefano a.k.a. nenonano provided the finishing touch.
I now have inline HTML after making the change to:
Quote
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/mime_drivers.php
and doing expand-template on:
Quote
/home/httpd/html/horde/imp/config/mime_drivers.php
Does this principal follow for all the configs in Horde?

Many users at this site are now extremely chuffed :-)