Koozali.org: home of the SME Server

Webmail Viewing HTML

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Webmail Viewing HTML
« on: January 04, 2007, 03:50:54 AM »
Hi

I was only curious how to get the mail to view html always by default

I seem to only see text with either the html attachment in the text area or the header, however never viewed in the actual email

I noticed you can block html or allow html if the sender is in my address book, but not full time by default
I want to view html full time no blocking ?

Unless I'm missing something, can someone please clarify this topic ?

Thanks

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Webmail Viewing HTML
« Reply #1 on: January 04, 2007, 08:42:22 AM »
Quote from: "Agent86"
Hi

I was only curious how to get the mail to view html always by default

I seem to only see text with either the html attachment in the text area or the header, however never viewed in the actual email

I noticed you can block html or allow html if the sender is in my address book, but not full time by default
I want to view html full time no blocking ?

Unless I'm missing something, can someone please clarify this topic ?

Thanks
This seems like a question not related to SME Server nor to it's contribs, but more about your mail reader.

If I am wrong and it is for the webmail interface you might have to alter some configuration settings in the horde config files probably. They might be templated (read the developer guide on how to alter configuration settings in templated configuration files) and I guess the layout of the configuration file and it's keywords will be on the horde site.
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 Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Webmail and HTML
« Reply #2 on: January 04, 2007, 02:46:01 PM »
Hi and thanks

This is actually to do with the base SME 7.1

When in the webmail interface and opening an email,
The body of the email is not displaying any html. There is many adjustments in the options section for how email is viewed/displayed, such as block html altogether or to view html if the sender is in the addressbook.
But what about viewing html by default ? And not just when the user being in the addressbook?
When you read thru the help files within Horde and other sections of the forum there is no real discussion on why you can't seem to allow html in webmail by default or how to do it ?

Is anyone else able to view html in webmail in the body of the email or do they always have to click on the attachment ?

Any help on this would be great.

Offline teranic

  • **
  • 21
  • +0/-0
Webmail Viewing HTML
« Reply #3 on: January 04, 2007, 11:03:15 PM »
.........

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Webmail HTML
« Reply #4 on: January 05, 2007, 02:32:45 PM »
Hi thanks

I will try that,

I wonder why there is not a check box or button for this ?

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Webmail Pane
« Reply #5 on: January 05, 2007, 08:26:54 PM »
Hi

In Webmail is there a way to have a email body view pane below the email list as with most email clients ?

Like a sort of view pane thing like in thunderbird but only in webmail ?

Offline harshl

  • **
  • 32
  • +0/-0
Webmail Viewing HTML
« Reply #6 on: January 08, 2007, 03:25:54 AM »
Not that I am aware of in IMP. You might want to check out DIMP found here:
http://www.horde.org/dimp/
I have not looked into it myself, but it may have the option you are looking for and fits nicely into the HORDE framework.
-Landon

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Dimp
« Reply #7 on: January 08, 2007, 04:17:55 AM »
Yes as far as viewing html in a pane I think your right about that, Dimp may be the answer.

But what about viewing html in the body of my emails by default ?

Please advise if this can be done ?

Offline harshl

  • **
  • 32
  • +0/-0
Webmail Viewing HTML
« Reply #8 on: January 08, 2007, 04:54:49 AM »
Sorry about that, I meant to mention that also and got side tracked.
You will need to set up a custom template based on the following built-in template:
/etc/e-smith/templates/home/httpd/html/horde/config/mime_drivers.php/160html
Then create another custom template which does not have a base template:
mkdir -p /etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/mime_drivers.php/
create a custom template file in here with the following data:
/**
 * HTML driver settings
 */
$mime_drivers['imp']['html']['inline'] = false;
$mime_drivers['imp']['html']['handles'] = array(
    'text/html');
$mime_drivers['imp']['html']['icons'] = array(
    'default' => 'html.png');
/* If you don't want to display the link to open the HTML content in a
 * separate window, set the following to false. */
