作者 邓超

1

@@ -268,6 +268,10 @@ class Imap { @@ -268,6 +268,10 @@ class Imap {
268 */ 268 */
269 public function selectFolder($folder='INBOX'){ 269 public function selectFolder($folder='INBOX'){
270 270
  271 + if(empty($folder)){
  272 + throw new \Exception('select folder('.$folder.') not fount');
  273 + }
  274 +
271 // 选择文件夹 275 // 选择文件夹
272 $result = $this->request("SELECT \"{$folder}\""); 276 $result = $this->request("SELECT \"{$folder}\"");
273 if($result[0] != 'ok'){ 277 if($result[0] != 'ok'){