38 Commits

Author SHA1 Message Date
ElectroNafta
c9726b8d6e fix(IMEX-66): prevent potential double encryption on import 2025-04-23 10:52:40 +02:00
ElectroNafta
92de6e7c85 feat(BRIDGE-348): add utility and tests functions for BYOE 2025-04-10 07:08:01 +02:00
Leander Beernaert
65479b90c4 fix(GODT-3117): Improve Contact Info Retrieval
Rather than only fetching the total in on request and discarding all the
data, re-use the first page of data and then collect more of them if the
data set exceeds the page size.

This patch also includes various fixes to the GPA server to mimic
proton server behavior.
2023-11-20 16:01:19 +01:00
Leander Beernaert
8a47c8d92f feat(GODT-2567): Simulate Answered/Forwarded behavior in GPA server 2023-11-16 15:42:14 +01:00
Leander Beernaert
d2fbf42bb0 feat(GODT-2576): Forward flag support
Add routes to mark messages as forwarded.
2023-11-14 16:32:53 +01:00
Leander Beernaert
5f248dfc82 fix(GODT-3106): Fix broken import route
The original fixes to parse the HV error message unfortunately caused
those corrected error routes to start failing when tested against live
proton servers.

Since HV error parsing was improved in a subsequent patch, we no longer
needs the original fix and can therefore revert the changes that are
causing issues.
2023-11-06 10:35:33 +01:00
Romain LE JEUNE
6955dba06e test(GODT-3036): Also sort attachment for sent message + add unitary test. 2023-10-24 09:15:15 +02:00
Leander Beernaert
f03defb04b feat(GODT-2908): Capture HV Request on HV Error
The APIError that was composed in certain replies needs to be kept
separate so that the custom `UnmarshalJSON` does not override the
composed struct's implementation. This can lead to fields not being
deserialized properly.
2023-10-16 11:10:46 +02:00
Romain LE JEUNE
134cc290d6 feat(GODT-2835): Update BugReport route to support AsyncAttachments option. 2023-10-03 11:06:31 +02:00
Jakub
4da2872883 feat(GODT-2871): add user settings to event. 2023-08-21 14:04:27 +02:00
Leander Beernaert
deff039fd9 feat(GODT-2829): Add MessageGroupCount route
Allows the user to check how many messages there are per label.
2023-08-17 07:32:21 +02:00
Leander Beernaert
ca6c1de96b feat(GODT-2829): Extend Metadata with some missing features
* Allow sorting in descending order
* Add `EndID` parameter to match in query.
2023-08-17 07:32:21 +02:00
Leander Beernaert
c761773c51 fix(2822): Refactor GetMessageIDs
Add `GetAllMessageIDs` which is the old behavior and add a new function
`GetMessageIDs` which only retrieves the given messages up to that
limit.
2023-07-27 10:21:46 +02:00
Leander Beernaert
a77a437ec0 test(GODT-2578): Message Dedup for Server
Implement basic message deduplication for GPA server. This functionality
is opt-in. It's not enabled by default in order to not break any
existing tests are written against the previous behavior.
2023-07-04 08:02:29 +02:00
Leander Beernaert
faf4f87bf9 fix(GODT-2626): Do not merge events
API has advised that doing this can lead to invalid state. We now return
an array of events so that those are processed in order.
2023-05-16 09:05:48 +02:00
Romain LE JEUNE
630cfa2c11 feat(GODT-2554): Implement user settings routes. 2023-04-12 08:23:07 +02:00
Romain LE JEUNE
d667df591b feat(GODT-2549): Implement metrics routes. 2023-04-11 09:47:33 +02:00
Jakub
3cc8423ece refactor(GODT-2500): Reorganise async methods. 2023-04-03 09:50:50 +02:00
Jakub
1d5a7231e2 feat(GODT-2500): Add panic handlers everywhere. 2023-04-03 09:50:50 +02:00
Jakub
655987fd58 feat(GODT-2455): upper limit for number of merged events. 2023-03-13 09:08:47 +01:00
James Houlahan
8f4721a3ec test: Make server status test more robust
The test HTTP client is not configured with any timeouts.
If the read fails, depending on when it happens, it can hang indefinitely.
This was unpredictable with the way the test was written before;
the message fetching was highly parallel. By replacing the message fetch
with a simple GetUser call which fails predictably, the test is made
more robust.
2023-02-17 17:45:17 +01:00
Xavier Michelon
4056d48a12 feat(GODT-1264): added tests. 2023-02-14 14:03:36 +01:00
James Houlahan
1cd447386a feat(GODT-2283): Limit max import size to 30MB 2023-02-09 16:00:29 +01:00
James Houlahan
ea654fa155 feat: Add basic mail settings support in fake server 2023-02-03 12:22:58 +01:00
James Houlahan
e2fc4deffe fix: Removing from inbox shouldn't remove from trash 2023-02-02 07:18:50 +01:00
Leander Beernaert
2357abb517 fix: Correct paging in test server 2023-01-30 10:39:44 +01:00
Leander Beernaert
8fa71fac20 refactor(GODT-2224): Allow user to control how to download attachments
This reverts commit 35702fd064.
2023-01-30 10:39:44 +01:00
Jakub
35702fd064 Revert "refactor(GODT-2224): Allow user to control how to download attachments"
This reverts commit 5e70c325c3.
2023-01-25 09:28:44 +01:00
Leander Beernaert
5e70c325c3 refactor(GODT-2224): Allow user to control how to download attachments
Expose mechanism for a user of the library to control how the
attachments should be downloaded.

`AttachmentAllocator` allows the user to specify where the byte
buffers for the attachments should originate from.

`Scheduler` allows the user to control how the attachments should be
downloaded. `SequentialScheduler` and `ParallelScheduler` are provided
as reference implementations.
2023-01-24 16:18:38 +01:00
Jakub
f5b1ba0886 fix(GODT-2181): add filter options and change test server update draft behaviour 2023-01-19 17:00:45 +01:00
James Houlahan
93ad9245e8 feat: Add status hooks to server for overriding response status codes 2023-01-18 10:11:11 +01:00
James Houlahan
4d84ed761e feat: Switch from /core/v4/auth to /auth/v4 2022-12-14 08:22:45 +01:00
James Houlahan
fd06b106da refactor: NetCtl, transport, dialer, rate limiting 2022-12-13 13:12:36 +01:00
James Houlahan
779a2ee672 feat(GODT-2181): Implement GetDomains 2022-12-13 13:12:36 +01:00
James Houlahan
a847d9b892 test(GODT-2181): Handle quark commands in test server 2022-12-13 13:12:36 +01:00
James Houlahan
25457864bc feat: Perform draft encryption during upload 2022-12-02 13:33:05 +01:00
James Houlahan
eb1de709c6 fix(GODT-2170): Create draft should set sysLabel 2022-12-02 13:33:05 +01:00
James Houlahan
2323ea7360 feat: Initial open source commit 2022-11-23 12:03:04 +01:00