Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Robert on January 29, 2003, 10:42:17 AM

Title: Help to view HTML mail in IMP
Post by: Robert on January 29, 2003, 10:42:17 AM
I need to enable IMP to be able to display html formatted mail in the message and not as an attachment. I know that i have to change some settings on mime_drivers.php to allow this but when I view the mime_drivers.php file on e-smith I am not seeing the lines of code I need to change. Can someone please help.

Thanx
Title: Re: Help to view HTML mail in IMP
Post by: Joseph on January 29, 2003, 05:04:36 PM
I would also very much want help with this.
Title: Re: Help to view HTML mail in IMP
Post by: Dan Brown on January 29, 2003, 05:27:57 PM
In mime_drivers.php, you should have a section that looks like this:

/**
 * HTML driver settings
 */

$mime_drivers['imp']['html']['inline'] = false;
$mime_drivers['imp']['html']['icons'] = array(
         'default' => 'html.gif' );
$mime_drivers['imp']['html']['handles'] = array(
        'text/html', 'text/richtext' );


Change the first line of that one to:

$mime_drivers['imp']['html']['inline'] = true;

This is on a 5.6 installation.
Title: Re: Help to view HTML mail in IMP
Post by: Joseph on January 29, 2003, 05:43:02 PM
Thanks for the reply Dan, however I'm using 5.5 and I don't see these settings in mime_drivers.php under /home/httpd/html/horde/config.  Is there a way to do this under 5.5 without upgrading?
Title: Re: Help to view HTML mail in IMP
Post by: Dan Brown on January 29, 2003, 06:03:51 PM
Yes, there is a way to do it, but I don't know off the top of my head what it is.  I expect it's documented on horde.org, though.
Title: Re: Help to view HTML mail in IMP
Post by: Andrej on January 29, 2003, 09:36:35 PM
a little bit off topic, but I think that DAN knows an answer. How TO add some languages into HORDE/IMP ?! I can NOT find anything usefull on Horde web or I am not searching on the right place. Som HowTo or links will be very helpfull.

Tx,

Andrej
Title: Re: Help to view HTML mail in IMP
Post by: Terry Brummell on January 29, 2003, 10:51:26 PM
There is a link to do it from here:

http://sme.swerts-knudsen.dk/
Title: Re: Help to view HTML mail in IMP
Post by: Johan on January 29, 2003, 11:29:18 PM
The real solution is standing on the site off horde:

 [IMP 3.x]: Edit the file home/http/html/horde/imp/config/mime_drivers.php to enable inline support for the mime types you wish to have displayed inline. Simply set the 'inline' array element for that mime type to 'true' to enable a type. As noted above, not all mime types can be shown inline; if there is no 'inline' array element for a mime type than that type can not be viewed inline.

For example, to enable inline html support you would set:

$mime_drivers['imp']['html']['inline'] = true;


I have done it her in a 5.5 and a 5.6 version both's are working

Grtz

Johan
Title: Re: Help to view HTML mail in IMP
Post by: Dan Brown on January 30, 2003, 04:37:25 AM
Andrej wrote:

> a little bit off topic, but I think that DAN knows an answer.
> How TO add some languages into HORDE/IMP ?! I can NOT find

    Unfortunately, I don't know the answer, but I'm also unsure why you'd need to, unless you want Esperanto--IMP includes quite a variety out of the box (at least as shipped with SME 5.6).  I also don't find much info directly on the horde web site.  Perhaps if you asked on one of their mailing lists (search their archives first).
Title: Re: Help to view HTML mail in IMP
Post by: Andrej on January 30, 2003, 10:16:05 AM
Tx to Johan and Dan. IMP in SME 5.6 DOES NOT come with Slovenian language :( or I am missing something there ?!
If I can use Slovenian out from the box I'll never ask such a thing :)

Tx,

Andrej
Title: Re: Help to view HTML mail in IMP
Post by: Dan Brown on January 30, 2003, 05:05:55 PM
Dunno for sure about IMP 3.0, which is what ships with 5.6.  However, IMP 3.1, which I have installed (and which you can download from my contrib area on ftp.e-smith.org) includes "Slovenscina", which I'd guess is Slovenian (if I'm wrong, sorry).  Try upgrading.
Title: Re: Help to view HTML mail in IMP
Post by: Andrej on January 30, 2003, 06:49:34 PM
Nice Dan. You know the answer as I said  :) Tx, realy. Slovenscina is Slovenian in did. I am going to download 3.1 right know. Is there any HINTS which can disable IMP after upgrading ?!

Tx, again

Andrej
Title: Re: Help to view HTML mail in IMP
Post by: Robert on January 31, 2003, 10:41:54 AM
I got how to do it after some trials.

What you need to do is log onto your server as root then go to
the /home/httpd/html/horde/imp/config

You will find the mime_drivers.php file there.

edit the following lines to provide you with HTML mail support

$mime_drivers['imp']['html']['inline'] = true;  (for HTML)
$mime_drivers['imp']['images']['inline'] = true;  (for images)

In my SME 5.5 server the second line was not available and I had to create it.

Hope it works for you.