Commit Graph

5401 Commits

Author SHA1 Message Date
Hocuri
f32e248d90 Finally fix test_parse_receive_headers_integration() 2022-10-26 15:09:00 +02:00
Hocuri
8b64a39542 Check that the character right before dkim= is a space or a tab 2022-10-26 15:03:21 +02:00
Hocuri
6e528d6349 Merge remote-tracking branch 'origin/master' into hoc/migitate-from-forgery 2022-10-24 18:02:26 +02:00
Hocuri
e39e853feb Small fixes 2022-10-23 14:55:11 +02:00
link2xt
aa14015919 sql: every Result is anyhow::Result 2022-10-23 11:25:27 +00:00
Simon Laux
7551c84c4f jsonrpc: move qr/uri type to dedicated file (#3687)
#skip-changelog
2022-10-23 08:41:32 +00:00
link2xt
434e53e922 Use UPSERT to insert into msgs table
This way no temporary rows are created and it is easier to maintain
because UPDATE statement is right below the INSERT statement,
unlike `merge_messages` function which is easy to forget about.
2022-10-22 21:34:56 +00:00
Hocuri
8aaea4817d For setting dkim_works, use the message's time 2022-10-22 22:16:13 +02:00
Hocuri
c5e93bf057 Only assume that DKIM works for a month after the last valid email 2022-10-22 22:02:35 +02:00
Hocuri
2b388d0eb7 Add test_handle_authres_fails() 2022-10-22 21:58:04 +02:00
link2xt
b5d238f7f4 Keep reactions when downloading partially downloaded message 2022-10-22 15:02:05 +00:00
link2xt
e5c9fea52d Implement reactions
Co-Authored-By: bjoern <r10s@b44t.com>
Co-Authored-By: Simon Laux <mobile.info@simonlaux.de>
2022-10-22 09:59:43 +00:00
Simon Laux
cd15a0e966 jsonrpc: typescript client: export constants under C enum, similar to how its exported from deltachat-node (#3681)
* jsonrpc: typescript client: export constants
under `C` enum,
similar to how its exported from `deltachat-node`

* add pr number to changelog

* fix tests

* fix changelog entry position
2022-10-21 17:51:38 +00:00
Hocuri
2d68005b43 More small fixes 2022-10-18 15:35:48 +02:00
dependabot[bot]
895c723d4e Merge pull request #3626 from deltachat/dependabot/cargo/trust-dns-resolver-0.22.0 2022-10-18 09:41:10 +00:00
dependabot[bot]
c7176d6bc8 Merge pull request #3628 from deltachat/dependabot/cargo/percent-encoding-2.2.0 2022-10-18 09:29:54 +00:00
link2xt
b2939d3df3 imap: simplify UPSERT queries on imap_sync
Use `excluded` and remove noop `WHERE` query.

See <https://www.sqlite.org/lang_UPSERT.html> for official SQLite documentation.
2022-10-16 16:34:13 +00:00
link2xt
54a157a629 Prepare 1.97.0 release (#3668) py-1.97.0 1.97.0 2022-10-16 15:08:55 +02:00
Hocuri
f358bdbff1 Some fixes from link2xt's review 2022-10-16 14:57:54 +02:00
Simon Laux
427adefb42 jsonrpc: add miscGetStickerFolder and miscGetStickers (#3672)
* jsonrpc: add `miscGetStickerFolder` and `miscGetStickers`

* add pr number to changelog

* refactor

* fix clippy
2022-10-16 14:53:06 +02:00
link2xt
f0dede26a3 cargo fmt 2022-10-16 11:30:01 +00:00
Simon Laux
36f85a6a5a fix nodejs jsonrpc smoke tests (#3674)
the solution was to ignore events
2022-10-15 23:03:54 +02:00
Simon Laux
137567554d set timeout for node ci tests to 10min (#3675)
* set timeout for node ci tests to 10min

set timeout for node ci tests to 10min for the test step,
macOS takes 12min for the whole workflow with cached core build,
so 10min just for the test step should be plenty.

* don't forget to set the limit on windows, too
2022-10-15 22:58:48 +02:00
Simon Laux
72941e51fc exit node test when it failed (#3673) 2022-10-15 22:23:58 +02:00
Simon Laux
836c016f97 jsonrpc: add getMessageHtml (#3671)
* add getMessageHtml function

* add changelog entry
2022-10-15 20:47:31 +02:00
Simon Laux
e8ea9b7127 jsonrpc/events: commit type I forgot to commit (#3670)
commit line I forgot to commit
2022-10-15 20:35:30 +02:00
Hocuri
ba323609fa Show the authentication results in the message info 2022-10-15 17:18:43 +02:00
link2xt
f80c78536f fix unused result error 2022-10-15 13:11:53 +00:00
Hocuri
e45747ea99 small fixes 2022-10-15 10:20:05 +02:00
Hocuri
097830120b More small improvements
"alice@mailo.com/alice@mail.ru" was a really uninteresting file that
needed a special-case in the test since for some reason, there just was
no good Authentication-Results header
2022-10-15 10:12:59 +02:00
Hocuri
63ddc927a2 Improve tests 2022-10-15 10:12:59 +02:00
Hocuri
2bf88108a6 fix ci 2022-10-15 10:12:59 +02:00
Hocuri
74fb567470 clippy 2022-10-15 10:12:59 +02:00
Hocuri
4d641cbc78 changelog 2022-10-15 10:12:56 +02:00
Hocuri
255d24ac69 comments 2022-10-15 10:12:19 +02:00
Hocuri
4c80eb51dc Improve/fix realworld test 2022-10-15 10:12:19 +02:00
Hocuri
f0efff2c99 Clear the dkim_works data when authservid candidates change 2022-10-15 10:12:19 +02:00
Hocuri
feee7aee3d Add all the test emails 2022-10-15 10:12:19 +02:00
Hocuri
c17eafa793 Look at all the authservid candidate's headers 2022-10-15 10:12:19 +02:00
Hocuri
4d88cfc78d Don't use empty authserv id candidates if intersection is empty 2022-10-15 10:12:18 +02:00
Hocuri
5d8cb8084f Improve tests 2022-10-15 10:12:18 +02:00
Hocuri
50de29a4ba Fix sql error, improve test_realworld_authentication_results 2022-10-15 10:12:18 +02:00
Hocuri
c624e3b2e0 Recognize comments 2022-10-15 10:12:18 +02:00
Hocuri
2967b5030f Nicer error handling, comments 2022-10-15 10:12:18 +02:00
Hocuri
415b58a059 Cleanup, renames, comments 2022-10-15 10:12:17 +02:00
Hocuri
65040fe6f2 Fix some stuff 2022-10-15 10:12:17 +02:00
Hocuri
47500bb3ea Fix some things, move to new file src/authentication_results_handling.rs 2022-10-15 10:12:17 +02:00
Hocuri
0d221cced9 Yet another solution: Keep track of candidates for our authserv-id 2022-10-15 10:12:17 +02:00
Hocuri
906f95ee84 Next idea: any_header_says_pass for each authserv_id 2022-10-15 10:12:17 +02:00
Hocuri
6e7136db4a Start looking at Authentication-Results 2022-10-15 10:12:16 +02:00