link2xt
fcf73165ed
Inline format arguments
...
This feature has been stable since Rust 1.58.0.
2023-01-30 11:50:11 +03:00
link2xt
c911f1262a
Remove ContextError type
...
Using anyhow instead.
2023-01-29 00:36:07 +00:00
link2xt
ba3e4c5dff
Resultify tools::delete_file()
2023-01-29 00:35:15 +00:00
link2xt
ae564ef702
Add documentation
2023-01-28 21:30:43 +00:00
link2xt
7d3a591139
Make chunk_size variable immutable
2023-01-28 12:54:56 +00:00
link2xt
9b3f76ab5a
Add remove_subject_prefix() test
2023-01-28 11:22:30 +00:00
link2xt
dab8acc7d8
Replace Result<_, Error> with Result<_>
2023-01-28 11:14:30 +00:00
link2xt
4eda53d5a1
Move SessionStream from imap to net
2023-01-27 15:51:04 +00:00
iequidoo
39601be452
observe_securejoin_on_other_device(): Add handling of "v*-request-with-auth" messages ( #3836 )
...
This fixes the case with multiple devices on the joining side: if we observe such a message from
another device, we mark an inviter as verified and an accepted contact thus causing a subsequent
"vg-member-added" message -- in case of a verified group -- to create it properly.
2023-01-25 20:28:49 -03:00
iequidoo
76aaecb8f2
Add gossips to all Securejoin messages ( #3836 )
...
It worked before only because of the gossip-by-timeout logic in the branch above. And that is why
not always.
2023-01-25 20:28:49 -03:00
iequidoo
4b2faeedab
ChatId::create_multiuser_record(): Log blocked of created chat
2023-01-25 20:28:49 -03:00
link2xt
0087e3748c
Fix comment typo
2023-01-25 21:38:08 +00:00
link2xt
754ec33e4b
Correct IMAP_TIMEOUT comment
2023-01-25 21:38:08 +00:00
link2xt
9f8b74adf9
Add missing ephemeral.rs documentation
2023-01-25 19:11:38 +00:00
link2xt
8916841e83
Make maybe_do_aeap_transition() private
2023-01-25 16:25:40 +00:00
link2xt
e7f21f41ee
Do not pass Result as a function argument
2023-01-25 13:57:21 +00:00
Sebastian Klähn
ba860a2b61
Debug logging v2 ( #3958 )
...
debug logging
2023-01-25 13:22:15 +00:00
link2xt
c349a5c75b
Add missing chatlist documentation
2023-01-24 10:11:38 +00:00
link2xt
d522b7ef1e
mimefactory: do not check if the key exists before rendering Autocrypt-Gossip
...
`render_gossip_header()` returns `None` in this case anyway.
2023-01-24 10:06:52 +00:00
link2xt
800125c7a9
Add missing documentation to peerstate.rs
2023-01-24 10:06:52 +00:00
link2xt
5dfe7bea8e
Move rate limiter into its own crate
2023-01-23 14:53:50 +00:00
link2xt
a483df8b20
Add all resolver results with the same timestamp
2023-01-19 21:29:17 +00:00
link2xt
41ccc13394
Extend lookup_host_with_cache comment
2023-01-19 21:06:31 +00:00
link2xt
0978357c5f
Do not cache IP addresses which resolve into themselves
2023-01-19 20:43:53 +00:00
link2xt
7935085e74
Remove port number from DNS cache table
2023-01-19 20:26:11 +00:00
link2xt
7a47c9e38b
Adapt nicer_configuration_error to new error message
2023-01-19 18:29:18 +00:00
link2xt
20124bfca0
Add DNS lookup timeout
2023-01-19 17:33:59 +00:00
link2xt
eaeaa297c7
Maximize priority of the cached address on successful connection
2023-01-19 16:55:43 +00:00
link2xt
9adb9ab5f4
Return last connection error from connect_tcp
2023-01-19 16:50:50 +00:00
link2xt
7d508dcb52
Log DNS resolution errors instead of failing directly
2023-01-19 16:50:50 +00:00
link2xt
773754d74f
Introduce DNS cache table
...
Only used for IMAP connections currently.
2023-01-19 16:50:50 +00:00
link2xt
ed20a23297
Resolve IP addresses explicitly
2023-01-19 16:10:26 +00:00
link2xt
4615c84f31
Automatically group imports using nightly rustfmt
2023-01-19 13:13:25 +00:00
iequidoo
3c3710420b
Don't unpin chat on sending / receiving not fresh messages ( #3967 )
...
This bug was introduced by 3cf78749df - there are three visibility
states: Archived, Pinned and Normal - in the database, this "visibility" is named historically
"archived" ... the original code has an AND archived=1 therefore.
2023-01-18 16:57:38 -03:00
link2xt
de268b8225
Terminate recently seen loop if cannot receive interrupts
...
It seems .abort() does not work on the recently seen loop
in some cases, e.g. if it is busy looping in a separate thread.
In my case after account reconfiguration recently seen loop
kept running and issuing warnings about closed interrupt channel.
Exit from recently seen loop on errors to avoid using 100% CPU
in such cases.
2023-01-18 10:48:54 +00:00
link2xt
42c709e7b1
Fix SOCKS5 usage for IMAP
...
Connect to SOCKS5 server rather than target server
and send TCP connect command.
2023-01-18 10:13:17 +00:00
link2xt
cf0349acc8
configure: log SOCKS5 configuration for IMAP like we do for SMTP
2023-01-18 09:32:29 +00:00
link2xt
e43b36b61f
Peerstate.verifier fixes
...
Derive Debug, PartialEq and Eq for Peerstate,
so `verifier` is included in Debug output and compared.
Store verifier as empty string
instead of NULL in the database.
2023-01-17 14:22:22 +00:00
Simon Laux
ed24867309
fix verifier-by addr was empty string instead of None ( #3961 )
...
fix verifier-by addr was empty string intead of None
2023-01-17 13:06:57 +00:00
iequidoo
3cf78749df
Emit DC_EVENT_MSGS_CHANGED for DC_CHAT_ID_ARCHIVED_LINK when the number of archived chats with
...
unread messages increases (#3940 )
2023-01-16 16:05:47 -03:00
iequidoo
badbf766bb
Move event emitting for a new message to a separate function
2023-01-16 16:05:47 -03:00
bjoern
5b265dbc1c
remove comma from unit in message-details ( #3954 )
...
it shoud read "filename.ext, 123 bytes" and not "filename.ext, 123, bytes"
2023-01-13 18:25:20 +01:00
link2xt
0053e143e7
Do not emit ChatModified event when user avatar is updated
2023-01-12 20:52:47 +00:00
link2xt
1c44135b41
Remove deprecated attach_selfavatar config
...
According to the comment it was added in Dec 2019
with an intention to remove it "after some time".
2023-01-12 20:52:47 +00:00
iequidoo
5f883a4445
Prepare to remove "vc-contact-confirm-received", "vg-member-added-received" messages from Securejoin
...
protocol
2023-01-12 15:13:30 -03:00
iequidoo
8dc6ff268d
check_verified_properties(): Don't ignore fails of Peerstate::set_verified()
...
- Return Result from set_verified() so that it can't be missed.
- Pass Fingerprint to set_verified() by value to avoid cloning it inside. This optimises out an
extra clone() if we already have a value that can be moved at the caller side. However, this may
add an extra clone() if set_verified() fails, but let's not optimise the fail scenario.
2023-01-12 15:13:30 -03:00
iequidoo
13b2fe8d30
import_self_keys(): Log set_self_key() error as DC_EVENT_INFO
...
It isn't an error actually since we just skip the file.
2023-01-12 15:13:30 -03:00
iequidoo
d644988845
Securejoin: Fix adding and handling Autocrypt-Gossip headers ( #3836 )
...
- If bcc_self is set, gossip headers must be added despite of the number of group members.
- If another device observes Secure-Join, instead of looking for Secure-Join-Fingerprint in
"vg-member-added"/"vc-contact-confirm" messages it must use keys from Autocrypt-Gossip headers as
described in the Countermitm doc
(https://countermitm.readthedocs.io/en/latest/new.html#joining-a-verified-group-secure-join ).
2023-01-12 15:13:30 -03:00
iequidoo
27c6cfc958
Log messages in info!() if DCC_MIME_DEBUG is set
...
Using println!() leads to reordered output on terminal. Moreover, println!() prints to stdout which
is not for logging.
2023-01-12 15:13:30 -03:00
Simon Laux
0b07dafe77
add verified-by api to jsonrpc ( #3946 )
...
also refactor it so that it is not a static method anymore
(would have resulted in two load-Contact-from-db-calls in jsonrpc)
2023-01-12 16:13:27 +00:00