Thnx Thijs Kinkhorst for solving this issue.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3300
7612ce4b-ef26-0410-bec9-
ea0150e637f0
$php_sort_array = array();
if ($uid_support) {
- $uidnext = $mbxresponse['UIDNEXT']-1;
+ if (isset($mbxresponse['UIDNEXT']) && $mbxresponse['UIDNEXT']) {
+ $uidnext = $mbxresponse['UIDNEXT']-1;
+ } else {
+ $uidnext = '*';
+ }
$uid_query = "$sid SEARCH UID 1:$uidnext\r\n";
fputs($imap_stream, $uid_query);
$uids = sqimap_read_data($imap_stream, $sid, true ,&$response, $message);