link2xt
51ee564246
ci: consistently capitalize job names
2023-02-11 16:06:32 +00:00
link2xt
7f313c803e
ci: remove unnecessary Rust installation step
...
windows-latest image already contains Rust 1.67.0.
2023-02-11 15:25:20 +00:00
link2xt
0d7c33b1a9
Add missing "vendored" feature on deltachat-repl
2023-02-11 14:22:14 +00:00
link2xt
14f3abb51e
ci: Windows repl.exe action fixup
2023-02-11 14:11:30 +00:00
link2xt
46143ac54f
Move deltachat-repl into a separate crate
2023-02-11 13:54:49 +00:00
link2xt
d1702e3081
python: display the diff on black failures
2023-02-11 09:13:42 +00:00
link2xt
fa198c3b5e
Use SOCKS5 configuration for HTTP requests
2023-02-10 23:20:11 +00:00
link2xt
151b34ea79
python: handle NULL value returned from dc_get_msg
...
Returning None in this case and checked with mypy that callers can handle it.
2023-02-10 23:17:42 +00:00
link2xt
c9b2ad4ffa
Prefer TLS over STARTTLS during autoconfiguration
2023-02-10 11:28:11 +00:00
link2xt
386b5bb848
Update flate2 dependency
...
Get rid of minize_oxide@0.5.3
2023-02-09 10:26:00 +00:00
link2xt
d8bd189175
Bump openssl-src from 111.24.0+1.1.1s to 111.25.0+1.1.1t
2023-02-09 10:18:47 +00:00
link2xt
817760a6ef
python: upgrade from .format() to f-strings
...
They are supported since Python 3.5.
2023-02-08 15:44:34 +00:00
link2xt
315e944b69
python: cut text in Message representation to 100 characters
2023-02-08 12:49:18 +00:00
link2xt
cd293e6f49
Update async-smtp to 0.8
2023-02-03 11:36:58 +00:00
link2xt
f2f5bfd17c
Fix python file code style
...
New version of `black` complains otherwise.
2023-02-01 16:10:08 +00:00
link2xt
59f5cbe6f1
Merge from stable branch
2023-02-01 15:36:26 +00:00
link2xt
72e004c12b
Release 1.107.1
2023-02-01 14:52:06 +00:00
link2xt
52a4b0c2b8
Revert to async-smtp 0.5 to disable SMTP pipelining
2023-02-01 14:43:22 +00:00
link2xt
74abb82de2
Log server security (TLS/STARTTLS/plain) type
2023-02-01 00:01:47 +00:00
link2xt
e318f5c697
Simplify unset_empty()
2023-01-31 23:58:38 +00:00
link2xt
b62c61329a
Update to base64 0.21
2023-01-31 19:24:20 +00:00
link2xt
f342dc8196
Update for new toml API
2023-01-31 13:12:54 +00:00
link2xt
87c333ff7a
Always optimize dependencies
...
They are only built once, but the time of
`cargo nextest run` is reduced by around 40% as a result.
2023-01-31 12:20:58 +01:00
link2xt
e171a69240
Do not specify _send message type
2023-01-31 09:35:41 +00:00
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
link2xt
2365862615
Allow clippy::uninlined_format_args in examples
2023-01-27 09:57:00 +00:00
link2xt
e30749e94c
Allow clippy::uninlined_format_args in deltachat-ffi
2023-01-27 09:32:41 +00:00
link2xt
c20dea64cf
Allow clippy::uninlined_format_args in deltachat-rpc-server
2023-01-27 02:24:48 +00:00
link2xt
faef8b679e
Allow clippy::uninlined_format_args in deltachat-jsonrpc
...
It started failing since release of Rust 1.67
2023-01-27 01:53:12 +00:00
link2xt
9b3e21225c
ci: run clippy without actions-rs/clippy-check
...
actions-rs/clippy-check runs clippy with --message-format=json option
and converts the output into annotations.
This makes clippy output unreadable, it is JSON
and you cannot quickly find the line number to fix.
Annotations in the code review view look nice,
but on large PRs they are less usable because you need
to scroll the whole page to find all the annotations.
2023-01-26 18:13:13 +00:00
link2xt
7640e3255f
ci: remove unnecessary rustfmt check steps
...
`cargo fmt` is already pre-installed in ubuntu-latest
2023-01-26 12:38:38 +00: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
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
37f20c6889
Prepare 1.107.0
2023-01-23 16:20:07 +00:00
link2xt
5dfe7bea8e
Move rate limiter into its own crate
2023-01-23 14:53:50 +00:00
link2xt
fac7b064b4
Refine Python CI
...
Add lint environment to `deltachat-rpc-client/`
and set line length to 120, same as in `python/`.
Switch from flake8 to ruff.
Fix ruff warnings.
2023-01-20 16:53:21 +00:00
link2xt
ef6f252842
Introduce DNS cache for IMAP connections
...
DNS cache is used as a fallback if TCP connection
to all IP addresses returned by DNS failed.
If strict TLS checks are disabled,
DNS cache results are stored, but not used.
GitHub Pull Request: <https://github.com/deltachat/deltachat-core-rust/pull/3970 >
2023-01-20 10:21:38 +00:00
link2xt
b8da19e49f
Upgrade async-smtp to v0.6
2023-01-19 22:10:40 +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
c4c4c977a6
Changelog
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
link2xt
677136f4ab
Use SMTP pipelining
2023-01-19 01:30:32 +00: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
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
link2xt
3b9a48ff5f
python: remove "data1=0" from INFO/WARNING/ERROR events display
2023-01-12 18:12:05 +00:00
link2xt
a5354ded3f
ci: disable fail-fast
...
This setting is true by default and causes
Windows build to cancel when Linux fails
due to flaky test and vice versa.
Cancelled test then has to be restarted
from scratch even though it was not going
to fail.
2023-01-12 17:51:58 +00:00
link2xt
f0e900b885
Cleanup constants module
2023-01-12 13:19:16 +00:00
link2xt
f460043e87
Add missing documentation to webxdc module
2023-01-12 13:18:30 +00:00
link2xt
8c6b804d73
Merge "Add ContactAddress type" ( #3947 )
2023-01-11 23:19:48 +00:00
link2xt
790512d52a
Reduce code indentation
2023-01-11 23:19:07 +00:00
link2xt
89c8d26968
Add ContactAddress type
2023-01-11 23:07:47 +00:00
link2xt
6642083f52
Clippy fix
2023-01-10 21:17:30 +00:00
link2xt
554090b03e
Prepare 1.106.0
2023-01-10 20:57:14 +00:00
link2xt
1cde09c312
Add missing documentation to the message module
2023-01-10 20:52:22 +00:00
link2xt
e215b4d919
Return Option from Contact::add_or_lookup()
...
This allows to distinguish exceptions,
such as database errors, from invalid user input.
For example, if the From: field of the message
does not look like an email address, the mail
should be ignored. But if there is a database
failure while writing a new contact for the address,
this error should be bubbled up.
2023-01-10 20:43:20 +00:00
link2xt
5ae6c25394
Remove aheader module dependency on mailparse
2023-01-10 14:53:48 +00:00
link2xt
01fe88e337
Save modified .toml if absolute paths were replaced with relative
...
Previously this required adding or removing an account.
2023-01-10 01:37:54 +00:00
link2xt
2b8923931e
Add more context to IMAP errors
2023-01-10 00:00:23 +00:00
link2xt
0e849609f4
ci: python: do not try to upload source distributions
...
They are not useful because you still need a statically
linked rust library besides the C FFI module, and
they are not built by tox 4 without changes.
2023-01-09 16:20:56 +00:00
link2xt
120a7a3090
Prepare 1.105.0 release
2023-01-08 16:18:08 +00:00
link2xt
872cd10b8b
Update tokio to 1.24.1
2023-01-08 09:58:53 +00:00
link2xt
58ba107d01
Resultify Message::get_filebytes()
2023-01-07 01:00:30 +00:00
link2xt
4f8593f46a
Update base64 API usage
2023-01-06 21:58:47 +00:00
link2xt
9eb7a84d83
Use TestContextManager for test_format_flowed_round_trip test
2023-01-06 16:51:00 +00:00
link2xt
8e65e794bc
format-flowed: make quotes round-trip
2023-01-06 16:51:00 +00:00
link2xt
ecc7758788
Add documentation to contact module
2023-01-06 11:53:58 +00:00
link2xt
6e40fd8000
message: derive Ord for MessageState
2023-01-06 11:44:33 +00:00
link2xt
f4c674fa98
python: set reasonable timeouts for account requests
...
`requests` library does not have a timeout at all by default.
2023-01-06 11:43:55 +00:00
link2xt
3986bb6c4e
Fix provider update script
2023-01-06 00:44:15 +00:00
link2xt
10349b7be4
Update provider database
2023-01-06 00:39:40 +00:00
link2xt
d8f5e81880
jsonrpc: increase account request timeout to 60 seconds
2023-01-05 23:32:43 +00:00
link2xt
ea81d08c01
ci: use default Rust toolchain for JSON-RPC tests
...
Default preinstalled toolchain is currently at 1.65.0,
there is no need to overwrite it with 1.66.0 for these tests.
2023-01-05 23:15:09 +00:00
link2xt
f69acaa13d
Add more logging and improve errors around folder selection
2023-01-05 21:22:34 +00:00