Sebastian Klähn
12dbf41116
Merge branch 'fix3782' of https://github.com/deltachat/deltachat-core-rust into fix3782
2022-12-27 17:23:15 +01:00
Sebastian Klähn
f7bf31dbea
recteate memberlist on groupjoin
2022-12-27 17:23:04 +01:00
link2xt
0215046c76
Fix test_synchronize_member_list_on_group_rejoin
2022-12-27 16:07:29 +00:00
Sebastian Klähn
b5fc9aedc5
Update src/mimeparser.rs
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2022-12-27 14:58:06 +01:00
Sebastian Klähn
0250b6f421
Update src/chat.rs
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2022-12-27 14:58:06 +01:00
Septias
7415eadb78
fix suggested changes
2022-12-27 14:58:06 +01:00
Sebastian Klähn
8d077b964c
Update src/chat.rs
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2022-12-27 14:57:25 +01:00
Sebastian Klähn
99923fd816
Update src/chat.rs
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2022-12-27 14:57:25 +01:00
Sebastian Klähn
f3614536d9
debug
2022-12-27 14:57:25 +01:00
Sebastian Klähn
a9a485d19e
recreate test
2022-12-27 14:57:25 +01:00
Sebastian Klähn
32d54c8b93
clippy fix
2022-12-27 14:57:09 +01:00
Sebastian Klähn
f9a5cf9b11
use correct method & handle message deletions correctly
2022-12-27 14:56:24 +01:00
Sebastian Klähn
71ada54703
documentation
2022-12-27 14:56:24 +01:00
Sebastian Klähn
81695d6b80
don't always build new contact list
2022-12-27 14:56:24 +01:00
Sebastian Klähn
c562d17925
Add verifier information ( #3839 )
...
* add verifier information
* cleanup
Co-authored-by: bjoern <r10s@b44t.com >
* finish name change
* simple improvements & new ffi
* fixs
Co-authored-by: bjoern <r10s@b44t.com >
Co-authored-by: septias <xxsebastian.kleahnxx@gmail.com >
2022-12-27 10:41:15 +00:00
adbenitez
cf1d6919bf
allow to pass string as update for objects that don't support default json.dump() conversion
2022-12-26 18:34:55 -05:00
adbenitez
4b15f960e1
make get_contact_by_id non-async
2022-12-26 18:26:14 -05:00
link2xt
f92b8dcec0
deltachat_rpc_client: add webxdc API
2022-12-26 22:34:19 +00:00
link2xt
9734552da5
deltachat_rpc_client: make get_{chat,message}_by_id non-async
2022-12-26 22:24:45 +00:00
link2xt
89b7ce4c4e
Move format_flowed to a separate crate
...
This makes it possible to fuzz test the functions
without exposing the module interface in the deltachat core
interface.
Also ensure that format_flowed will not grow a dependency
on deltachat core types.
2022-12-26 19:21:44 +00:00
iequidoo
6dc790f447
Don't parse the message again after detached signatures validation
...
If we move the detached signatures validation code out of try_decrypt(), we don't need to convert an
already parsed signed message part to Vec and then parse it back. Also this simplifies the
try_decrypt() semantics and return type. It can't make a good coffee anyway.
2022-12-26 18:48:38 +04:00
link2xt
7d62df6f1a
Bump MSRV to 1.63.0
...
Bumping MSRV from 1.61.0 to 1.63.0, because `arbitrary` crate requires
it and fuzzing crates depend on it, at least by default. We still use
1.64.0 as our default rust toolchain.
2022-12-26 13:10:10 +00:00
link2xt
6f7bb8a777
Do not trim leading spaces from message lines
2022-12-26 12:20:30 +00:00
link2xt
942f64f04d
Remove authors field from Cargo metadata
...
See Rust RFC 3052 [1]. This field is no longer required,
so there is no need to have a filler value here anymore.
[1] <https://rust-lang.github.io/rfcs/3052-optional-authors-field.html >
2022-12-26 12:18:15 +00:00
link2xt
8de7014eeb
Fix nightly clippy warnings
2022-12-26 00:26:17 +00:00
link2xt
d73c4a92a7
Silence clippy warning about type complexity
2022-12-26 00:25:56 +00:00
link2xt
e328de5293
Make try_decrypt non-async
...
Private keyring is now loaded outside of try_decrypt
2022-12-24 10:57:51 +00:00
link2xt
93054ef87c
Use new_alice() instead of new() in mimeparser tests
...
This way contexts have a private key and attempts to
load it does not result in an error.
2022-12-24 10:40:11 +00:00
link2xt
2cd1da5222
Pass private keyring around as a reference
2022-12-23 18:43:24 +00:00
link2xt
ed24eac29c
Make decrypt_part synchronous
2022-12-23 18:17:31 +00:00
link2xt
3de53a313f
Make pk_decrypt synchronous
2022-12-23 18:15:38 +00:00
link2xt
6d2b2ac5f9
python: pass DC_RS_DEV and DC_RS_TARGET into auditwheels env
...
Otherwise python binding wheels fail to build with tox 4.0.
2022-12-23 17:28:14 +00:00
link2xt
76cf170708
ci: update swatinem/rust-cache action
2022-12-23 12:02:03 +00:00
link2xt
06ead557dc
Do not add an error if the message is encrypted but not signed
...
Services like Lacre [1] on Disroot and Inbound Encryption on Posteo [2]
offer to encrypt all incoming messages with the provided OpenPGP
public key. Resulting messages are encrypted, but not end-to-end encrypted
and not signed by the sender, therefore should not have a padlock displayed.
However, such encrypted and unsigned message is also not an indication
of an error on ongoing attack, so we shoud not report this as a problem
to the user.
[1] https://lacre.io/
[2] https://posteo.de/en/help/how-do-i-activate-inbound-encryption-with-my-public-pgp-key
2022-12-23 10:49:41 +00:00
link2xt
7c343411b8
Merge "Validate signatures in try_decrypt() even if the message isn't encrypted" ( #3859 )
2022-12-23 01:19:09 +00:00
link2xt
736950ab3f
Do not return Result from validate_detached_signature
...
It never returns errors.
2022-12-23 01:18:03 +00:00
Asiel Díaz Benítez
bad04f9a0b
Merge pull request #3835 from deltachat/adb/rpc-client-better-hooks
...
improve deltachat-rpc-client lib (part #2 )
2022-12-21 14:05:10 -05:00
adbenitez
adf754ad32
add more high-level event filters
2022-12-21 13:26:59 -05:00
adbenitez
2ebd3f54e6
add Client.run_until()
2022-12-21 13:26:59 -05:00
adbenitez
be63e18ebf
improve hook filters
2022-12-21 13:26:58 -05:00
iequidoo
ba82ce2798
Validate signatures in try_decrypt() even if the message isn't encrypted ( #3844 )
...
This way we don't need a separate code path for signatures validation for unencrypted
messages. Also, now we degrade encryption only if there are no valid signatures, so the code for
upgrading encryption back isn't needed.
2022-12-21 13:24:10 -03:00
link2xt
1f7ad78f40
Move receive_imf tests into a separate file
2022-12-21 11:06:52 +00:00
bjoern
3130fdc4f0
release 1.104.0 ( #3857 )
py-1.104.0
1.104.0
2022-12-20 17:57:16 +01:00
link2xt
5922fb38da
Store relative accounts path in accounts.toml
...
This makes it possible to move accounts dir, especially useful for bots.
2022-12-20 12:26:20 +00:00
link2xt
d1e3135331
Merge "Go back to Rust 1.64.0" ( #3856 )
2022-12-20 09:22:05 +00:00
Hocuri
d722b6ba19
Only go to 1.64 for now
2022-12-19 17:15:17 +01:00
iequidoo
a3fe105256
Prefer encryption for the peer if the message is encrypted or signed with the known key ( #3844 )
...
Note that if the message is encrypted, we don't check whether it's signed with an attached key
currently, otherwise a massive refactoring of the code is needed because for encrypted messages a
signature is checked and discarded first now.
2022-12-19 19:33:39 +04:00
Hocuri
04f68fddd9
Go back to Rust 1.61
...
as 1.65 makes the iOS build fail.
For Android, it would actually be enough to go back to 1.64, but let's
try what's needed for iOS.
2022-12-19 12:41:19 +01:00
iequidoo
03c273e30f
Don't send GroupNameChanged message if the group name doesn't change in terms of
...
improve_single_line_input() (#3650 )
2022-12-18 21:27:18 +04:00
link2xt
90c478e58d
Do not send ephemeral timer updates to unpromoted chats
2022-12-15 22:47:06 +00:00