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
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
79c2523585
chore: Add recipient to SMTP error message
2023-01-31 17:35:51 +01:00
ce03bfbf0f
GODT-1804: Preserve MIME parameters when uploading attachments
2023-01-30 20:12:41 +01:00
1bfabf9a83
GODT-2296: Log error rather than fail if cannot get parent ID
2023-01-25 09:09:14 +00:00
e8a778feca
GODT-2266: Pause event stream while sending
2023-01-25 09:47:27 +01:00
60b1c4d8f7
GODT-2177: Use correct attachment disposition when content ID is set
2023-01-24 16:31:14 +01:00
f1404cd3ee
GODT-1556: If no references, use the in-reply-to header as ParentID.
2023-01-24 15:36:23 +01:00
59a29da054
Other(debug): Dump raw SMTP input to user's home dir
2023-01-19 13:30:28 +01:00
6d0a128111
Other: Update copyright year
2023-01-02 11:09:11 +01:00
f551732a17
Other: Add SMTP debug dump to disk
2022-12-14 10:27:12 +00:00
04881b9b78
GODT-2178: Bump go-proton-api to fix drafts
2022-12-05 15:14:30 +01:00
b902f1490f
GODT-2114: sanitize attachment disposition.
2022-11-28 18:20:48 +00: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
eb2423b0ed
Other: Move sending logic to smtp.go
2022-11-18 17:05:20 +01:00
65cc1d5ccf
GODT-2110: Force attachment disposition if content ID is missing
...
We now set disposition during attachment upload. However, this presents
a problem: some clients use inline disposition but don't provide a
content ID. Our API doesn't support this. To mitigate the issue, we just
fall back to attachment disposition in this case.
2022-11-18 12:52:43 +01:00
75b788b793
GODT-1993: Use more efficient filtering for message deletion
2022-11-16 13:48:30 +01:00
99745ac067
Other: Switch to faster message IDs route
...
The new API route lets us query exactly which message IDs a user has,
allowing us to begin syncing much faster than before.
2022-11-16 13:48:30 +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
fd80848fcd
Other(refactor): Use normal value + mutex for user.updateCh
2022-11-16 13:48:30 +01:00
0bc99dbd4f
Other(refactor): Use normal value + mutex for user.apiAddrs
2022-11-16 13:48:30 +01:00
35fa43f47c
Other: Properly handle SMTP to list in send recorder
...
Checking the BCC header is unreliable; it is usually omitted from messages.
Instead, we can use the SMTP "to" list for deduplication.
2022-11-16 13:48:30 +01:00
83c7396f2d
Other: Separate getMessageHash from sendRecorder
2022-11-16 13:48:30 +01:00
c9808d07df
GODT-1777: Message de-duplication in SMTP
2022-11-16 13:48:30 +01:00
828385b049
Other: Fix user sync leaks/race conditions
...
This fixes various race conditions and leaks related to the user's sync
and API event stream. It was possible for a sync/stream to begin after a
user was already closed; this change prevents that by managing the
goroutines related to sync/stream within cancellable groups.
2022-11-16 13:48:30 +01:00
0f125196a6
Other: Bump go-smtp version to fix race condition
...
There was a race condition internal to the go-smtp library.
In order to fix it, a version bump was necessary.
However, this significantly changed the library interface.
2022-11-16 13:48:30 +01:00
81f4ef609b
Other: Mitigate double-unlock of user keyring
...
We need to unlock the user keyring anyway to unlock the address keyring,
so we should just return it instead of re-unlocking the user keyring
when sending a message.
2022-11-16 13:48:30 +01:00
7c62312220
Other: Fix all linter errors
2022-11-16 12:26:09 +01:00
e10cd2a3ed
GODT-1901: Allow to set IMAP SSL from UI
2022-11-16 12:26:09 +01:00
fd63611b41
Other: Safer user types
2022-11-16 12:26:09 +01:00
da1ee99c53
Other: Fix send with plus address
2022-11-16 12:26:09 +01:00
14a578f319
Other: Linter fixes after bumping linter version
2022-11-16 12:26:09 +01:00
9d69a2e565
GODT-1657: Stable sync (still needs more tests)
2022-11-16 12:26:09 +01:00
edd326efd9
GODT-1650: Mixed case and failure sending tests
2022-11-16 12:26:09 +01:00
ba9368426c
GODT-1650: Send extras
2022-11-16 12:26:09 +01:00
e9672e6bba
GODT-1815: Combined/Split mode
2022-11-16 12:26:08 +01:00
39433fe707
GODT-1779: Remove go-imap
2022-11-16 12:26:08 +01:00