[imp] contact list not being saved...

Scott Smith ssmith@siu.edu
Fri, 06 Jul 2001 23:37:29 -0500


---------------------- multipart/alternative attachment
Thanks, I'll try this next week when I'm onsite.

I'm not sure on the version, however I think it's 2.4.X, but it very well could be
2.3.X.

I'll repost once I find out if it works or if I still have problems.
Thanks again.

Marc Jauvin wrote:

> It depends of the version you are using; for 2.3.X, you will find the following
> comment in horde/config/horde.php.dist that would explain your problem:
>
> // What preferences driver should we use? Valid values are 'none'
> // (meaning use system defaults and don't save any user preferences),
> // 'session' (preferences only persist during the login), 'ldap',
> // and 'sql'.
> $conf['prefs']['driver'] = 'none';
>
> --
> marc
>
> Back Up My Hard Drive? I Can't Find The Reverse Switch!
>
> Quoting Scott Smith <ssmith@siu.edu>:
>
> > I got a report from a person that I setup IMP on their server.
> >
> > His report was that after he creates users/contacts in his contact list
> > they stay for that session.  However if he logs out, and then logs back
> > in they are all empty again.
> >
> > Any ideas?
> >
> >
> > --
> > IMP mailing list: http://horde.org/imp/
> > Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> >
> >
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org

---------------------- multipart/alternative attachment--



>From anri@polynet.lviv.ua Date: 7 Jul 2001 15:59:18 +0300
Return-Path: <anri@polynet.lviv.ua>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 39963 invoked from network); 7 Jul 2001 13:00:28 -0000
Received: from guard.polynet.lviv.ua (217.9.2.1)
  by horde.org with SMTP; 7 Jul 2001 13:00:28 -0000
Received: (qmail 88167 invoked from network); 7 Jul 2001 13:00:20 -0000
Received: from postoffice.lp.Lviv.ua (HELO polynet.lviv.ua) (192.168.0.6)
  by guard.lp.lviv.ua with SMTP; 7 Jul 2001 13:00:20 -0000
Received: (qmail 29574 invoked by uid 0); 7 Jul 2001 13:00:19 -0000
Received: (ofmipd roceinante.lp.lviv.ua); 7 Jul 2001 12:59:57 -0000
Date: 7 Jul 2001 15:59:18 +0300
Message-ID: <16914372766.20010707155918@polynet.lviv.ua>
From: "Andriy Kopystyansky" <anri@polynet.lviv.ua>
To: "Chuck Hagenbuch" <imp@lists.horde.org>
X-Mailer: The Bat! (v1.52f)
Organization: PolyNet ISP
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [imp2.3.7] compose.php patch

Hello Chuck,
I wrote about my problem with not displayed fullname in 'From:' field,
however it was specified in my personal preferences. I wonder if noone
else has the same problem...
Not pretending to understand how the things should go with multiple/default
identities i made a little patch for horde/imp/compose.php.
It works for me and now I have nice 'From' address with fullname and email :)
I think it might work for a while...

And a little suggestion. Perhaps, there is reason to set
$_prefs['from_addr'] with 'locked' => true by default.
I'm really not going to allow my users to write messages from
youknowwho@vatican.mil - i have enough investigations with Mulder. :)


Best regards,
Andriy Kopystyansky.

The patch follows:
______________________________________________________________________________
34c34,49
<         $name = $prefs->getValue('fullname');
---
>       if (!($identities = @unserialize($prefs->getValue('identities'))) 
>       || count($identities) == 0) {
>               $identities = array();
>               $identities[0] = array('id' => _("Default identity"),
>               'fullname' => $prefs->getValue('fullname'),
>               'from_addr' => $prefs->getValue('from_addr'),
>               'replyto_addr' => $prefs->getValue('replyto_addr'),
>               'signature' => $prefs->getValue('signature'),
>               'sig_dashes' => $prefs->getValue('sig_dashes'),
>               'sig_first' => $prefs->getValue('sig_first'));
>       }
>       if (($default_identity = $prefs->getValue('default_identity')) == null 
>          || !isset($identities[$default_identity])) {
>                       $default_identity = 0;
>       }
>       $name = $identities[$default_identity]['fullname'];

______________________________________________________________________________



>From marc@register4less.com Date: Sat,  7 Jul 2001 10:01:12 -0400
Return-Path: <marc@register4less.com>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 41274 invoked from network); 7 Jul 2001 14:01:14 -0000
Received: from modemcable095.183-200-24.mtl.mc.videotron.ca (HELO whitestar.visualocity.com) (24.200.183.95)
  by horde.org with SMTP; 7 Jul 2001 14:01:14 -0000
Received: (from apache@localhost)
	by whitestar.visualocity.com (8.11.2/8.11.2) id f67E1CG06715
	for imp@lists.horde.org; Sat, 7 Jul 2001 10:01:12 -0400
X-Authentication-Warning: whitestar.visualocity.com: apache set sender to marc@register4less.com using -f
Received: from 24.200.183.95 ( [24.200.183.95])
	as user marc_jauvin_com@webmail4less.com by jauvin.com.it.homeip.net with HTTP;
	Sat,  7 Jul 2001 10:01:12 -0400
Message-ID: <994514472.3b47162881ad5@jauvin.com.it.homeip.net>
Date: Sat,  7 Jul 2001 10:01:12 -0400
From: Marc Jauvin <marc@register4less.com>
To: imp@lists.horde.org
References: <3B44BBBD.22776.BD29E@localhost> <3B45520B.9A1D98FC@siu.edu> <994425418.3b45ba4a149fe@jauvin.com.it.homeip.net> <3B469209.DD58A5A5@siu.edu>
In-Reply-To: <3B469209.DD58A5A5@siu.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
X-Originating-IP: 24.200.183.95
Subject: Re: [imp] contact list not being saved...

If you select "sql", you will have to create the 'horde_prefs' table in the
'horde' database... you can look in "horde/scripts/db/" for the DB structures to
create.

Regards,

-- 
marc

Back Up My Hard Drive? I Can't Find The Reverse Switch!



Quoting Scott Smith <ssmith@siu.edu>:

> Thanks, I'll try this next week when I'm onsite.
> 
> I'm not sure on the version, however I think it's 2.4.X, but it very well
> could be
> 2.3.X.
> 
> I'll repost once I find out if it works or if I still have problems.
> Thanks again.
> 
> Marc Jauvin wrote:
> 
> > It depends of the version you are using; for 2.3.X, you will find the
> following
> > comment in horde/config/horde.php.dist that would explain your problem:
> >
> > // What preferences driver should we use? Valid values are 'none'
> > // (meaning use system defaults and don't save any user preferences),
> > // 'session' (preferences only persist during the login), 'ldap',
> > // and 'sql'.
> > $conf['prefs']['driver'] = 'none';
> >
> > --
> > marc
> >
> > Back Up My Hard Drive? I Can't Find The Reverse Switch!
> >
> > Quoting Scott Smith <ssmith@siu.edu>:
> >
> > > I got a report from a person that I setup IMP on their server.
> > >
> > > His report was that after he creates users/contacts in his contact list
> > > they stay for that session.  However if he logs out, and then logs back
> > > in they are all empty again.
> > >
> > > Any ideas?
> > >
> > >
> > > --
> > > IMP mailing list: http://horde.org/imp/
> > > Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> > > Frequently Asked Questions: http://horde.org/faq/
> > > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> > >
> > >
> >
> > --
> > IMP mailing list: http://horde.org/imp/
> > Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> > Frequently Asked Questions: http://horde.org/faq/
> > To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>