Default Address books in preferences
Lauri Savolainen
late.lists@savolaiset.org
Wed, 6 Feb 2002 22:24:20 +0200
---------------------- multipart/alternative attachment
Hi,
I'm trying to make default address books to my users=20
should this do it?
configs/prefs.php
// addressbook(s) to use when expanding addresses
// You can provide default values this way (note the \t and the double =
quotes):
// 'value' =3D> "source_one\tsource_two"
$_prefs['search_sources'] =3D array(
'value' =3D> "Osoitekirja\tJulkinen Osoitekirja",
'locked' =3D> false,
'shared' =3D> false,
'type' =3D> 'implicit'
);
I've made a new user and there was nothing on selected address books.
I'm i doing something wrong or is this a bug or something
Thanks,
Lauri Savolainen
---------------------- multipart/alternative attachment--
>From marcus@riboflavin.net Date: Wed, 6 Feb 2002 14:28:57 -0600
Return-Path: <marcus@riboflavin.net>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 42751 invoked from network); 6 Feb 2002 20:29:30 -0000
Received: from dsl.75.79.networkiowa.com (HELO www.riboflavin.net) (209.234.75.79)
by clark.horde.org with SMTP; 6 Feb 2002 20:29:30 -0000
Received: from localhost (dsl.75.91.networkiowa.com [209.234.75.91])
by www.riboflavin.net (8.11.1/8.11.1) with ESMTP id g16KW6100486
for <imp@lists.horde.org>; Wed, 6 Feb 2002 14:32:06 -0600 (CST)
(envelope-from marcus@riboflavin.net)
Received: from 209.234.75.79 ( [209.234.75.79])
as user marcus@imap.riboflavin.net by horde.riboflavin.net with HTTP;
Wed, 6 Feb 2002 14:28:57 -0600
Message-ID: <1013027337.3c6192097d664@horde.riboflavin.net>
Date: Wed, 6 Feb 2002 14:28:57 -0600
From: "Marcus I. Ryan" <marcus@riboflavin.net>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Originating-IP: 209.234.75.79
Subject: Fix for (infrequent) folder problem
Symptom: When I go into folders.php I see only my INBOX
despite the folder list being correct elsewhere. (10-ish
folders). I also receive the following 3 errors:
Warning: Undefined index: attributes in
/usr/local/src/horde/imp/lib/Tree.php on line 717
Warning: Undefined index: next in
/usr/local/src/horde/imp/lib/Tree.php on line 681
Warning: Undefined index: level in
/usr/local/src/horde/imp/lib/Tree.php on line 682
Problem: It appears the problem is my IMAP server uses
.imap for the users' root mail directory and we have
$conf['server']['show_dotfiles'] = false. I suppose
there is not really a reason to block dotfiles from
users at the moment, but I may want to for some reason
in the future.
Fix: The function feedList() handles the initial
loading of the folder tree. The following patch
appears to fix the problem:
--- /usr/local/src/horde.3/imp/lib/Tree.php Sun Jan 27 22:24:55 2002
+++ /usr/local/src/horde/imp/lib/Tree.php Wed Feb 6 14:18:24 2002
@@ -621,7 +621,9 @@
$list = $this->hsort($list); // make sure we're sorted correctly
foreach ($list as $value) {
$elt = $this->makeMailboxTreeElt($value->name, $value->attributes,
$value->delimiter, $level);
- if ($this->dotfiles || ($elt['label'][0] != '.')) {
+ if ($this->dotfiles ||
+ ($this->noTrailingDelimiter($this->prefix) == $elt['label']) ||
+ ($elt['label'][0] != '.' )) {
$nid = $this->insert($elt, $value->name);
if ($this->first == '') {
$this->first = $nid;
Whether this is the "right" way or not, it seems to work :)
--
Marcus I. Ryan, marcus@riboflavin.net
-----------------------------------------------------------------------
"Love is a snowmobile racing across the tundra and then suddenly it
flips over, pinning you underneath. At night, the ice weasels come."
-- Matt Groening
-----------------------------------------------------------------------
>From jan@horde.org Date: Wed, 6 Feb 2002 21:49:31 +0100
Return-Path: <jan@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 44930 invoked from network); 6 Feb 2002 20:57:37 -0000
Received: from mailout07.sul.t-online.com (194.25.134.83)
by clark.horde.org with SMTP; 6 Feb 2002 20:57:37 -0000
Received: from fwd04.sul.t-online.de
by mailout07.sul.t-online.com with smtp
id 16YZ4m-0006Zx-0E; Wed, 06 Feb 2002 21:53:56 +0100
Received: from linux.wg.de (320034214675-0001@[80.130.214.39]) by fmrl04.sul.t-online.com
with esmtp id 16YZ4a-1WRTQuC; Wed, 6 Feb 2002 21:53:44 +0100
Received: from localhost (localhost [127.0.0.1])
by linux.wg.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g16KnV932655
for <imp@lists.horde.org>; Wed, 6 Feb 2002 21:49:31 +0100
Received: from 192.168.60.135 ( [192.168.60.135])
as user jan@linux by jan.dip.ammma.net with HTTP;
Wed, 6 Feb 2002 21:49:31 +0100
Message-ID: <1013028571.3c6196db09dfd@jan.dip.ammma.net>
Date: Wed, 6 Feb 2002 21:49:31 +0100
From: Jan Schneider <jan@horde.org>
To: imp@lists.horde.org
References: <000a01c1af4c$4325a380$560b6e0a@arenanet.fi>
In-Reply-To: <000a01c1af4c$4325a380$560b6e0a@arenanet.fi>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [imp] Default Address books in preferences
Zitat von Lauri Savolainen <late.lists@savolaiset.org>:
> Hi,
>
> I'm trying to make default address books to my users
>
> should this do it?
>
> configs/prefs.php
>
> // addressbook(s) to use when expanding addresses
> // You can provide default values this way (note the t and the double
> quotes):
> // 'value' => "source_onetsource_two"
> $_prefs['search_sources'] = array(
> 'value' => "OsoitekirjatJulkinen Osoitekirja",
> 'locked' => false,
> 'shared' => false,
> 'type' => 'implicit'
> );
>
> I've made a new user and there was nothing on selected address books.
>
> I'm i doing something wrong or is this a bug or something
The values must be the key from Turba's sources.php not the name.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft