194942e895
chore: Happy New Year (2026)
2026-01-08 13:00:18 +01:00
20183bf984
fix(BRIDGE-374): Tweaked MBOX header sanitization logic, ensures that RFC822 headers are present.
2025-07-10 12:08:47 +02:00
082849dc6c
chore: year bump
2025-01-02 14:03:49 +01:00
80d556343e
fix(BRIDGE-256): fix reversed order of headers with multiple values.
2024-11-26 17:08:43 +00:00
cb8d1a2389
fix(BRIDGE-231): fix reversed header order in messages.
2024-10-23 11:25:49 +00:00
79c63f5785
fix(BRIDGE-106): Fixed import of multipart-related messages; added relevant tests
2024-09-23 10:57:26 +00:00
fc64dbec59
chore: golangci-lint update.
2024-07-11 16:29:59 +02:00
d2fbbc3e25
fix(GODT-3163): filter MBOX format delimiter.
2024-03-07 12:30:33 +00:00
754d80d097
feat(GODT-3193): assume text content type on attachments.
2024-03-01 15:25:37 +00:00
63e272e270
feat(GODT-3193): preserve attachment encoding.
2024-03-01 15:25:37 +00:00
773a230d14
fix(GODT-3176): assume inline if content id is present.
2024-01-18 16:45:08 +00:00
b8ae5be58c
fix(GODT-3188): Happy new year.
2024-01-02 15:06:05 +01:00
9efaf9184c
fix(GODT-3151): Only modify HTML Meta content if UTF-8 charset override is needed.
2023-12-04 11:45:47 +01:00
38606888fe
fix(GODT-2851): Add empty text part if no text part when importing multipart.
2023-11-30 11:03:31 +01:00
eaba6b6363
fix(GODT-2797): encode attached key name and use same pubkey name as web-app.
2023-11-23 15:24:08 +01:00
bf89d548d3
fix(GODT-2576): Correctly handle Forwarded messages from Thunderbird
...
Thunderbird uses `In-Reply-To` with `X-Forwarded-Message-Id` to signal
to the SMTP server that it is forwarding a message.
2023-11-16 16:17:54 +01:00
83bbdbd63e
feat(GODT-3113): Only force UTF-8 charset for HTML part when needed.
2023-11-10 12:50:15 +00:00
0303ba38e8
feat(GODT-3113): Do not render HTML for attachment.
2023-11-10 08:36:46 +00:00
1c385d5c9b
fix(GODT-3087): Exclude attachment content-disposition part when determining...
2023-11-03 08:55:01 +00:00
96773f3225
fix(GODT-2887): Inline images with Apple Mail
...
Fix sending of inline images with Apple Mail when not using rich text.
2023-11-02 14:18:28 +00:00
5c7e4e04f9
fix(GODT-2966): Allow permissive parsing of MediaType parameters for import.
2023-10-09 15:14:51 +00:00
e422b28bc3
fix(GODT-2212): Preserver Header order in message building
...
https://github.com/ProtonMail/go-proton-api/pull/100
2023-09-25 15:05:21 +02:00
03c3404044
chore(GODT-2916): Split Decryption from Message Building
...
This helps the export tool to deal with problems arising from message
assembly after everything has been successfully encrypted.
The original behavior is still available under `DecryptAndBuildRFC822`.
2023-09-18 14:40:07 +02:00
cb8174dbfd
test: oss-fuzz support for fuzzing
...
Signed-off-by: Arjun Singh <ajsinghyadav00@gmail.com >
2023-07-18 09:13:11 +02:00
b51d85e768
chore: upgraded golangci-lint v1.52.2 and fixed all issues.
2023-05-05 07:57:22 +02:00
543c35041d
fix(GODT-2464): Filter attachment name from content-type parameter to not send it twice to the API.
2023-05-02 07:13:21 +00:00
59a944a06c
feat(GODT-2496): Bump gopenPGP to 2.7.1-proton.
2023-04-26 08:47:47 +00:00
54b209f9e1
fix(GODT-2337): filter reply-to on draft.
2023-04-17 10:25:10 +02:00
4f49c87bc6
chore: Replace go-rfc5322 with gluon's rfc5322 parser
...
Bumps Gluon version in order to get the fixes from
https://github.com/ProtonMail/gluon/pull/327 .
2023-03-17 16:23:36 +01:00
02ca6428b5
fix(GODT-2407): Replace invalid email addresses with emtpy for new Drafts
2023-03-17 13:25:42 +01:00
8b33d56b59
fix(GODT-2479): Ensure messages always have a text body part
...
Proton Backend requires that all messages have at least one text/plain
or text/html body part, even if it is empty.
2023-03-14 14:29:42 +01:00
30c1c14505
fix(GODT-2480): Do not override X-Original-Date with invalid Date
2023-03-13 12:37:27 +01:00
b57ca1506d
fix(GODT-2473): Fix handling of complex mime types
...
When rebuilding attachments, ensure that more complicated mime types are
properly re-constructed.
If we fail to parse the mime type, set the value as is.
2023-03-13 10:10:36 +01:00
cf8284a489
fix(GODT-2380): Only set external ID in header if non-empty
2023-02-20 11:16:50 +01:00
34cd611a8b
chore: Disable funlen linter
2023-02-06 14:29:13 +00:00
d82b71de89
fix(GODT-1804): Only promote content headers if non-empty
...
When attaching public key, we take the root mime part, create a new root,
and put the old root alongside an additional public key mime part.
But when moving the root, we would copy all content headers, even empty ones.
So we’d be left with Content-Disposition: "" which would fail to parse.
2023-02-06 13:18:08 +00:00
ce03bfbf0f
GODT-1804: Preserve MIME parameters when uploading attachments
2023-01-30 20:12:41 +01:00
e464e11ab9
GODT-2224: Refactor bridge sync to use less memory
...
Updates go-proton-api and Gluon to includes memory reduction changes and
modify the sync process to take into account how much memory is used
during the sync stage.
The sync process now has an extra stage which first download the message
metada to ensure that we only download up to `syncMaxDownloadRequesMem`
messages or 250 messages total. This allows for scaling the download
request automatically to accommodate many small or few very large
messages.
The IDs are then sent to a download go-routine which downloads the
message and its attachments. The result is then forwarded to another
go-routine which builds the actual message. This stage tries to ensure
that we don't use more than `syncMaxMessageBuildingMem` to build these
messages.
Finally the result is sent to a last go-routine which applies the
changes to Gluon and waits for them to be completed.
The new process is currently limited to 2GB. Dynamic scaling will be
implemented in a follow up. For systems with less than 2GB of memory we
limit the values to a set of values that is known to work.
2023-01-30 15:05:43 +01:00
60b1c4d8f7
GODT-2177: Use correct attachment disposition when content ID is set
2023-01-24 16:31:14 +01:00
407c9fe1a6
GODT-2181: Empty but not nil address from API
2023-01-10 14:54:29 +00:00
272e3895fd
GODT-1817: Restore old date message feature test + fix
...
This patch also fixes the message builder to not override other headers
that already exist to avoid overriding sanitized header entries.
2023-01-04 13:37:28 +01:00
6d0a128111
Other: Update copyright year
2023-01-02 11:09:11 +01:00
842c9c8ecd
GODT-1556: Add unit test for in-reply-to header without references.
2022-12-01 08:27:10 +01:00
f355cb4d38
GODT-1804: Add parsing ics attachment test.
2022-11-30 12:32:05 +01:00
e601245f01
Other(chore): Bump major version to v3
2022-11-23 16:08:27 +01:00
ad1fb47b0d
Other: Switch from liteapi to go-proton-api
2022-11-23 15:17:56 +01:00
555453bc1a
GODT-2142: Also permit split by comma in References header
2022-11-22 19:08:03 +01:00
8160fe5448
Other: Update liteapi to v0.43.0
2022-11-21 13:16:50 +01:00
a797c01943
Other: Fix create draft action
...
If an InReplyTo entry in the header is present, the create draft action
should be reply, otherwise we use forward.
2022-11-16 13:48:30 +01:00
8e34b51c77
GODT-1940: Fix message encryption
...
Update liteapi to v0.36.0 to include message encryption fix and fix
compile errors related to update.
2022-11-16 13:48:30 +01:00