[horde] H6 imp appears to ignore mime_drivers.local.php

Brent impuser at bitrealm.com
Mon May 26 20:47:45 UTC 2025


  Quoting Jean Charles Delépine <delepine at u-picardie.fr>:

> Quoting Brent <impuser at bitrealm.com>:
>
>> After running "composer update" today, I find my system is no  
>> longer using the html inline allowance I have in my  
>> mime_drivers.local.php file.
>>
>> In the following directory:
>>
>> <install-dir>/var/config/imp
>>
>> I have a file named "mime_drivers.local.php" which contains:
>>
>> <?php
>> $mime_drivers['html']['inline'] = true;
>>
>> I run "composer horde-reconfigure" and this creates a symlink in  
>> <install-dir>/vendor/horde/imp/config for this file that is in the  
>> directory above; however, it doesn't appear to be using the  
>> override setting I have set.
>>
>> I have to update the main mime_drivers.php file in  
>> <install-dir>/vendor/horde/imp/config directory in order to get  
>> inline html to display.
>>
>> This is on imp-7.0.0(alpha 14) and horde(6.0.0-alpha10), using php 8.4.7.
>
> Hello,
>
> This patch not yet in composer fix a similar problem caused by last  
> update (hook.php not loaded) :
>
> fix: Hoist pathinfo request to make sure the variable pinfo is  
> available in all paths of loadconfig
> https://github.com/horde/Core/commit/02a5e23c587781c31f83c0ff81691122c08a27d9
>
> Sincerly,
>    Jean Charles Delépine
>
> --
> Service systèmes et réseaux - DISI
>
> Université de Picardie Jules Verne
> 5, rue du moulin neuf - 80000 Amiens
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/To unsubscribe,  
> mail: horde-unsubscribe at lists.horde.org

Ok, that patch seems to have fixed the issue. I have one more new one  
and one old one.

New issue:

Hitting the "Spam" or "Innocent" button in IMP no longer moves the  
message to the appropriate folder after a "composer update". No error,  
the email just doesn't move as it did before the composer update.

Old issue:

Dates for birthdays in Contacts only shows current year plus 10 more  
years. So...2025-2035. I "hacked" this by doing:

<install-dir>/vendor/horde/core/lib/Horde/Core/Ui/VarRenderer/Html.php

Line 579:

Removed the $var->type->getProperty('start_year') value with a  
hard-coded 1900 year.

Current:     for ($i = $var->type->getProperty('start_year'); $i <=  
$var->type->getProperty('end_year'); $i++) {

My "hack":  for ($i = 1900; $i <= $var->type->getProperty('end_year'); $i++) {

I've no idea where to set "start_year" as mine is apparently NULL or  
maybe "current_year" when it gets here.

brent


More information about the horde mailing list