Marco <fa...@csi.it> a écrit :

Ralf Lang <lang <at> b1-systems.de> writes:


I have a hook writing three identities and imp reads them and uses them. The
identity details don't show up in imp's separate configuration fields though.

In my prefs I only locked  'from_addr'. All identities work on
horde-webmail-1.2.9: IMP uses them and users can configure not locked prefs.

Upgrading to horde 4.0.5 (Horde Groupware Webmail Edition 4.0-RC2) all
identities values disappear, unless default identy and from_addr of default
identity.

I can create/modify identity on horde 4. It works. I think it's only an upgrade
problem from horde 3.

Hi,

I had the same problem and i correct it with the following script :

....

$query = "SELECT pref_uid, pref_value FROM horde_prefs WHERE pref_scope LIKE 'horde' AND `pref_name` LIKE 'identities'";

while ($row = mysql_fetch_array($result)) {
$unserialized = preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.strlen('$2').':\"$2\";'", $row['pref_value'] );
        $data    = unserialize($unserialized);

        $pref_uid = $row['pref_uid'];

        $new_data=array();
        foreach ($data as $key => $val)
        {
                foreach ($data[$key] as $id => $value) {
                        $new_data[$key][$id] = $value ;
                }
        }
        $new_data[0]['identities'] = 'a:0:{}';
        $new_data[0]['properties'] = '';
        $new_data[0]['location'] = '';

        $new_data_serial = serialize($new_data);

$query = sprintf("UPDATE horde_prefs SET `horde_prefs`.`pref_value` = '%s' WHERE `horde_prefs`.`pref_uid` LIKE '$pref_uid' AND `horde_prefs`.`pref_scope` LIKE 'horde' AND `horde_prefs`.`pref_name` LIKE 'identities'",
                        mysql_real_escape_string($new_data_serial));

......

I have only had the keys identities, properties and location in the horde_prefs.

Maybe could be integrated in the systemlogintask.

--
- Laurent Foucher
< I U T 'A'  Paul Sabatier >
laurent.fouc...@iut-tlse3.fr
Enseignant/Chargé de mission Systèmes & Réseau

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Attachment: binQZmuYnrf3o.bin
Description: Clé publique PGP

-- 
IMP mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Reply via email to