We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2af8c99 commit 85d751dCopy full SHA for 85d751d
src/MessageQuery.php
@@ -269,18 +269,18 @@ protected function fetch(Collection $messages): array
269
$fetch[] = 'RFC822.SIZE';
270
}
271
272
- if ($this->fetchBody) {
273
- $fetch[] = $this->fetchAsUnread
274
- ? 'BODY.PEEK[TEXT]'
275
- : 'BODY[TEXT]';
276
- }
277
-
278
if ($this->fetchHeaders) {
279
$fetch[] = $this->fetchAsUnread
280
? 'BODY.PEEK[HEADER]'
281
: 'BODY[HEADER]';
282
283
+ if ($this->fetchBody) {
+ $fetch[] = $this->fetchAsUnread
+ ? 'BODY.PEEK[TEXT]'
+ : 'BODY[TEXT]';
+ }
+
284
if (empty($fetch)) {
285
return $uids->mapWithKeys(fn (string|int $uid) => [
286
$uid => [
0 commit comments