print "these servers. If you would like to use them, please select your\n";
print "IMAP server. If you do not wish to use these work-arounds, you can\n";
print "set this to \"other\", and none will be used.\n";
- print " cyrus = Cyrus IMAP server\n";
- print " uw = University of Washington's IMAP server\n";
- print " exchange = Microsoft Exchange IMAP server\n";
- print " courier = Courier IMAP server\n";
- print " macosx = Mac OS X Mailserver\n";
- print " other = Not one of the above servers\n";
+ print " cyrus = Cyrus IMAP server\n";
+ print " uw = University of Washington's IMAP server\n";
+ print " exchange = Microsoft Exchange IMAP server\n";
+ print " courier = Courier IMAP server\n";
+ print " macosx = Mac OS X Mailserver\n";
+ print " hmailserver = hMailServer\n";
+ print " other = Not one of the above servers\n";
print "[$WHT$imap_server_type$NRM]: $WHT";
$new_imap_server_type = <STDIN>;
$continue = 0;
while ( $continue != 1 ) {
print "Please select your IMAP server:\n";
- print " cyrus = Cyrus IMAP server\n";
- print " uw = University of Washington's IMAP server\n";
- print " exchange = Microsoft Exchange IMAP server\n";
- print " courier = Courier IMAP server\n";
- print " macosx = Mac OS X Mailserver\n";
- print " mercury32 = Mercury/32\n";
- print " quit = Do not change anything\n";
+ print " cyrus = Cyrus IMAP server\n";
+ print " uw = University of Washington's IMAP server\n";
+ print " exchange = Microsoft Exchange IMAP server\n";
+ print " courier = Courier IMAP server\n";
+ print " macosx = Mac OS X Mailserver\n";
+ print " hmailserver = hMailServer\n";
+ print " mercury32 = Mercury/32\n";
+ print " quit = Do not change anything\n";
print "Command >> ";
$server = <STDIN>;
$server =~ s/[\r\n]//g;
$disp_default_folder_prefix = $default_folder_prefix;
$continue = 1;
+ } elsif ( $server eq "hmailserver" ) {
+ $imap_server_type = "hmailserver";
+
+ $continue = 1;
} elsif ( $server eq "mercury32" ) {
$imap_server_type = "mercury32";
$default_folder_prefix = "";
Settings can be different if IMAP server uses shared folders.
Possible server values are:
- cyrus = Cyrus IMAP server
- uw = University of Washington's IMAP server
- exchange = Microsoft Exchange IMAP server
- courier = Courier IMAP server
- macosx = Mac OS X Mailserver
- mercury32 = Mercury/32
+ cyrus = Cyrus IMAP server
+ uw = University of Washington's IMAP server
+ exchange = Microsoft Exchange IMAP server
+ courier = Courier IMAP server
+ macosx = Mac OS X Mailserver
+ hmailserver = hMailServer
+ mercury32 = Mercury/32
-----------------
default settings:
delete_folder = true
force_username_lowercase = false
+------------------
+'hmailserver' settings:
+------------------
+ imap_server_type = hmailserver (used in imap_search.php)
+
-------------------
'mercury' settings:
-------------------
$multi_search = explode(' ', $search_what);
$search_string = '';
- /* it seems macosx does not support the prefered search
+ /* it seems macosx and hmailserver do 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
on the client side, but should be fixed on the server
as per the RFC */
- if ($imap_server_type == 'macosx') {
+ if ($imap_server_type == 'macosx' || $imap_server_type == 'hmailserver') {
foreach ($multi_search as $multi_search_part) {
if (strtoupper($languages[$squirrelmail_language]['CHARSET']) == 'ISO-2022-JP') {
$multi_search_part = mb_convert_encoding($multi_search_part, 'JIS', 'auto');
-?>
\ No newline at end of file
+?>