IMAP Search squirrelmail

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
gabrielharrison
Normal user
Normal user
Posts: 61
Joined: 2004-12-13 15:40

IMAP Search squirrelmail

Post by gabrielharrison » 2004-12-14 22:14

Hi,

Has anyone else found that the search facility does not work with hmailserver and squirrelmail 1.4.3a.

I have worked out a very simple tweak to solve the issue.

in imap_search.php modify the line:

Code: Select all

if ($imap_server_type == 'macosx')
to

Code: Select all

($imap_server_type == 'macosx' || $imap_server_type == 'hmailserver')
and then set

Code: Select all

$imap_server_type = 'hmailserver';
in config.php

This will make the search treat hmailserver the same as a macosx server. The file has the following comment:
/* it seems macosx does not support the prefered search
syntax so we fall back to the older style. This IMAP
server has a problem with multiple search terms. Instead
of returning the messages that match all the terms it
returns the messages that match each term. Could be fixed
on the client side, but should be fixed on the server
as per the RFC */
Hope that helps,

Gabriel

ric melia
Normal user
Normal user
Posts: 33
Joined: 2004-12-13 15:11

Post by ric melia » 2004-12-16 14:01

thanks for that :)

affeee
New user
New user
Posts: 1
Joined: 2005-03-16 22:15

Post by affeee » 2005-03-16 22:17

This is really not working...

it still returns all mails

Post Reply