Hello Jay,
On Thursday, January 23, 2003, Jay Lee wrote...

> Mercury IMAP Server 3.32 on Win2k Pro box
> Redhat 7.3 webserver with PHP 4.2.3

> Here's what's happening:

> 1. The left folder list says the inbox is always empty regardless of
>    how many read or unread emails (0/0) there are. Opening the folder
>    in the right window shows all the emails. All other folders show the
>    correct amount of read and unread emails in the left frame.

This is curious.  What does your IMAP server return for the status
command?  Do the following:

  # telnet localhost 143
  > A01 LOGIN username password
  > A02 STATUS "INBOX" (MESSAGES UNSEEN)
  > A03 LOGOUT
  #

The results returned from the A02 command should look something like
this:

  * STATUS "INBOX" (MESSAGES 7 UNSEEN 0)

What does yours say?  Does your 1.2.10 work okay?
  
> 2. Mercury is one of those IMAP servers that doesn't understand the
>    concept of having folders and emails in the same folder. A folder
>    can either contain subfolders or emails but not both. I enabled the
>    "Show 'Contain Sub.' Option" but the left frame still wants to check
>    my folders containing folders for the # of emails in them. Next to
>    each folder containing folders I get a Not Available message.

I think we need to check on this, and make sure the server doesn't
return a \NoSelect on a folder. I'm not sure we can do this on a
STATUS query. We could just force a hiding of the "Not Available"
message.

> 3. Certain plugins seem to not find the SMPATH properly. Yes these
>    plugins were written for 1.2.x and I understand the architecture for
>    plugins has changed in 1.4 however, this seems like a relatively
>    easily fixed problem. The error returned is:

> Fatal error: Failed opening required 'SM_PATHfunctions/global.php'
> (include_path='.:/usr/share/pear:/usr/bin') in
> /var/www/mail/beta/functions/prefs.php on line 14

> looks to me like SM_PATH is meant to be a variable and instead is getting read as
> part of the string.

Partially correct.  Because SM_PATH is a constant, if it isn't
defined, PHP 'defines' the constant as itself.  To work around this,
you need to define SM_PATH.  At the top of the plugin code, above
*all* includes, you can put the following:

  define('SM_PATH' , '../../');

Remove the chdir('..') line, and you should find that is most of the
work done. As you've noticed, a few of the files have moved. Correct
the files, and away you go... in theory.

-- 
Jonathan Angliss
([EMAIL PROTECTED])



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to