imp 3.0 undefined index / function

Jens A. Tkotz jens@f2h9.de
Mon, 04 Feb 2002 02:29:57 +0100 (MET)


Hi,

i have just installed horde2.0/imp3.0

When i go to <myserver>/horde/login.php i get this :

Warning: Undefined index: dsn in /usr/php/pear/Log/sql.php on line 55

Fatal error: Call to undefined function: query() in /usr/php/pear/Log/sql.php 
on line 114


This is my php (4.1.1) configuration :
./configure \
 --with-apxs=/usr/apache/current/bin/apxs \
 --with-mysql=/usr/mysql/current --with-zlib --enable-ftp --with-gd \
 --with-jpeg-dir=/usr/lib \
 --enable-track-vars=yes --enable-url-includes --with-mcrypt\
 --enable-sysvshm=yes --enable-sysvsem=yes --with-config-file-path=/etc/httpd \
 --with-pear=/usr/php/pear --with-png-dir=/usr/lib --with-gdbm=/usr/lib \
 --with-freetype-dir=/usr/local/lib --with-ndbm=/usr/lib --with-openssl \
 --with-bz2 --with-curl --with-ncurses --enable-versioning \
 --with-gettext --with-imap=../../imap-2001a

regards,

Jens

_____________
Ich sag mal ... Charisma

-------------------------------------------------
This mail sent through IMP: www.f2h9.de


>From pelayog@herolse Date: Mon,  4 Feb 2002 02:38:26 +0100
Return-Path: <pelayog@herolse-gbc.com>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 66712 invoked from network); 4 Feb 2002 01:38:34 -0000
Received: from 217-125-104-181.uc.nombres.ttd.es (HELO mail.herolse-gbc.com) (217.125.104.181)
  by clark.horde.org with SMTP; 4 Feb 2002 01:38:34 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mail.herolse-gbc.com (8.11.6/8.11.6) with ESMTP id g141cQ108668
	for <imp@lists.horde.org>; Mon, 4 Feb 2002 02:38:27 +0100
Received: from 213.97.217.245 ( [213.97.217.245])
	as user pelayog@localhost by mail.herolse-gbc.com with HTTP;
	Mon,  4 Feb 2002 02:38:26 +0100
Message-ID: <1012786706.3c5de612cdc5c@mail.herolse-gbc.com>
Date: Mon,  4 Feb 2002 02:38:26 +0100
From: Pelayo Gonzalez <pelayog@herolse-gbc.com>
To: "\\\"imp@lists.horde.org\\\"" <imp@lists.horde.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="-MOQ1012786706d6909322cc5d6528e3b50b30d6a420a6"
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
Subject: Re: [imp] wvHtml and images

---MOQ1012786706d6909322cc5d6528e3b50b30d6a420a6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Hello,

 The attached patch is working for me here (HEAD 03/02/2002), and our users can
see the images in words documents. It isn't perfect though, and there are some
browser cache problems I was unable to get rid of. I'll try to summarize them,
may you point me in the right direction?.

 I'm not sure, but seems that view.php always send the headers:

    Cache-Control: no-store, no-cache, must-revalidate,...
    Pragma: no-cache

 I suppose those headers disable browser caching of documents. This produces a
nasty behavior in Netscape 4.77 (Linux). Netscape requests the document again
for every operation (browser window re-sizes, print document, ...), this is very
annoying in slow links, but also imposes a server overhead, as processing a
large document is an expensive operation, this is true zip/tar.gz files too.

 Fortunately Netscape 6.2 (Linux) only request the doc again when the user tries
to view its source. I can't test other browsers now so feedback are welcome.

 As a solution I'm thinking about modify imp/view.php in order to allow browser
caching of documents when ActionID=VIEW_ATTACH. With something like this:

$mtime=filemtime($file);
$mod_gmt = gmdate('D, d M Y H:i:s', $mtime) . ' GMT';
$exp_gmt = gmdate('D, d M Y H:i:s', ($mtime + 3600)) . ' GMT';
header('Last-Modified: ' . $mod_gmt);
header('Expires: ' . $exp_gmt);
header('Cache-Control: private, max-age=3600');

 I don't know how to do it yet, in fact I'm still in an early stage trying to
understand how Horde (and many more things) work. Do you think it will solve the
problem or I'm completely wrong?.

Sorry for the extension, and keep improving this great software.

TIA

Pelayo



> > Hello,
> > I managed to get wvHtml working. I've tested it with a small .doc file
> > with an image.
> > The text is all right, but the image is not shown.
> > With a little bit of looking around, I can see that the images are
> > saved
> > under the "/tmp" directory, but the URL to the image is:
> > ... src="mswordGK0ly90.png" ...
> > 
> > It is relative to the current IMP-webspace.
> > 
> > Am I doing something wrong, or is this a bug?
>
> This was discussed a few month ago, perhaps you'll find the thread in the 
> archive.
> To summarize: The only quick solution would be to let imp use a temp 
> directory the is under the webroot (bad idea!).
> 
> Jan.
---MOQ1012786706d6909322cc5d6528e3b50b30d6a420a6
Content-Type: text/plain; name="msword_images_patch.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="msword_images_patch.txt"

