Koozali.org: home of the SME Server

[Solved] - HELP I broke horde trying to make global changes

CKConsulting

[Solved] - HELP I broke horde trying to make global changes
« on: October 10, 2006, 04:04:33 AM »
I was trying to set html to be viewed in horde.

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/mime_drivers.php

cd /etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/mime_drivers.php/

cp /etc/e-smith/templates/home/httpd/html/horde/imp/config/prefs.php/160html

edit $mime_drivers['horde']['html']['inline'] = false; and change false to true.

expand-template /home/httpd/html/horde/imp/config/mime_drivers.php


It still did not work so I removed below with winscp
Code: [Select]
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/mime_drivers.php

I then rebooted the server.

My headers in emails all show the folowing.

#------------------------------------------------------------ # !!DO NOT MODIFY THIS FILE!! # # Manual changes will be lost when this file is regenerated. # # Please read the developer's guide, which is available # at http://wiki.contribs.org/development/ # # Copyright (C) 1999-2006 Mitel Networks Corporation #------------------------------------------------------------ // 160html /** * HTML driver settings */ $mime_drivers['horde']['html']['inline'] = true; $mime_drivers['horde']['html']['handles'] = array( 'text/html'); $mime_drivers['horde']['html']['icons'] = array( 'default' => 'html.png');


Rick

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: HELP I broke horde trying to make global changes
« Reply #1 on: October 10, 2006, 04:55:45 AM »
Quote from: "CKConsulting"


It still did not work so I removed below with winscp
Code: [Select]
/etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/mime_drivers.php

I then rebooted the server.

My headers in emails all show the folowing.

#------------------------------------------------------------ # !!DO NOT MODIFY THIS FILE!! # # Manual changes will be lost when this file is regenerated. # # Please read the developer's guide, which is available # at http://wiki.contribs.org/development/ # # Copyright (C) 1999-2006 Mitel Networks Corporation #------------------------------------------------------------ // 160html /** * HTML driver settings */ $mime_drivers['horde']['html']['inline'] = true; $mime_drivers['horde']['html']['handles'] = array( 'text/html'); $mime_drivers['horde']['html']['icons'] = array( 'default' => 'html.png');


Rick


Did you
Code: [Select]
expand-template /home/httpd/html/horde/imp/config/mime_drivers.php
before rebooting ?
Regards,
William

IF I give advise.. It's only if it was me....

CKConsulting

[Solved] - HELP I broke horde trying to make global changes
« Reply #2 on: October 10, 2006, 05:00:03 AM »
Yes, I just figured it out.

I over wrote the mime_drivers.php in
/home/httpd/html/horde/imp/config

I just restore the file and all is good.

Thanks for help
Rick

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
[Solved] - HELP I broke horde trying to make global changes
« Reply #3 on: October 10, 2006, 05:04:35 AM »
After I posted this bit had me confused..
Code: [Select]
cd /etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/mime_drivers.php/

cp /etc/e-smith/templates/home/httpd/html/horde/imp/config/prefs.php/160html


Your taking a fragment out of prefs.php and sticking it in mime_drivers.php .
Regards,
William

IF I give advise.. It's only if it was me....

kirkf

[Solved] - HELP I broke horde trying to make global changes
« Reply #4 on: October 10, 2006, 05:05:24 AM »
On my system, mime_drivers.php is not a templated file.  I just altered it directly and saved a copy, as I'm not sure how to properly alter it.

Could anyone suggest the proper procedure for changing a config file which is NOT templated?


Kirk

CKConsulting

[Solved] - HELP I broke horde trying to make global changes
« Reply #5 on: October 10, 2006, 02:49:00 PM »
I actually copied it to:
cp /etc/e-smith/templates/home/httpd/html/horde/imp/config/mime_drivers.php/160htm

Rick