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,839
  • +2/-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,839
  • +2/-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,839
  • +2/-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,839
  • +2/-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