LS0tIGxpYi9NSU1FL1ZpZXdlci9tc3dvcmQucGhwLm9yaWcJU3VuIERlYyAyMyAyMDoyMzo1MSAy
MDAxCisrKyBsaWIvTUlNRS9WaWV3ZXIvbXN3b3JkLnBocAlNb24gRmViICA0IDAwOjMyOjEzIDIw
MDIKQEAgLTQ1LDkgKzQ1LDEyIEBACiAgICAgICAgICAgICByZXR1cm4gXygiVW5hYmxlIHRvIHRy
YW5zbGF0ZSB0aGlzIFdvcmQgZG9jdW1lbnQiKTsKICAgICAgICAgfQogCisgICAgICAgICRkdW1w
X3VybCA9IEhvcmRlOjp1cmwoJEdMT0JBTFNbJ3JlZ2lzdHJ5J10tPmdldFBhcmFtKCd3ZWJyb290
JywgJ2hvcmRlJykgLiAnL2R1bXBfaW1hZ2UucGhwP2ltYWdlPScsIHRydWUpOworCiAgICAgICAg
ICRvdXQgPSBmb3BlbigkdG1wX291dHB1dCwgJ3InKTsKICAgICAgICAgJGRhdGEgPSAnJzsKICAg
ICAgICAgd2hpbGUgKCgkcmMgPSBmZ2V0cygkb3V0LCA4MTkyKSkpIHsKKyAgICAgICAgICAgICRy
YyAgICA9IHN0cl9yZXBsYWNlKCdzcmM9IicgLiAkdG1wX2ZpbGUsICdzcmM9IicgLiAkZHVtcF91
cmwgLiAkdG1wX2ZpbGUsICRyYyk7CiAgICAgICAgICAgICAkZGF0YSAuPSAkcmM7CiAgICAgICAg
IH0KIAotLS0gZHVtcF9pbWFnZS5waHAub3JpZwlNb24gRmViICA0IDAwOjM4OjAwIDIwMDI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dKTsKK2hlYWRlcignQ29udGVudC1EaXNwb3NpdGlvbjogaW5saW5lOyBmaWxlbmFtZT0n
IC4gJGltYWdlKTsKK2hlYWRlcignQ29udGVudC1sZW5ndGg6ICcgLiAoc3RyaW5nKShmaWxlc2l6
ZSgkZmlsZSkpKTsKKworJGZwID0gZm9wZW4oJGZpbGUsICJyYiIpIG9yIGV4aXQ7CisKK3doaWxl
KCFmZW9mKCRmcCkpIHsKKyAgICAkYnVmZmVyID0gZnJlYWQoJGZwLCA0MDk2KTsKKyAgICBwcmlu
dCAkYnVmZmVyOworfQorCitmY2xvc2UoJGZwKSBvciBleGl0OworCitpZiAoaXNfd3JpdGFibGUg
KCRmaWxlKSkKKyAgICB1bmxpbmsoJGZpbGUpOworCitleGl0OworCis/PgorCg==

---MOQ1012786706d6909322cc5d6528e3b50b30d6a420a6--



>From pelayog@herolse Date: Mon,  4 Feb 2002 03:33:04 +0100
Return-Path: <pelayog@herolse-gbc.com>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 68084 invoked from network); 4 Feb 2002 02:33:10 -0000
Received: from 217-125-104-181.uc.nombres.ttd.es (HELO mail.herolse-gbc.com) (217.125.104.181)
  by clark.horde.org with SMTP; 4 Feb 2002 02:33:10 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mail.herolse-gbc.com (8.11.6/8.11.6) with ESMTP id g142X4111159
	for <imp@lists.horde.org>; Mon, 4 Feb 2002 03:33:04 +0100
Received: from 213.97.217.245 ( [213.97.217.245])
	as user pelayog@localhost by mail.herolse-gbc.com with HTTP;
	Mon,  4 Feb 2002 03:33:04 +0100
Message-ID: <1012789984.3c5df2e062596@mail.herolse-gbc.com>
Date: Mon,  4 Feb 2002 03:33:04 +0100
From: Pelayo Gonzalez <pelayog@herolse-gbc.com>
To: imp@lists.horde.org
References: <20020131123842.36054.qmail@web21110.mail.yahoo.com> <1012785672.3c5de20818cc1@raifamily.dyndns.org>
In-Reply-To: <1012785672.3c5de20818cc1@raifamily.dyndns.org>
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
Subject: Re: [imp] confused over pop3 client

Mensaje citado por Suraj Kumar Rai <surajrai@yahoo.com>:

> Quoting Roger Thomas <rogtom75@yahoo.com>:
> 
> > i have implemented maildir mailbox for my users. as i have said,
> > sending/receiving is of no problem. but most of them have external a/c
> with
> > yahoo. and they want to pop their yahoo mails into their maildir.
> > 
> 
> Fetchmail should be used per user.  Each user needs to have .fetchmailrc 

Not really, if your users agree to give you their Yahoo password you can setup a
special user to run fecthmail and poll every user mail.   

# .fetchmailrc for user fetchmail
poll pop_server_user1 with proto POP3
        user "user1" there with password "pass1" is localuser1 here
        fetchall
        pass8bits

poll pop_server_user2 with proto POP3
        user "user2" there with password "pass2" is localuser2 here
        fetchall
        pass8bits
        
....  


Hope this help

Pelayo