[imp] Errors when logging into imp

John H. Bennett III bennettj at thebennetthome.com
Wed May 2 03:35:30 UTC 2007


[long post]

Hello again,

I posted this a couple of weeks ago, but didn't get any responses, so  
I'm at it
again with more info.  Hopefully, someone with the latest version of  
dovecot can give me some additional pointers.

I am getting these errors when I login to imp using dovecot 1.0RC15  
and/or 1.0.0.

Apr 13 22:16:16 www HORDE[3665]: PHP Notice:  Trying to get property of
non-object in /home/httpd/html/horde/lib/Horde/IMAP/Tree.php on line 378

Apr 13 22:16:16 www HORDE[3665]: PHP Notice:  Trying to get property of
non-object in /home/httpd/html/horde/lib/Horde/IMAP/Tree.php on line 381

 From Tree.php
function _makeMailboxTreeElt($ob)
      {
          $elt['a'] = $ob-attributes;   <-- Line 378
          $elt['c'] = 0;
          $elt['p'] = IMAPTREE_BASE_ELT;
          $elt['v'] = $ob-name;     <-- Line 381

  Apr 13 22:16:16 www HORDE[3665]: PHP Notice:  Undefined index:  v in
  /home/httpd/html/horde/lib/Horde/IMAP/Tree.php on line 1107

  /* CHECK: If we are viewing all folders, and there is a folder
                   * listed as expanded but it does not contain any children,
                   * then we should remove it from the expanded list since it
                   * doesn't exist anymore. */
                  if ($this-_showunsub && !$ret) {
                      $this-_initExpandedList();
                      if (!empty($this-_expanded[$elt['v']])) {    <--  
Line 1107
                          $this-_removeExpandedList($elt['v']);
                          $this-_setOpen($this-_tree[$elt['v']], false);

I also get a host load of errors in my log when trying to create a folder.
Imp says the folder was created, but it's not there.


Here is what I am currently running:

PHP 5.1.6 (cli) (built: Apr  9 2007 03:37:21)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Horde - 3.1.4
Ingo - 1.1.3
Turba - 2.1.4
Imp 4.1.4
dovecot 1.0.0

IE 6 - current
Firefox 2.0.0.3

MySQL - 5.0.22

This is my first try with php 5.x, and from searching it looks like this
version of horde should work, so please let me know what other information
is needed from me to assist someone to help out.

-----additional information also posted to the dovecot list.

I am having difficulties trying to get the current stable version of  
horde's imp webmail to work correctly using dovecot 1.0rc15.  I am  
using a pre-release version of SME Server 8 which runs on top of  
CentOS 5.  I have also tried using the 1.0 release of dovecot as well.

What is happenning is that when I login to imp, I don't see any  
folders.  I can create folders in imp which do get created in my  
Maildir directory, but I can't see them.  If I revert back to  
dovecot-0.99.14-1.2, then I am able to see my folders.  I have been  
looking in the wiki at the steps needed to upgrade from 0.99 to 1.0  
and I thought everything had been taken care of, but since things  
aren't working, I have overlooked something.  I also browsed the  
archives and see that others are using hordewith various dovecot 1.x  
releases, so I know it should be possible to get it to work.

My dovecot.conf currently only as the below, which works fine for 0.99:
maildir_copy_with_hardlinks = no

my /etc/pam.d/dovecot has:
more /etc/pam.d/dovecot
#%PAM-1.0
auth       required     pam_nologin.so
auth       include      system-auth
account    include      system-auth
session    include      system-auth

imp servers.php:
$servers['_prompt'] = array(
     'name' => 'Choose a mail server:'
);

$servers['thebennetthome2.com'] = array(
     'name' => 'IMAP Server',
     'server' => 'localhost',
     'protocol' => 'imap/notls',
     'port' => '143',
     'maildomain' => 'test.com',
     'smtphost' => 'localhost',
     'realm' => 'test.com',
     'preferred' => ''
);

php -v
PHP 5.1.6 (cli) (built: Apr  9 2007 03:37:21)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

I do get some php errors when logging into horde, and a lot of php  
errors when creating folders that I can post if needed.  I did post my  
issue to the horde list as well, but there has been no answer to date.

Please let me know what other information is needed to assist me with  
fixing this issue.

-----updated dovecot -n with info from dovecot list.
dovecot -n
# /etc/dovecot.conf
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: maildir:~/Maildir
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
namespace:
   type: private
   separator: .
   location: maildir:~/Maildir
   inbox: yes
   hidden: yes
auth default:
   passdb:
     driver: pam
     args: *
   userdb:
     driver: passwd
     args: blocking=yes

If you got this far thanks for taking the time,

John Bennett




More information about the imp mailing list