正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
@@ -236,11 +236,11 @@ class Mail { | @@ -236,11 +236,11 @@ class Mail { | ||
236 | 'message_id' => $header['Message-ID']??'', | 236 | 'message_id' => $header['Message-ID']??'', |
237 | 'udate' => strtotime($result['INTERNALDATE']), | 237 | 'udate' => strtotime($result['INTERNALDATE']), |
238 | 'size' => $result['RFC822.SIZE']??0, | 238 | 'size' => $result['RFC822.SIZE']??0, |
239 | - 'recent' => in_array('recent',$result['FLAGS']), | ||
240 | - 'seen' => in_array('seen',$result['FLAGS']), | ||
241 | - 'draft' => in_array('draft',$result['FLAGS']), | ||
242 | - 'flagged' => in_array('flagged',$result['FLAGS']), | ||
243 | - 'answered' => in_array('answered',$result['FLAGS']), | 239 | + 'recent' => in_array('recent',$result['FLAGS']) ? 1 : 0, |
240 | + 'seen' => in_array('seen',$result['FLAGS']) ? 1 : 0, | ||
241 | + 'draft' => in_array('draft',$result['FLAGS']) ? 1 : 0, | ||
242 | + 'flagged' => in_array('flagged',$result['FLAGS']) ? 1 : 0, | ||
243 | + 'answered' => in_array('answered',$result['FLAGS']) ? 1 : 0, | ||
244 | 'folder_id' => $folder_id, | 244 | 'folder_id' => $folder_id, |
245 | 'email_id' => $email_id, | 245 | 'email_id' => $email_id, |
246 | 'uuid' => md5($email_id.$folder_id.$result['UID']), | 246 | 'uuid' => md5($email_id.$folder_id.$result['UID']), |
-
请 注册 或 登录 后发表评论