Skip to content

Commit

Permalink
fix(other): gmail messages not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
christer77 committed Dec 20, 2024
1 parent 5900008 commit 663089c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/imap/hm-imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ public function get_message_list($uids, $raw=false, $include_content_body = fals
}
$command .= "BODY.PEEK[HEADER.FIELDS (SUBJECT X-AUTO-BCC FROM DATE CONTENT-TYPE X-PRIORITY TO LIST-ARCHIVE REFERENCES MESSAGE-ID X-SNOOZED)]";
if ($include_content_body) {
$command .= " BODY.PEEK[0.1]";
$command .= " BODY.PEEK[1]";
}
$command .= ")\r\n";
$cache_command = $command.(string)$raw;
Expand Down Expand Up @@ -958,7 +958,7 @@ public function get_message_list($uids, $raw=false, $include_content_body = fals
}
}
}
elseif ($vals[$i] == 'BODY[0.1') {
elseif ($vals[$i] == 'BODY[1') {
$content = '';
$i++;
$i++;
Expand Down

0 comments on commit 663089c

Please sign in to comment.