imap : sort the mails
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2388 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
4
imap.php
4
imap.php
@@ -82,7 +82,7 @@ class imap
|
|||||||
if ($this->mailbox === null)
|
if ($this->mailbox === null)
|
||||||
throw new Exception ("IMAP server not connected", 500);
|
throw new Exception ("IMAP server not connected", 500);
|
||||||
$list = array_keys ($this->foldersListWithAttr ());
|
$list = array_keys ($this->foldersListWithAttr ());
|
||||||
natsort ($list);
|
sort ($list);
|
||||||
return $list;
|
return $list;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -174,7 +174,7 @@ class imap
|
|||||||
$res = array_map (function ($folder) {
|
$res = array_map (function ($folder) {
|
||||||
return mb_convert_encoding ($folder, "UTF-8", "UTF7-IMAP");
|
return mb_convert_encoding ($folder, "UTF-8", "UTF7-IMAP");
|
||||||
}, $res);
|
}, $res);
|
||||||
natsort ($res);
|
sort ($res);
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user