Closed jakubboucek closed 1 year ago
Base: 94.76% // Head: 94.73% // Decreases project coverage by -0.04%
:warning:
Coverage data is based on head (
ce12e39
) compared to base (a238641
). Patch coverage: 92.30% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Really IDK how to meaningfully test \Ddeboer\Imap\Message\EmbeddedMessage::saveRawMessage()
.
Really IDK how to meaningfully test
\Ddeboer\Imap\Message\EmbeddedMessage::saveRawMessage()
.
Just add few meaningful lines to \Ddeboer\Imap\Tests\EmbeddedMessageTest
I'd say, and we are ready to merge :muscle:
@Slamdunk Thanks to merge 👍
PR is adding ability to store raw Message (or their parts) to file directly via native
imap_savebody()
function.Direct handling I/O is much more effective than fetch Message Body as string and than save it. Some messages may have huge size, it may waste process memory.
Example how to simple store Message content file:
Streams
The
imap_savebody()
function supports Streams too, this provides the ability to connect elements with pipes for effective manipulating with mail content.Example how to simple store Message content to compressed file with single atomic operation: