Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: Elliott on May 04, 2009, 05:37:08 PM
-
I know that there have been plenty of topics on this matter but I (perhaps regrettably) feel the need to start yet another.
I recently stumbled onto the contrib for roundcube and installed it. Without any major setup or modification other than the standard contrib install and post-install steps I can login to this webmail client and view my messages including those with inline images.
Today I stumbled onto the contrib for DIMP that adds some ajax type abilities to the standard horde/imp frontend and even allows easy mode selection at the webmail login screen.
With hopeful glee I installed that contrib and logged in, but alas, much like it's non-ajax brother I still can't view simple in-line images.
Based on this it would seem that roundcube would be the easy solution but it lacks the spam controls of the horde front end. I continually try to search the howtos and forums on how to get horde/imp/??? to display inline graphics and have hammered through every user setting in the options but never seem to get it to work.
Can someone who's had more luck offer any solutions? Does Squirrelmail do any better?
Thanks,
E
-
With hopeful glee I installed that contrib and logged in, but alas, much like it's non-ajax brother I still can't view simple in-line images.
AFAIK you need to just modify some configuration templates for images to be displayed inline in your e-mail mesages. It should be this fragment: /etc/e-smith/templates/home/httpd/html/horde/config/mime_drivers.php/320images
[root@smetest ~]# cat /etc/e-smith/templates/home/httpd/html/horde/config/mime_drivers.php/320images
// 320images
/**
* Image settings
*/
$mime_drivers['horde']['images'] = array(
'inline' => false,
'handles' => array(
'image/*'
),
'icons' => array(
'default' => 'image.png'
)
);
[root@smetest ~]#
A short howto:
1. mkdir -p /etc/e-smith/templates-custom/home/httpd/html/horde/config/mime_drivers.php/
2 cp \
/etc/e-smith/templates/home/httpd/html/horde/config/mime_drivers.php/320images \
/etc/e-smith/templates-custom/home/httpd/html/horde/config/mime_drivers.php/
3. Now edit the copied fragment and change the following line:
'inline' => false,
to:
'inline' => true,
4. Now regenerate the configuration file:
expand-template /home/httpd/html/horde/config/mime_drivers.php
This should be it AFAIK, but I am not using webmail, if I might have missed something please step up if you are more of a horde guru than I am :-)
-
Based on this it would seem that roundcube would be the easy solution but it lacks the spam controls of the horde front end
Actually roundcube lacks also in security.. it's one of the most bugged and insecure webmail application.. if you check your http logs (assuming you let public access to http from wan), you'll see many attemps regarding roudcube..
moreover, roundcube's support is sometime useless..
my 2c
Ciao
Stefano
-
Actually roundcube lacks also in security.. it's one of the most bugged and insecure webmail application...
And that's really saying something! I don't think I've ever seen a non-trivial PHP application which doesn't have a frightening (in-)security record.
-
I appreciate the effort Cactus but alas... even with this change I get the same results...
"There are no parts that can be displayed inline"
Luckily the majority of my users use Thunderbird when at work and rarely need the webmail client. It would just be nice if it worked for them on the rare occasions when they're on the road at a public terminal and need it.
-
Actually after following the mini howto you gave and expanding I even rebooted... when I
cat /etc/e-smith/templates/home/httpd/html/horde/config/mime_drivers.php/320images
I see that it still reads false... perhaps some misstep?
-
Actually after following the mini howto you gave and expanding I even rebooted... when I
cat /etc/e-smith/templates/home/httpd/html/horde/config/mime_drivers.php/320images
I see that it still reads false... perhaps some misstep?
try:
cat /etc/e-smith/templates-custom/home/httpd/html/horde/config/mime_drivers.php/320images
HTH
ciao
Stefano
-
Oh... yeah - duh = me.
But what file to I check to see the template expansion to make sure it's making it to the final php file?
-
But what file to I check to see the template expansion to make sure it's making it to the final php file?
The one without the templates tree prefix and without the section starting with a number, in this case that would be /home/httpd/html/horde/config/mime_drivers.php (which is the file you expanded if you followed the howto).
-
And in looking there it took:
// 320images
/**
* Image settings
*/
$mime_drivers['horde']['images'] = array(
'inline' => true,
'handles' => array(
'image/*'
),
'icons' => array(
'default' => 'image.png'
)
);
Any clues as to what else could be causing this? Is there anybody out there who actually sees images when they use webmail? Or is the real question, is there anyone who actually uses horde/webmail?
-
please post the result of
grep -A2 -B2 'inline' /home/httpd/html/horde/config/mime_drivers.php
thank you
Ciao
Stefano
-
-An -Bn... that's a nice one that I didn't know!
*/
$mime_drivers['horde']['simple'] = array(
'inline' => true,
'handles' => array(
'text/*'
--
*/
$mime_drivers['horde']['plain'] = array(
'inline' => true,
'handles' => array(
'text/plain'
--
*/
$mime_drivers['horde']['audio'] = array(
'inline' => true,
'handles' => array(
'audio/*'
--
*/
$mime_drivers['horde']['smil'] = array(
'inline' => true,
'handles' => array(
'application/smil'
--
*/
$mime_drivers['horde']['php'] = array(
'inline' => true,
'handles' => array(
'application/x-php', 'x-extension/phps', 'x-extension/php3s',
--
*/
$mime_drivers['horde']['css'] = array(
'inline' => true,
'handles' => array(
'text/css', 'x-extension/css'
--
* HTML driver settings
*/
$mime_drivers['horde']['html']['inline'] = true;
$mime_drivers['horde']['html']['handles'] = array(
'text/html');
--
*/
$mime_drivers['horde']['enriched'] = array(
'inline' => true,
'handles' => array(
'text/enriched'
--
*/
$mime_drivers['horde']['richtext'] = array(
'inline' => true,
'handles' => array(
'text/richtext'
--
$mime_drivers['horde']['webcpp'] = array(
'location' => '/usr/bin/webcpp',
'inline' => true,
'handles' => array(
'text/xml', 'text/sgml', 'application/xml', 'application/x-sh',
--
$mime_drivers['horde']['srchighlite'] = array(
'location' => '/usr/bin/source-highlight',
'inline' => true,
'handles' => array(
'text/x-csrc', 'text/x-c++src', 'text/x-java', 'application/x-perl',
--
$mime_drivers['horde']['enscript'] = array(
'location' => '/usr/bin/enscript',
'inline' => true,
'handles' => array(
'application/x-cgi', 'application/x-shellscript',
--
*/
$mime_drivers['horde']['tgz'] = array(
'inline' => true,
'handles' => array(
'application/x-compressed-tar', 'application/x-tar',
--
*/
$mime_drivers['horde']['zip'] = array(
'inline' => true,
'handles' => array(
'application/zip', 'application/x-compressed',
--
*/
$mime_drivers['horde']['rar'] = array(
'inline' => true,
'handles' => array(
'application/x-rar', 'application/x-rar-compressed'
--
$mime_drivers['horde']['msword'] = array(
'location' => '/usr/bin/wvHtml',
'inline' => false,
'handles' => array(
'application/vnd.ms-word', 'application/msword'
--
$mime_drivers['horde']['msexcel'] = array(
'location' => '/usr/local/bin/xlhtml',
'inline' => false,
'handles' => array(
'application/vnd.ms-excel', 'application/msexcel',
--
$mime_drivers['horde']['mspowerpoint'] = array(
'location' => '/usr/local/bin/ppthtml',
'inline' => false,
'handles' => array(
'application/vnd.ms-powerpoint', 'application/mspowerpoint'
--
$mime_drivers['horde']['rpm'] = array(
'location' => '/usr/bin/rpm',
'inline' => false,
'handles' => array(
'application/x-rpm'
--
$mime_drivers['horde']['deb'] = array(
'location' => '/usr/bin/dpkg',
'inline' => false,
'handles' => array(
'application/x-deb', 'application/x-debian-package'
--
*/
$mime_drivers['horde']['security'] = array(
'inline' => true,
'handles' => array(
'multipart/encrypted', 'multipart/signed'
--
*/
$mime_drivers['horde']['images'] = array(
'inline' => true,
'handles' => array(
'image/*'
--
*/
$mime_drivers['horde']['tnef'] = array(
'inline' => false,
'handles' => array(
'application/ms-tnef'
--
*/
$mime_drivers['horde']['rfc822'] = array(
'inline' => false,
'handles' => array(
'message/rfc822', 'x-extension/eml'
--
*/
$mime_drivers['horde']['report'] = array(
'inline' => true,
'handles' => array(
'multipart/report'
--
*/
$mime_drivers['horde']['ooo'] = array(
'inline' => false,
'handles' => array(
'application/vnd.sun.xml.calc',
--
*/
$mime_drivers['horde']['pdf'] = array(
'inline' => false,
'handles' => array(
'application/pdf'
--
$mime_drivers['horde']['rtf'] = array(
'location' => '/usr/bin/unrtf',
'inline' => false,
'handles' => array(
'text/rtf', 'application/rtf'
--
$mime_drivers['horde']['wordperfect'] = array(
'location' => '/usr/bin/wpd2html',
'inline' => false,
'handles' => array(
'application/vnd.wordperfect', 'application/wordperf',
-
your file looks good to me..
sorry, I have no idea of what is your problem
IMHO you should open a bug in bugzilla
Ciao
Stefano
-
sorry, I have no idea of what is your problem
Perhaps a user defined override in the database of horde?
-
Perhaps a user defined override in the database of horde?
Cactus, before I open a bug I don't suppose you can tell me an easy way to find out if there's a user defined override?
I've opened three different bugs in the past couple of weeks and every time it's been invalid. :shock:
-
Cactus, before I open a bug I don't suppose you can tell me an easy way to find out if there's a user defined override?
I can only guess where it might be as I do not use horde webmail, but I suspect a entry for that might be in the horde_prefs table, you could try running this to see if it outputs anything, but it might be a long shot:
mysql -D horde -e "SELECT * FROM horde_prefs"
-
Okay... here is the grepped output of that for a single user... does this tell you anything? This is the account I was using to test the webmail functionality.
mace@dynamictrend.net horde last_login a:2:{s:4:"time";i:1241467616;s:4:"host";s:25:"pc-00105.local.net";}
mace@dynamictrend.net imp mail_domain yurplebliss.com
mace@dynamictrend.net turba addressbooks
mace@dynamictrend.net horde default_identity 0
mace@dynamictrend.net horde identities a:1:{i:0;a:14:{s:2:"id";s:4:"MACE";s:8:"fullname";s:13:"Kip Winger";s:9:"from_addr";s:20:"mace@yurplebliss.com";s:16:"default_identity";s:1:"0";s:12:"replyto_addr";s:0:"";s:10:"alias_addr";a:0:{}s:10:"tieto_addr";a:0:{}s:8:"bcc_addr";a:0:{}s:8:"mail_hdr";s:0:"";s:9:"signature";s:27:"http://www.yurplebliss.com/";s:10:"sig_dashes";i:1;s:9:"sig_first";i:0;s:14:"save_sent_mail";i:1;s:16:"sent_mail_folder";s:4:"Sent";}}
mace@dynamictrend.net horde theme azur
mace@dynamictrend.net horde summary_refresh_time 300
mace@dynamictrend.net horde show_sidebar 1
mace@dynamictrend.net horde sidebar_width 150
mace@dynamictrend.net horde menu_view both
mace@dynamictrend.net horde menu_refresh_time 300
mace@dynamictrend.net horde initial_application imp
mace@dynamictrend.net horde widget_accesskey 1
mace@dynamictrend.net horde show_last_login 1
mace@dynamictrend.net imp expanded_folders a:0:{}
mace@dynamictrend.net imp use_vinbox 0
mace@dynamictrend.net imp subscribe 1
mace@dynamictrend.net imp drafts_folder Drafts
mace@dynamictrend.net imp trash_folder Trash
mace@dynamictrend.net imp spam_folder junkmail
mace@dynamictrend.net horde sending_charset
mace@dynamictrend.net imp compose_popup 1
mace@dynamictrend.net imp compose_html 0
mace@dynamictrend.net imp compose_spellcheck 1
mace@dynamictrend.net imp num_words 3
mace@dynamictrend.net imp compose_confirm 0
mace@dynamictrend.net imp reply_quote 1
mace@dynamictrend.net imp reply_headers 0
mace@dynamictrend.net imp attrib_text Quoting %f:
mace@dynamictrend.net imp close_draft 1
mace@dynamictrend.net imp unseen_drafts 1
mace@dynamictrend.net imp set_priority 0
mace@dynamictrend.net imp default_encrypt 1
mace@dynamictrend.net imp save_attachments always
mace@dynamictrend.net imp disposition_request_read never
mace@dynamictrend.net imp filtering 0
mace@dynamictrend.net imp strip_attachments 0
mace@dynamictrend.net imp html_image_replacement 1
mace@dynamictrend.net imp html_image_addrbook 1
mace@dynamictrend.net imp highlight_text 1
mace@dynamictrend.net imp highlight_simple_markup 1
mace@dynamictrend.net imp show_quoteblocks thread
mace@dynamictrend.net imp dim_signature 1
mace@dynamictrend.net imp emoticons 1
mace@dynamictrend.net imp attachment_display inline
mace@dynamictrend.net imp default_msg_charset ISO-8859-1
mace@dynamictrend.net imp disposition_send_mdn 0
mace@dynamictrend.net imp delete_spam_after_report 2
mace@dynamictrend.net imp mailbox_return 1
mace@dynamictrend.net imp use_trash 1
mace@dynamictrend.net imp use_vtrash 0
mace@dynamictrend.net imp empty_trash_menu 1
mace@dynamictrend.net imp empty_spam_menu 1
mace@dynamictrend.net imp refresh_time 300
mace@dynamictrend.net imp nav_popup 1
mace@dynamictrend.net imp nav_audio 0
mace@dynamictrend.net imp mailbox_start 1
mace@dynamictrend.net imp sortby 1
mace@dynamictrend.net imp sortdir 1
mace@dynamictrend.net imp max_msgs 50
mace@dynamictrend.net imp from_link 1
mace@dynamictrend.net imp time_format %X
mace@dynamictrend.net imp nav_expanded 2
mace@dynamictrend.net imp nav_expanded_sidebar 2
mace@dynamictrend.net imp show_legend 1
mace@dynamictrend.net horde display_contact 1
mace@dynamictrend.net horde add_source localsql
mace@dynamictrend.net imp auto_expand 1
mace@dynamictrend.net imp save_recipients 1
mace@dynamictrend.net imp search_sources
mace@dynamictrend.net imp search_fields
mace@dynamictrend.net turba turba_maintenance_tasks a:2:{i:0;s:12:"upgradeprefs";i:1;s:12:"upgradelists";}
mace@dynamictrend.net imp sortpref a:1:{s:5:"INBOX";a:2:{s:1:"b";s:1:"0";s:1:"d";s:1:"1";}}
-
Cactus, before I open a bug I don't suppose you can tell me an easy way to find out if there's a user defined override?
I've opened three different bugs in the past couple of weeks and every time it's been invalid. :shock:
If it's inline html you are wanting to view then change /etc/e-smith/templates/home/httpd/html/horde/config/mime_drivers.php from false to true.
Test, and if it works, then create a custom-template to preserve your setting.
A user can set in options, mail, message viewing, Block images in HTML messages unless they are specifically requested? and/or Automatically show images in HTML messages when the sender is in my address book?
I am able to view inline images most of the time. There are some issues I have with view certain types of mail with different content types, but I have been to lazy to see if they view fine in OL or TB to file a decent bug report to horde's bugtracker.
If you want to forward me an email you can't view, I could verify that I can either view it or not. Make sure to forward with body text if you do.
John
-
If you want to forward me an email you can't view, I could verify that I can either view it or not. Make sure to forward with body text if you do.
John
John, what email could I forward one to you at?
Thanks,
E
-
John, what email could I forward one to you at?
I'd say open a bug for it and attach it to that bug.
-
I'd say open a bug for it and attach it to that bug.
I wouldn't. If it's a bug that needs to be opened, it needs to be opened upstream in horde's bug tracker. This is nothing we can fix if it's other than inline html. If it's it, then there is already a bug opened to make this setting a db entry.
Attaching the message to the bug, will let someone see what you are getting. Sending it will show if someone else can actually view it correctly, which I have done in the past and was able to help someone else with their settings.
John
-
John, what email could I forward one to you at?
Thanks,
E
You should be able to click on my profile and see that info.
-
You should be able to click on my profile and see that info.
Nope... only you can see your email there.
-
Nope... only you can see your email there. If you feel safer about it, send an email to mace_AT_yurplebliss_DOT_com . I will monitor it for your email and send a few samples to you.
Thanks for that info. Interesting, I have my profile set allow users to send email to my external account. You can send it to me at bennettj at johnbennettservices.com
John
-
For those following this thread, I was able to view the email from Elliot just fine with the inline image. I'll work offline with him to work to correct it and if there is a bug, I'll post a link in this thread to it.
There may actually be a bug here in that in horde/config/mime_drivers.php is supposed to take care of the settings for all of the horde components and each individual horde-component/config/mime_drivers.php is supposed to override the horde settings. We have horde's mime_drivers.php templated, but then we also have one in imp as well that is not templated and inline html viewing is set to false.
So, if one enables it in horde, but is still disabled in imp, then imp should override and that could be the issue why when people change things in horde, it still doesn't work because it's been overridden by imp.
John
-
There may actually be a bug here in that in horde/config/mime_drivers.php is supposed to take care of the settings for all of the horde components and each individual horde-component/config/mime_drivers.php is supposed to override the horde settings. We have horde's mime_drivers.php templated, but then we also have one in imp as well that is not templated and inline html viewing is set to false.
So, if one enables it in horde, but is still disabled in imp, then imp should override and that could be the issue why when people change things in horde, it still doesn't work because it's been overridden by imp.
Thanks for the heads-up.
-
I added comments to this bug. http://bugs.contribs.org/show_bug.cgi?id=5224
-
I added comments to this bug. http://bugs.contribs.org/show_bug.cgi?id=5224
Thanks!
-
Okay so after comparing files I noticed (after John pointed it out) that imp's mime_drivers.php file had the HTML inline settings set to false.
I changed that to true and instantly was able to see inline images in horde/webmail.
If this isn't in the template's system then how do I ensure that it survives reboots? Also, is this something that should be attached to an existing bug in the tracker (like the one referenced above) or should we open a new one?
Cheers for the help!
-E
-
If this isn't in the template's system then how do I ensure that it survives reboots? Also, is this something that should be attached to an existing bug in the tracker (like the one referenced above) or should we open a new one?
If it is not templates it will not be overwritten on upgrades AFAIK. Please also add these details to http://bugs.contribs.org/show_bug.cgi?id=5224
-
Done... also referenced back to this thread in case my wording was less than stellar as is often the case.
-E
-
If it is not templates it will not be overwritten on upgrades AFAIK. Please also add these details to http://bugs.contribs.org/show_bug.cgi?id=5224
Yes, it will be overwritten on upgrades of imp, but not e-smith-imp. That's basically what I stated in my comments in the bug report about no longer templating the one in horde, and templating the one in imp.
John
-
Yes, it will be overwritten on upgrades of imp, but not e-smith-imp. That's basically what I stated in my comments in the bug report about no longer templating the one in horde, and templating the one in imp.
Are you sure of that John? I though that yum took care of that by placing the new file with the extension .rpmnew when a file from a previous version of that package already existed when it was modified in regards to the package being uninstalled.
-
Are you sure of that John? I though that yum took care of that by placing the new file with the extension .rpmnew when a file from a previous version of that package already existed when it was modified in regards to the package being uninstalled.
Yeah, I think you are right. I actually have my imp, mime_drivers.php file in a custom template. This is something I could test over the weekend to verify.
John
-
Has anybody been able to get horde to display inline images?
I have followed cactus short howto, but no luck, I still get this:
(http://img4.imageshack.us/img4/6786/adszb.tif)
Also, sometimes when I click on unnamed, a separate window opens up where I can view the message. But most of the time that does not even work, it looks like a separate window wants to open up, but all over sudden I get a message to download "unnamed"
-
To get inline images to work in imp
pico -w /home/httpd/html/horde/imp/config/mime_drivers.php
/**
* Image driver settings
*/
$mime_drivers['imp']['images'] = array(
'inline' => true,
'handles' => array(
'image/*'
),
'icons' => array(
'default' => 'image.png'
),
/* Display thumbnails for all images, not just large images? */
'allthumbs' => true
);
This file is not templated and will be overwritten on new imp version installs. I've been thinking about untemplating horde's mime_drivers and templating imp's as imp's settings override horde's. There is a bug open for that, don't remember what number. As I got more free time, I'll look into that.
You might also need to login to webmail, options, message viewing, and uncheck, Block images in HTML messages unless they are specifically requested?
If I missed something, let me know.
HTH,
John Bennett
-
Hi John,
Thank you very much for your reply.
Unfortunately when I did the change you suggested, I still would only see "unnamed" with "There are no parts that can be displayed inline"
But you pointed me in the right direction, I studied the file you suggested to change, and I did an additional change that did the trick. I changed false to true in this part:
* HTML driver settings
*/
$mime_drivers['imp']['html'] = array(
'inline' => true,
'handles' => array(
'text/html'
Now, just to have a way to keep the file from getting overwritten.
Thank you John
-
See bug 5224.
John