mailexporter icon indicating copy to clipboard operation
mailexporter copied to clipboard

Bugfix: Make sure the whole mail is read

Open huangkevin404 opened this issue 1 year ago • 1 comments

If a mail is bigger than 8192 bytes (e.g. there are a lot of headers), the io.LimitReader will truncate the mail and we will lose part of the mail body. That will cause decomposePayload to fail.

This PR replaces io.LimitReader(f, 8192) with os.ReadFile(path). os.ReadFile has been introduced in go 1.16, we bump the dependencies.

This PR also fixes the YAML link in the README.

huangkevin404 avatar Aug 15 '24 20:08 huangkevin404

Hello @cherti

Can you check this ?

Regards

y-martin avatar Jun 14 '25 08:06 y-martin