Koozali.org: home of the SME Server

roundcube -v- horde (imp/dimp)

Offline Elliott

  • ****
  • 150
  • +0/-0
roundcube -v- horde (imp/dimp)
« 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
« Last Edit: May 04, 2009, 10:01:53 PM by Elliott »
Elliott

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: roundcube -v- horde (imp/dimp)
« Reply #1 on: May 04, 2009, 07:51:08 PM »
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

Code: [Select]
[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.
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/home/httpd/html/horde/config/mime_drivers.php/2
Code: [Select]
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:
Code: [Select]
    'inline' => false,to:
Code: [Select]
    'inline' => true,4. Now regenerate the configuration file:
Code: [Select]
expand-template /home/httpd/html/horde/config/mime_drivers.phpThis 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 :-)
« Last Edit: May 04, 2009, 07:53:35 PM by cactus »
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 Stefano

  • *
  • 10,894
  • +3/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #2 on: May 04, 2009, 09:00:46 PM »
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

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #3 on: May 04, 2009, 09:16:32 PM »
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.

Offline Elliott

  • ****
  • 150
  • +0/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #4 on: May 04, 2009, 09:54:38 PM »
I appreciate the effort Cactus but alas... even with this change I get the same results...

Code: [Select]
"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.
Elliott

Offline Elliott

  • ****
  • 150
  • +0/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #5 on: May 04, 2009, 10:04:38 PM »
Actually after following the mini howto you gave and expanding I even rebooted... when I

Code: [Select]
cat /etc/e-smith/templates/home/httpd/html/horde/config/mime_drivers.php/320images
I see that it still reads false... perhaps some misstep?
Elliott

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #6 on: May 04, 2009, 10:07:26 PM »
Actually after following the mini howto you gave and expanding I even rebooted... when I

Code: [Select]
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:
Code: [Select]
cat /etc/e-smith/templates-custom/home/httpd/html/horde/config/mime_drivers.php/320images

HTH
ciao
Stefano

Offline Elliott

  • ****
  • 150
  • +0/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #7 on: May 04, 2009, 10:11:11 PM »
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?
Elliott

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: roundcube -v- horde (imp/dimp)
« Reply #8 on: May 04, 2009, 10:44:19 PM »
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).

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 Elliott

  • ****
  • 150
  • +0/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #9 on: May 05, 2009, 03:29:09 PM »
And in looking there it took:

Code: [Select]
// 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?
Elliott

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #10 on: May 05, 2009, 03:37:42 PM »
please post the result of
Code: [Select]
grep -A2 -B2 'inline' /home/httpd/html/horde/config/mime_drivers.php

thank you

Ciao
Stefano

Offline Elliott

  • ****
  • 150
  • +0/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #11 on: May 05, 2009, 03:43:29 PM »
-An -Bn... that's a nice one that I didn't know!

Code: [Select]
*/
$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',
« Last Edit: May 05, 2009, 04:54:10 PM by Elliott »
Elliott

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #12 on: May 05, 2009, 04:38:08 PM »
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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: roundcube -v- horde (imp/dimp)
« Reply #13 on: May 05, 2009, 04:46:55 PM »
sorry, I have no idea of what is your problem
Perhaps a user defined override in the database of horde?
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 Elliott

  • ****
  • 150
  • +0/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #14 on: May 05, 2009, 04:51:56 PM »
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:
Elliott

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: roundcube -v- horde (imp/dimp)
« Reply #15 on: May 05, 2009, 05:00:36 PM »
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:
Code: [Select]
mysql -D horde -e "SELECT * FROM horde_prefs"
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 Elliott

  • ****
  • 150
  • +0/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #16 on: May 05, 2009, 08:28:55 PM »
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.

Code: [Select]
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";}}
Elliott

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: roundcube -v- horde (imp/dimp)
« Reply #17 on: May 06, 2009, 02:21:37 AM »
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
......

Offline Elliott

  • ****
  • 150
  • +0/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #18 on: May 06, 2009, 02:30:14 PM »
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
Elliott

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: roundcube -v- horde (imp/dimp)
« Reply #19 on: May 06, 2009, 02:50:04 PM »
John, what email could I forward one to you at?
I'd say open a bug for it and attach it to that bug.
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 mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: roundcube -v- horde (imp/dimp)
« Reply #20 on: May 06, 2009, 03:42:43 PM »
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
« Last Edit: May 06, 2009, 03:50:18 PM by mrjhb3 »
......

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: roundcube -v- horde (imp/dimp)
« Reply #21 on: May 06, 2009, 03:48:30 PM »
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.
......

Offline Elliott

  • ****
  • 150
  • +0/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #22 on: May 06, 2009, 04:01:14 PM »
You should be able to click on my profile and see that info.

Nope... only you can see your email there.
« Last Edit: May 06, 2009, 04:17:46 PM by Elliott »
Elliott

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: roundcube -v- horde (imp/dimp)
« Reply #23 on: May 06, 2009, 04:13:47 PM »
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
......

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: roundcube -v- horde (imp/dimp)
« Reply #24 on: May 06, 2009, 05:28:40 PM »
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
......

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: roundcube -v- horde (imp/dimp)
« Reply #25 on: May 06, 2009, 09:21:08 PM »
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.
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 mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: roundcube -v- horde (imp/dimp)
« Reply #26 on: May 07, 2009, 06:18:59 AM »
I added comments to this bug.  http://bugs.contribs.org/show_bug.cgi?id=5224
......

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: roundcube -v- horde (imp/dimp)
« Reply #27 on: May 07, 2009, 02:03:08 PM »
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 Elliott

  • ****
  • 150
  • +0/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #28 on: May 07, 2009, 03:07:53 PM »
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
Elliott

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: roundcube -v- horde (imp/dimp)
« Reply #29 on: May 07, 2009, 03:40:36 PM »
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
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 Elliott

  • ****
  • 150
  • +0/-0
Re: roundcube -v- horde (imp/dimp)
« Reply #30 on: May 07, 2009, 03:46:31 PM »
Done... also referenced back to this thread in case my wording was less than stellar as is often the case.

-E
Elliott

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: roundcube -v- horde (imp/dimp)
« Reply #31 on: May 07, 2009, 03:51:45 PM »
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
......

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: roundcube -v- horde (imp/dimp)
« Reply #32 on: May 07, 2009, 04:05:33 PM »
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.
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 mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: roundcube -v- horde (imp/dimp)
« Reply #33 on: May 07, 2009, 04:27:51 PM »
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
......

Offline calisun

  • *
  • 620
  • +0/-1
Re: roundcube -v- horde (imp/dimp)
« Reply #34 on: January 19, 2010, 08:25:37 AM »
Has anybody been able to get horde to display inline images?
I have followed cactus short howto, but no luck, I still get this:



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"
« Last Edit: January 19, 2010, 08:28:32 AM by calisun »
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: roundcube -v- horde (imp/dimp)
« Reply #35 on: January 21, 2010, 03:52:09 AM »
To get inline images to work in imp
Code: [Select]

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
« Last Edit: January 21, 2010, 04:35:29 AM by mrjhb3 »
......

Offline calisun

  • *
  • 620
  • +0/-1
Re: roundcube -v- horde (imp/dimp)
« Reply #36 on: January 21, 2010, 06:44:34 AM »
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:

Code: [Select]
* 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
SME user and community member since 2005.
Want to install Wordpress in iBay of SME Server?
See my step-by-step How-To wiki here:
http://wiki.contribs.org/Wordpress_Multisite

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: roundcube -v- horde (imp/dimp)
« Reply #37 on: January 21, 2010, 03:59:13 PM »
See bug 5224.


John
......