...
|
...
|
@@ -115,9 +115,31 @@ class Mail { |
|
|
|
|
|
if(!$db->count(folderSql::has(['uuid'=>$uuid]))){
|
|
|
try {
|
|
|
$folder_name = '';
|
|
|
// 已发送
|
|
|
if(in_array('Send',$folder['check'])){
|
|
|
$folder_name = folderAlias('Send');
|
|
|
}
|
|
|
// 草稿
|
|
|
elseif(in_array('Drafts',$folder['check'])){
|
|
|
$folder_name = folderAlias('Drafts');
|
|
|
}
|
|
|
// 垃圾
|
|
|
elseif(in_array('Junk',$folder['check'])){
|
|
|
$folder_name = folderAlias('Junk');
|
|
|
}
|
|
|
// 回收站
|
|
|
elseif(in_array('Trash',$folder['check'])){
|
|
|
$folder_name = folderAlias('Trash');
|
|
|
}
|
|
|
|
|
|
if(!$folder_name){
|
|
|
$folder_name = folderAlias($folder['parseFolder']);
|
|
|
}
|
|
|
|
|
|
$db->insert(folderSql::$table,[
|
|
|
'email_id' => $email_id,
|
|
|
'folder' => folderAlias($folder['parseFolder']),
|
|
|
'folder' => $folder_name,
|
|
|
'origin_folder' => $folder['folder'],
|
|
|
'uuid' => $uuid,
|
|
|
'pid' => $pid
|
...
|
...
|
|