$mime_drivers['imp']['html']['external'] = true;

You want to set html inline to true in each of these files.
That should get you there. If you don't want to test with templates edit /home/httpd/html/horde/ directly, but realize you will loose those changes next time the server is updated/configured. Templates are great!

Here is a Horde reference for inline html:
http://www.horde.org/imp/docs/?f=INSTALL.html

Good luck.
-Landon

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
HTML
« Reply #9 on: January 08, 2007, 05:19:17 PM »
Thats what I was afraid of

I don't think I'll tackle that just yet, unless there is some way for me to add that to my installation or re-installation disk I don't want to have to do this every year or every update

Thanks
Steve

Offline harshl

  • **
  • 32
  • +0/-0
Webmail Viewing HTML
« Reply #10 on: January 10, 2007, 12:16:02 AM »
I realize this is not exactly what you are looking for, but I just noticed in the version of the Imp software included with SME 7.1 there is a preview option under Imp Options.
I currently have mine set to the following and I am liking it though I know not all users will:

Enable message previews - yes
Characters to display - all
Strip line breaks - yes
Show previews for unread messages only - yes
Show previews in tooltips - yes (I really like this!)

This will show a preview of the message body when the user hovers their mouse over the subject of an unread message.

Hope it helps.
-Landon

Offline del

  • *
  • 765
  • +0/-0
Webmail Viewing HTML
« Reply #11 on: January 10, 2007, 01:30:29 AM »
Hi Agent86,

I followed this howto:

http://sme.swerts-knudsen.dk/index.html?frame=http%3A//sme.swerts-knudsen.dk/howtos/howto_3.htm

Seems to work OK and is quite easy. :D

Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline harshl

  • **
  • 32
  • +0/-0
Webmail Viewing HTML
« Reply #12 on: January 10, 2007, 01:39:56 AM »
I could be wrong, but I believe that howto will work until Imp is updated and that file is potentially replaced and not rebuilt from templates.

In fact, I am relatively certain it is overwritten during the upgrade from 7.0 to 7.1.

One would just need to remember that and verify it manually after each horde/imp upgrade.
-Landon

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Sounds Cool
« Reply #13 on: January 10, 2007, 03:25:34 AM »
Quote from: "harshl"
I realize this is not exactly what you are looking for, but I just noticed in the version of the Imp software included with SME 7.1 there is a preview option under Imp Options.
I currently have mine set to the following and I am liking it though I know not all users will:

Enable message previews - yes
Characters to display - all
Strip line breaks - yes
Show previews for unread messages only - yes
Show previews in tooltips - yes (I really like this!)

This will show a preview of the message body when the user hovers their mouse over the subject of an unread message.

Hope it helps.


Thanks to everyone for all the helpful tips
I may try those editing topics on a test server later or perhaps wait to see if may become available in later updates


As far as those selections you suggested above, they sound great, and would work perfectly, but I don't seem to have all those selections in options, I've search all over the options sections and only came across the (message viewing) section which allows to Block HTML or to allow html when the sender is in my addressbook .Could not seem to find those you've mentioned, I wish I could it would be nice.
The preview in tooltip one I can see being very nice since I can hover over the subject line and a tooltip window currently displays  the subject which is already visible in my email list but I can see the potention to view something else if that were available

Please advise on this subject further and FYI I'm using a fresh install of SME 7.1 RC1
I would love to use those features you've mentioned above

Thanks
Steve

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: HTML
« Reply #14 on: January 10, 2007, 04:17:51 AM »
Quote from: "Agent86"

I don't think I'll tackle that just yet, unless there is some way for me to add that to my installation or re-installation disk I don't want to have to do this every year or every update


Custom templates are not overwritten during upgrade/update, and are included in backups.

Offline harshl

  • **
  • 32
  • +0/-0
Webmail Viewing HTML
« Reply #15 on: January 10, 2007, 04:19:53 AM »
My guess is that IMP components were upgraded between RC1 and Prod of 7.1. I have added some Horde components, but none of them would add options to IMP that I am aware of anyway.
Here is a list of all the Horde modules I am running and their versions:

