mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-20 17:16:46 +00:00
When calculating the hash for the body to match against sent email to avoid duplicate addition to the sent folder, do not decode the actual contents of the body. It is possible that certain attachments are not formed correctly but can still accepted by the backend. Trimming spaces and \r characters is enough to hash the message and match it later on. This also speeds the process up as we no longer have to perform encoding conversions.
6.8 KiB
6.8 KiB