Commit Graph

380 Commits

Author SHA1 Message Date
James Houlahan 3bd39b3ea5 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 15:57:24 +00:00
James Houlahan 4c5ba04822 fix(GODT-1804): Preserve MIME parameters when uploading attachments 2023-02-01 10:41:55 +01:00
James Houlahan 60b1c4d8f7 GODT-2177: Use correct attachment disposition when content ID is set 2023-01-24 16:31:14 +01:00
Jakub 407c9fe1a6 GODT-2181: Empty but not nil address from API 2023-01-10 14:54:29 +00:00
Leander Beernaert 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
Leander Beernaert 6d0a128111 Other: Update copyright year 2023-01-02 11:09:11 +01:00
Jakub c39108043b Merge branch 'release/perth_narrows' into devel (3.0.7) 2022-12-13 19:37:12 +01:00
Jakub 2b25fe1fa4 GODT-2173: fix: Migrate Bridge password from v2.X. 2022-12-13 14:25:39 +00:00
Romain LE JEUNE 842c9c8ecd
GODT-1556: Add unit test for in-reply-to header without references. 2022-12-01 08:27:10 +01:00
Xavier Michelon f3cc19b09c
GODT-2150: fixed initial implementation that filtered --no-window in gui instead of bridge. 2022-11-30 19:05:43 +01:00
Romain LE JEUNE f355cb4d38
GODT-1804: Add parsing ics attachment test. 2022-11-30 12:32:05 +01:00
James Houlahan e601245f01 Other(chore): Bump major version to v3 2022-11-23 16:08:27 +01:00
James Houlahan ad1fb47b0d Other: Switch from liteapi to go-proton-api 2022-11-23 15:17:56 +01:00
James Houlahan 555453bc1a GODT-2142: Also permit split by comma in References header 2022-11-22 19:08:03 +01:00
Jakub cb81175fa0 Other: missing import 2022-11-22 17:18:30 +01:00
James Houlahan 7cb9d62f0c Other: Don't forward stdin/stdout/stderr 2022-11-22 14:20:30 +00:00
James Houlahan f954f89747 GODT-2111: Fix restart on macOS 2022-11-22 14:20:30 +00:00
Romain LE JEUNE 82788e39f0 GODT-2111: Use cmd.Start for restart command for windows as well. 2022-11-22 14:20:30 +00:00
Leander Beernaert 8160fe5448 Other: Update liteapi to v0.43.0 2022-11-21 13:16:50 +01:00
Romain LE JEUNE 81facfd05f
GODT-2111: Give the child process its own group ID 2022-11-21 11:32:26 +01:00
Romain LE JEUNE 054d9b3f09
GODT-2111: Properly reset crash counter + remove additional Quit call. 2022-11-21 11:32:25 +01:00
James Houlahan 49b3c18903 GODT-2039: bridge monitors bridge-gui via its PID (port from v2.4) 2022-11-16 15:21:33 +01:00
Jakub ae87d7b236 GODT-1913: pass reporter to gluon, limit restarts, add crash handlers. 2022-11-16 13:48:31 +01:00
James Houlahan 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
Xavier Michelon 82987a1835 Other: added missing build tags for restarter. 2022-11-16 13:48:30 +01:00
James Houlahan 04d9fa8f9e Other: Fix apple mail config 2022-11-16 13:48:30 +01:00
James Houlahan 7b7a2068ea Other: Clear keychain entries on factory reset 2022-11-16 13:48:30 +01:00
Leander Beernaert 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
James Houlahan c4343e0124 Other: Bump liteapi and clean up tests a bit 2022-11-16 13:48:30 +01:00
James Houlahan 04b6571cb8 Other: Handle Seen/Flagged IMAP flags when APPENDing a message
When an IMAP client appends a message to a mailbox, it can specify
which flags it wants the appended message to have. We need to handle
these in a proton-specific way; not-seen messages need to be imported
with the Unread bool set to true, and flagged messages need to
additionally be imported with the Starred label.
2022-11-16 13:48:30 +01:00
Leander Beernaert 7c62312220 Other: Fix all linter errors 2022-11-16 12:26:09 +01:00
Leander Beernaert e10cd2a3ed GODT-1901: Allow to set IMAP SSL from UI 2022-11-16 12:26:09 +01:00
James Houlahan cec44be7c3 Other: SetMainExecutable, ForceLauncher 2022-11-16 12:26:09 +01:00
James Houlahan da1ee99c53 Other: Fix send with plus address 2022-11-16 12:26:09 +01:00
James Houlahan ba9368426c GODT-1650: Send extras 2022-11-16 12:26:09 +01:00
Romain LE JEUNE 51633e000b GODT-1609: apply change from MR 2022-11-16 12:26:09 +01:00
Romain LE JEUNE b536b8707e GODT-1609: use byte array for password 2022-11-16 12:26:09 +01:00
James Houlahan 39433fe707 GODT-1779: Remove go-imap 2022-11-16 12:26:08 +01:00
James Houlahan e55e893c94 Other: Bump new badssl public key pin
badssl got a new TLS cert last week. We need to bump the pinned key.

This was generated by exporting the TLS cert at rsa4096.badssl.com with
the Chromium browser and running the following program on it:

```
	b, err := os.ReadFile("badssl.pem")
	if err != nil {
		panic(err)
	}

	block, rest := pem.Decode(b)
	if len(rest) > 0 {
		panic("unexpected rest")
	}

	cert, err := x509.ParseCertificate(block.Bytes)
	if err != nil {
		panic(err)
	}

	hash := sha256.New()

	if _, err := hash.Write(cert.RawSubjectPublicKeyInfo); err != nil {
		panic(err)
	}

	fmt.Println(base64.StdEncoding.EncodeToString(hash.Sum(nil)))
```
2022-11-02 10:43:49 +01:00
Romain Le Jeune 78f9f49a8a GODT-1751: switch from protonmail.com to proton.me domain 2022-10-27 13:13:05 +00:00
Jakub 73f8811a4b GODT-1645: Changing timeouts to not send too many login attempts. 2022-10-26 06:31:40 +00:00
Leander Beernaert 9d800324af Other: Update golangci-lint to v1.50.0 2022-10-17 11:14:22 +02:00
Jakub 61c787b1c7 GODT-1833: Updage go.mod/sum. 2022-09-01 13:44:01 +02:00
James Houlahan 310c6a1ccf Other(refactor): Remove unencrypted recipient confirmation 2022-09-01 13:26:11 +02:00
Xavier Michelon 0a1f349901 Other: require go 1.18 and update to golangci-lint to latest revision + fixes. 2022-09-01 13:23:07 +02:00
Jakub b3f8866ef7 GODT-1737: Improve logging during import 2022-08-29 16:10:28 +02:00
Jakub 9bb16dec48 GODT-1754: Add logs for unilateral updates and SEARCH. 2022-08-29 16:09:54 +02:00
Jakub 5b941013de Other: Update SSL certificate fingerprint for test 2022-08-26 16:43:24 +02:00
Romain Le Jeune 654e816e6b GODT-1686: Add Label/Folder filtering to pmapi 2022-08-16 16:05:42 +02:00
Jakub 7cad7bcddb GODT-1659: Convert charset only for `text/*` MIME types. 2022-08-16 16:05:42 +02:00