@@ -974,7 +974,7 @@ public function get_message_list($uids, $raw=false, $include_content_body = fals
974974 if ($ this ->is_supported ( 'X-GM-EXT-1 ' )) {
975975 $ command .= 'X-GM-MSGID X-GM-THRID X-GM-LABELS ' ;
976976 }
977- $ command .= "BODY.PEEK[HEADER.FIELDS (SUBJECT X-AUTO-BCC FROM DATE CONTENT-TYPE X-PRIORITY TO LIST-ARCHIVE REFERENCES MESSAGE-ID X-SNOOZED X-SCHEDULE X-PROFILE-ID X-DELIVERY)] " ;
977+ $ command .= "BODY.PEEK[HEADER.FIELDS (SUBJECT X-AUTO-BCC FROM DATE CONTENT-TYPE X-PRIORITY TO LIST-ARCHIVE REFERENCES MESSAGE-ID IN-REPLY-TO X-SNOOZED X-SCHEDULE X-PROFILE-ID X-DELIVERY)] " ;
978978 if ($ include_content_body ) {
979979 $ command .= " BODY.PEEK[TEXT]<0.500> " ;
980980 }
@@ -988,8 +988,8 @@ public function get_message_list($uids, $raw=false, $include_content_body = fals
988988 $ res = $ this ->get_response (false , true );
989989 $ status = $ this ->check_response ($ res , true );
990990 $ tags = array ('X-GM-MSGID ' => 'google_msg_id ' , 'X-GM-THRID ' => 'google_thread_id ' , 'X-GM-LABELS ' => 'google_labels ' , 'UID ' => 'uid ' , 'FLAGS ' => 'flags ' , 'RFC822.SIZE ' => 'size ' , 'INTERNALDATE ' => 'internal_date ' );
991- $ junk = array ('X-AUTO-BCC ' , 'MESSAGE-ID ' , 'REFERENCES ' , 'X-SNOOZED ' , 'X-SCHEDULE ' , 'X-PROFILE-ID ' , 'X-DELIVERY ' , 'LIST-ARCHIVE ' , 'SUBJECT ' , 'FROM ' , 'CONTENT-TYPE ' , 'TO ' , '( ' , ') ' , '] ' , 'X-PRIORITY ' , 'DATE ' );
992- $ flds = array ('x-auto-bcc ' => 'x_auto_bcc ' , 'message-id ' => 'message_id ' , 'references ' => 'references ' , 'x-snoozed ' => 'x_snoozed ' , 'x-schedule ' => 'x_schedule ' , 'x-profile-id ' => 'x_profile_id ' , 'x-delivery ' => 'x_delivery ' , 'list-archive ' => 'list_archive ' , 'date ' => 'date ' , 'from ' => 'from ' , 'to ' => 'to ' , 'subject ' => 'subject ' , 'content-type ' => 'content_type ' , 'x-priority ' => 'x_priority ' , 'body ' => 'content_body ' );
991+ $ junk = array ('X-AUTO-BCC ' , 'MESSAGE-ID ' , 'IN-REPLY-TO ' , ' REFERENCES ' , 'X-SNOOZED ' , 'X-SCHEDULE ' , 'X-PROFILE-ID ' , 'X-DELIVERY ' , 'LIST-ARCHIVE ' , 'SUBJECT ' , 'FROM ' , 'CONTENT-TYPE ' , 'TO ' , '( ' , ') ' , '] ' , 'X-PRIORITY ' , 'DATE ' );
992+ $ flds = array ('x-auto-bcc ' => 'x_auto_bcc ' , 'message-id ' => 'message_id ' , 'in-reply-to ' => ' in_reply_to ' , ' references ' => 'references ' , 'x-snoozed ' => 'x_snoozed ' , 'x-schedule ' => 'x_schedule ' , 'x-profile-id ' => 'x_profile_id ' , 'x-delivery ' => 'x_delivery ' , 'list-archive ' => 'list_archive ' , 'date ' => 'date ' , 'from ' => 'from ' , 'to ' => 'to ' , 'subject ' => 'subject ' , 'content-type ' => 'content_type ' , 'x-priority ' => 'x_priority ' , 'body ' => 'content_body ' );
993993 $ headers = array ();
994994
995995 foreach ($ res as $ n => $ vals ) {
@@ -1002,6 +1002,7 @@ public function get_message_list($uids, $raw=false, $include_content_body = fals
10021002 $ references = '' ;
10031003 $ date = '' ;
10041004 $ message_id = '' ;
1005+ $ in_reply_to = '' ;
10051006 $ x_priority = 0 ;
10061007 $ content_type = '' ;
10071008 $ to = '' ;
@@ -1089,7 +1090,7 @@ public function get_message_list($uids, $raw=false, $include_content_body = fals
10891090 'date ' => $ date , 'from ' => $ from , 'to ' => $ to , 'subject ' => $ subject , 'content-type ' => $ content_type ,
10901091 'timestamp ' => time (), 'charset ' => $ cset , 'x-priority ' => $ x_priority , 'google_msg_id ' => $ google_msg_id ,
10911092 'google_thread_id ' => $ google_thread_id , 'google_labels ' => $ google_labels , 'list_archive ' => $ list_archive ,
1092- 'references ' => $ references , 'message_id ' => $ message_id , 'x_auto_bcc ' => $ x_auto_bcc ,
1093+ 'references ' => $ references , 'message_id ' => $ message_id , 'in_reply_to ' => $ in_reply_to , ' x_auto_bcc ' => $ x_auto_bcc ,
10931094 'x_snoozed ' => $ x_snoozed , 'x_schedule ' => $ x_schedule , 'x_profile_id ' => $ x_profile_id , 'x_delivery ' => $ x_delivery );
10941095 $ headers [$ uid ]['preview_msg ' ] = $ flds ['body ' ] != "content_body " ? $ flds ['body ' ] : "" ;
10951096
0 commit comments