/* fallback to default charset */
if ($response == 'NO') {
if (strpos($message,'[BADCHARSET]') !== false ||
- strpos($message,'Unrecognized character set') !== false) {
+ strpos($message,'character') !== false) {
sqm_trigger_imap_error('SQM_IMAP_BADCHARSET',$query, $response, $message);
$query = "SORT ($sSortField) US-ASCII $search";
$aData = sqimap_run_command_list ($imap_stream, $query, true, $response, $message, TRUE);
if ($response == 'NO') {
if (strpos($message,'[BADCHARSET]') !== false ||
- strpos($message,'Unrecognized character set') !== false) {
+ strpos($message,'character') !== false) {
sqm_trigger_imap_error('SQM_IMAP_BADCHARSET',$query, $response, $message);
$query = "THREAD $sort_type US-ASCII $search";
$thread_test = sqimap_run_command ($imap_stream, $query, true, $response, $message, TRUE);