Koozali.org: home of the SME Server

Horde restart after custom-template

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Horde restart after custom-template
« 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,
SME Server is a fantastic product - thank you!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Horde restart after custom-template
« Reply #1 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: Horde restart after custom-template
« Reply #2 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?

SME Server is a fantastic product - thank you!

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Horde restart after custom-template
« Reply #3 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.
« Last Edit: January 19, 2009, 03:57:29 PM by Normando »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Horde restart after custom-template
« Reply #4 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: Horde restart after custom-template
« Reply #5 on: January 19, 2009, 03:59:35 PM »
AFAIK that is what OP is trying to do.
Exactly

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Horde restart after custom-template
« Reply #6 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

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: Horde restart after custom-template
« Reply #7 on: January 19, 2009, 04:48:40 PM »
OK, I'll make the change presently.
SME Server is a fantastic product - thank you!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Horde restart after custom-template
« Reply #8 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: Horde restart after custom-template - Solved!
« Reply #9 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 :-)
SME Server is a fantastic product - thank you!