Skip to content

Commit

Permalink
fix: retrieve body structure and process parts on mailbox sync
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski committed Aug 27, 2024
1 parent 7abda48 commit a44e4e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/IMAP/ImapMessageFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ public function fetchMessage(?Horde_Imap_Client_Data_Fetch $fetch = null): IMAPM
if ($structure_type === 'multipart') {
$i = 1;
foreach ($structure->getParts() as $p) {
$this->getPart($p, (string)$i++, $isEncrypted || $isSigned);
$this->getPart($p, (string)$i++, !$this->loadBody || $isEncrypted || $isSigned);
}
} else {
$bodyPartId = $structure->findBody();
if (!is_null($bodyPartId)) {
$this->getPart($structure[$bodyPartId], $bodyPartId, $isEncrypted || $isSigned);
$this->getPart($structure[$bodyPartId], $bodyPartId, !$this->loadBody || $isEncrypted || $isSigned);
}
}
}
Expand Down

0 comments on commit a44e4e5

Please sign in to comment.