Turba 2.1.3
Trean 0.1-cvs
Kronolith 2.1.4
Ingo 1.1.2
Horde 3.1.3
Imp 4.1.3
Mnemo 2.1.1
Nag 2.1.2
Wicked 0.1-cvs

I would imagine the options I posted earlier come directly from the Imp module as it would not seem to rely on any of the other components except the framework.

Hope you can find a solution.

-Landon
-Landon

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Shouldn't an update give me those options
« Reply #16 on: January 10, 2007, 02:32:08 PM »
Shouldn't an update give me those options ?

The SME main page indicates that SME 7.1 RC1 is the current version ?
Is that not the case ?

I've installed the, Mnemo,Kronolith,Nag,Gollem RPM's which worked perfectly

Would I be able to update to get these options ?

I may try also the other edits since Charlie indicated that it would not get broken during updates etc. ?

But I would like those other options really now that  I know about them ?

Please advise if anyway to update for those features or do I need fresh install of the latest SME

Offline harshl

  • **
  • 32
  • +0/-0
Webmail Viewing HTML
« Reply #17 on: January 10, 2007, 07:32:03 PM »
My server manager console does not say RC1 anywhere, nor should it. RC stands for release candidate, and is a pre-production release.
I waited until 7.1 production to upgrade my server. I never used any of the release candidates, though I understand they were very stable.
-Landon

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
SME 7.1
« Reply #18 on: January 10, 2007, 07:45:50 PM »
Well I'm probably just confused then.
Basically I went to smeserver.org and clicked on download and what I saw at the top of the page, which is still there, stating that RC1 is the current version

And further tells you to go to the mirrors to download etc.

When I downloaded from there I assumed that what I got was RC1 but maybe thats not what I have ?

When you click onto one of the download mirrors it does not say anything about RC1 next to the ISO's, so anyhow whatever version is listed there that is what I have

So in that version from what your telling me is that I should have those options available to me ?

Can I tell if I should have those options or not ?
And can anyone  else confirm that they have these options available ?

Please confirm and advise
Thanks

Offline psoren

  • *
  • 371
  • +0/-0
Re: HTML
« Reply #19 on: January 10, 2007, 08:01:13 PM »
Quote from: "CharlieBrady"


Custom templates are not overwritten during upgrade/update, and are included in backups.


Charlie,

Is it possible to template just that one line in the file /home/httpd/html/horde/imp/config/mime_drivers.php, where:

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

Needs to be:

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

or would it need to be the whole file? I am concerned if there is any changes in that file in case of version upgrades and then the template could brake things instead.

Per

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: HTML
« Reply #20 on: January 10, 2007, 08:10:20 PM »
Quote from: "psoren"
Quote from: "CharlieBrady"


Custom templates are not overwritten during upgrade/update, and are included in backups.


Charlie,

Is it possible to template just that one line in the file /home/httpd/html/horde/imp/config/mime_drivers.php, where:

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

Needs to be:

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

or would it need to be the whole file? I am concerned if there is any changes in that file in case of version upgrades and then the template could brake things instead.

Per


If you look in /etc/e-smith/templates/home/httpd/html/horde/imp/config, you will see that mime_drivers is not templated.  So, if you currently want to have this ability, you will have to change it on the main file.  And yes, if a new version comes out, your changes will be overwritten.  I had thought about templating this file, but didn't do it.  If you feel this is a real need, then open a NFR ticket and maybe it will get done.  Or, you could template it yourself and submit the changes.

John Bennett
......

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Webmail Viewing HTML
« Reply #21 on: January 10, 2007, 08:13:28 PM »
Quote from: "harshl"
My guess is that IMP components were upgraded between RC1 and Prod of 7.1.
-Landon


No, the imp components were upgraded between 7.0 and 7.1 RC1.

John Bennett
......

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Well I don't have the options
« Reply #22 on: January 14, 2007, 03:13:54 AM »
The suggestion to
 ---preview option under Imp Options.

