We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a7de45 + d227aec commit a572a21Copy full SHA for a572a21
1 file changed
src/PhpImap/DataPartInfo.php
@@ -79,6 +79,9 @@ public function fetch(): string
79
if (0 === $this->part) {
80
$this->data = Imap::body($this->mail->getImapStream(), $this->id, $this->options);
81
} else {
82
+ if (null !== $this->data) {
83
+ return $this->data;
84
+ }
85
$this->data = Imap::fetchbody($this->mail->getImapStream(), $this->id, $this->part, $this->options);
86
}
87
0 commit comments