The above linked comment explains what is fixed here:
When a single chunk is not enough, then the here-corrected method previously dumped the entire zeroed buffer into a vector. It then appended to the end of the full 1024 bytes on the next loop iteration.
This PR fixes this behavior by only dumping the bytes read into the concatenation vec.
Fixes #12
(You only need to read the very bottom of https://github.com/stalwartlabs/mail-send/issues/12#issuecomment-1432226194 - the rest above that is explorative debugging.)
The above linked comment explains what is fixed here:
When a single chunk is not enough, then the here-corrected method previously dumped the entire zeroed buffer into a vector. It then appended to the end of the full 1024 bytes on the next loop iteration.
This PR fixes this behavior by only dumping the bytes read into the concatenation vec.