I may be missing something but I do not appear to have those options
In 7.1 fresh install and fully updated

Please advise
Thanks

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: Well I don't have the options
« Reply #23 on: January 14, 2007, 03:28:19 AM »
Quote from: "Agent86"
The suggestion to
 ---preview option under Imp Options.

I may be missing something but I do not appear to have those options
In 7.1 fresh install and fully updated

Please advise
Thanks


If you are running sme 7rc1 or > you have those options.

cd /home/httpd/html/horde/imp/config
pico -w mime_drivers.php
change line 59

If you still don't see this, then verify the version of imp you have installed, by doing this;

more /home/httpd/html/horde/imp/lib/version.php

My Output:
<?php define('IMP_VERSION', 'H3 (4.1.3)') ?>

John
......

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Just to be sure
« Reply #24 on: January 14, 2007, 04:44:06 PM »
Quote from: "harshl"
I realize this is not exactly what you are looking for, but I just noticed in the version of the Imp software included with SME 7.1 there is a preview option under Imp Options.
I currently have mine set to the following and I am liking it though I know not all users will:

Enable message previews - yes
Characters to display - all
Strip line breaks - yes
Show previews for unread messages only - yes
Show previews in tooltips - yes (I really like this!)

This will show a preview of the message body when the user hovers their mouse over the subject of an unread message.

Hope it helps.


I thought this was referring to these options that should be found in the webmail interface, oop sorry about that.

Just to be sure I'm talking about the same options etc. ? this is what I was refering to, however this may overlap the subject ?

I believe this thread has split into 2 subjects and is probably my fault for not being more clear about which subject I'm talking about.

1.html viewing and image viewing in the email body by default
2.another poster suggested these that I have quoted options which will also work for me.

I'm not sure which subject is related to the suggestions regarding: cd /home/httpd/html/horde/imp/config  etc.

In any case I do have these files and understand or at least I believe that for both subjects I need to use the command line and not the webmail interface to locate these options and edit ?

Please confirm this and also which subject the cd /home/httpd/html/horde/imp/config  is refering to ?

Thanks again for all he help.


Thanks
Steve

Please confirm ?
Thanks

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Dimp is cool
« Reply #25 on: January 18, 2007, 03:28:44 AM »
Quote from: "harshl"
Not that I am aware of in IMP. You might want to check out DIMP found here:
http://www.horde.org/dimp/
I have not looked into it myself, but it may have the option you are looking for and fits nicely into the HORDE framework.


Dimp looks nice but unreleased, I'll have to wait, but very cool looking and nice features

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
So html in a PANE ?
« Reply #26 on: January 18, 2007, 03:47:18 AM »
Quote from: "harshl"
Sorry about that, I meant to mention that also and got side tracked.
You will need to set up a custom template based on the following built-in template:
/etc/e-smith/templates/home/httpd/html/horde/config/mime_drivers.php/160html
Then create another custom template which does not have a base template:
mkdir -p /etc/e-smith/templates-custom/home/httpd/html/horde/imp/config/mime_drivers.php/
create a custom template file in here with the following data:
/**
 * HTML driver settings
 */
$mime_drivers['imp']['html']['inline'] = false;
$mime_drivers['imp']['html']['handles'] = array(
    'text/html');
$mime_drivers['imp']['html']['icons'] = array(
    'default' => 'html.png');
/* If you don't want to display the link to open the HTML content in a
 * separate window, set the following to false. */
$mime_drivers['imp']['html']['external'] = true;

You want to set html inline to true in each of these files.
That should get you there. If you don't want to test with templates edit /home/httpd/html/horde/ directly, but realize you will loose those changes next time the server is updated/configured. Templates are great!

Here is a Horde reference for inline html:
http://www.horde.org/imp/docs/?f=INSTALL.html

Good luck.


Thanks so that will get me an extra PANE for viewing the emails or that will only let me view the html in the body of the email ?

Please advise and thanks