[imp] HEAD: getDelimiter oddities, bug?

Lachlan Cameron-Smith lachlan.cameronsmith at adelaide.edu.au
Thu Jan 16 10:06:13 PST 2003


Temporarily you could hack lib/Folder.php to hardcode the delimiter so 
that instead of the line $delimiter = IMP_Folder::getDelimiter($stream); 
you use $delimiter = '.';

I'd like to see the delimiter become an option in servers.php - until I 
put in a hack as above on our IMP installation we had many people 
logging in simultaneously, which spawned a large number of "LIST %" 
commands from the getDelimiter function, which really slowed down the 
IMAP server response time, which really slowed down the IMP page load 
times. The delimiter stays constant for a given server, so I think it 
makes more sense to define it once in servers.php than try to discover 
it for each page loaded... I'll write up a patch against 3.1 and HEAD 
and we'll see if people agree enough to get it accepted :)

Regards,
Lachlan


Leena Heino wrote:

> It seems that if I have only INBOX and this mailbox does not have
> childer then getDelimiter is unable to get delimiter and uses the default
> value. The default delimiter "/" does not work with Cyrus, which expects
> to use "." as delimiter.
> 
> What is the correct way of fixing this feature with getDelimiter?

-- 
Lachlan Cameron-Smith
Systems Specialist, ITS, Adelaide University

-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information which may be confidential and/or
copyright.  If you are not the intended recipient please
do not read, save, forward, disclose, or copy the contents
of this email. If this email has been sent to you in error,
please notify the sender by reply email and delete this
email and any copies or links to this email completely and
immediately from your system.  No representation is made
that this email is free of viruses.  Virus scanning is
recommended and is the responsibility of the recipient.



More information about the imp mailing list