link2xt
a67503ae4a
chore: remove backtrace dependency
...
It is not used directly by `deltachat` crate.
2024-08-02 23:06:30 +00:00
link2xt
c54f39bea0
chore: remove sha2 dependency
...
It is not used since ce6ec64069
2024-08-02 23:06:30 +00:00
dependabot[bot]
ff3138fa43
Merge pull request #5830 from deltachat/dependabot/cargo/env_logger-0.11.5
2024-08-02 21:39:16 +00:00
dependabot[bot]
09d46942ca
Merge pull request #5832 from deltachat/dependabot/cargo/tokio-1.39.2
2024-08-02 19:51:34 +00:00
dependabot[bot]
84e365d263
Merge pull request #5833 from deltachat/dependabot/cargo/uuid-1.10.0
2024-08-02 19:50:28 +00:00
dependabot[bot]
b31bcf5561
Merge pull request #5836 from deltachat/dependabot/cargo/quick-xml-0.36.1
2024-08-02 19:43:48 +00:00
link2xt
da50d682e1
chore(release): prepare for 1.142.2
v1.142.2
2024-08-02 17:05:43 +00:00
link2xt
094d310f5c
feat: sort DNS results by successful connection timestamp ( #5818 )
2024-08-02 16:53:16 +00:00
dependabot[bot]
642eaf92d7
chore(cargo): bump serde from 1.0.203 to 1.0.204
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.203 to 1.0.204.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.203...v1.0.204 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-02 13:39:06 -03:00
link2xt
76c032a2c4
fix: reset configured_provider on reconfiguration
2024-08-02 16:31:07 +00:00
dependabot[bot]
a74b04d175
chore(cargo): bump quoted_printable from 0.5.0 to 0.5.1
...
Bumps [quoted_printable](https://github.com/staktrace/quoted-printable ) from 0.5.0 to 0.5.1.
- [Commits](https://github.com/staktrace/quoted-printable/compare/v0.5.0...v0.5.1 )
---
updated-dependencies:
- dependency-name: quoted_printable
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-02 13:14:21 -03:00
dependabot[bot]
c9448feafc
chore(cargo): bump env_logger from 0.11.3 to 0.11.5
...
Bumps [env_logger](https://github.com/rust-cli/env_logger ) from 0.11.3 to 0.11.5.
- [Release notes](https://github.com/rust-cli/env_logger/releases )
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.11.3...v0.11.5 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-02 15:51:02 +00:00
dependabot[bot]
8314f3e30c
chore(cargo): bump syn from 2.0.68 to 2.0.72
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.68 to 2.0.72.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.68...2.0.72 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-02 12:45:02 -03:00
dependabot[bot]
935da2db49
Merge pull request #5838 from deltachat/dependabot/cargo/thiserror-1.0.63
2024-08-02 15:41:01 +00:00
dependabot[bot]
b5e95fa1ef
chore(cargo): bump human-panic from 2.0.0 to 2.0.1
...
Bumps [human-panic](https://github.com/rust-cli/human-panic ) from 2.0.0 to 2.0.1.
- [Changelog](https://github.com/rust-cli/human-panic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/human-panic/compare/v2.0.0...v2.0.1 )
---
updated-dependencies:
- dependency-name: human-panic
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-02 12:40:06 -03:00
dependabot[bot]
b60d8356cb
chore(cargo): bump serde_json from 1.0.120 to 1.0.122
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.120 to 1.0.122.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.120...v1.0.122 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-02 12:39:19 -03:00
link2xt
ee7a7a2f9d
fix: fix compilation on iOS
2024-08-02 15:22:19 +00:00
dependabot[bot]
b5eb824346
Merge pull request #5835 from deltachat/dependabot/cargo/toml-0.8.15
2024-08-02 15:20:33 +00:00
dependabot[bot]
41867b89a0
chore(cargo): bump thiserror from 1.0.61 to 1.0.63
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.61 to 1.0.63.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.61...1.0.63 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-01 21:58:46 +00:00
dependabot[bot]
7e7aa7aba0
chore(cargo): bump quick-xml from 0.35.0 to 0.36.1
...
Bumps [quick-xml](https://github.com/tafia/quick-xml ) from 0.35.0 to 0.36.1.
- [Release notes](https://github.com/tafia/quick-xml/releases )
- [Changelog](https://github.com/tafia/quick-xml/blob/master/Changelog.md )
- [Commits](https://github.com/tafia/quick-xml/compare/v0.35.0...v0.36.1 )
---
updated-dependencies:
- dependency-name: quick-xml
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-01 21:57:59 +00:00
dependabot[bot]
fd1dab7c7b
chore(cargo): bump toml from 0.8.14 to 0.8.15
...
Bumps [toml](https://github.com/toml-rs/toml ) from 0.8.14 to 0.8.15.
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.14...toml-v0.8.15 )
---
updated-dependencies:
- dependency-name: toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-01 21:57:38 +00:00
dependabot[bot]
a69f9f01b3
chore(cargo): bump uuid from 1.9.1 to 1.10.0
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.9.1 to 1.10.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.9.1...1.10.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-01 21:56:35 +00:00
dependabot[bot]
c808ed1368
chore(cargo): bump tokio from 1.38.0 to 1.39.2
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.38.0 to 1.39.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.38.0...tokio-1.39.2 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-01 21:56:05 +00:00
link2xt
21be85071a
feat: try only the full email address if username is unspecified
...
Previously Delta Chat tried to use local part of email address as well.
This configuration is very uncommon,
but trying it doubled the time of configuration try
in the worst case, e.g. when the password is typed in incorrectly.
2024-08-01 17:08:23 +00:00
iequidoo
a30c6ae1f7
refactor: Don't update message state to OutMdnRcvd anymore
...
This state can be computed from the `msgs_mdns` table without significant overhead as we have an
index by msg_id there.
2024-07-31 21:04:24 -03:00
link2xt
0324884124
build: use workspace dependencies to make cargo-deny 0.15.1 happy
2024-07-31 16:45:12 +00:00
link2xt
ad225b12c2
chore(cargo): update bytemuck from 0.14.3 to 0.16.3
...
Version 0.14.3 is yanked.
2024-07-31 05:20:09 +00:00
link2xt
0dd5e5ab7d
fix: do not reset is_chatmail config on failed reconfiguration
...
Instead, always set it at the end of successful configuration.
2024-07-31 02:36:36 +00:00
link2xt
490f41cda8
fix: await the tasks after aborting them
2024-07-30 20:31:22 +00:00
link2xt
c163438eaf
chore(release): prepare for 1.142.1
v1.142.1
2024-07-30 15:40:06 +00:00
link2xt
ef925b0948
refactor: move DNS resolution into IMAP and SMTP connect code
2024-07-30 02:12:05 +00:00
link2xt
0fceb270ca
fix: explicitly close the database on account removal
2024-07-30 00:22:03 +00:00
link2xt
4ec5d12213
refactor(imap): unify IMAP connection setup in Client::connect()
...
All functions like Client::connect_secure() are now private
and every new connection is established in Client::connect().
2024-07-29 15:16:40 +00:00
link2xt
d9c0e47581
refactor(smtp): unify SMTP connection setup between TLS and STARTTLS
...
Single function smtp::connect::connect_stream
returns a stream of a single `dyn` type
that can be a TLS, STARTTLS or plaintext
connection established over SOCKS5 or directly.
2024-07-29 15:16:40 +00:00
link2xt
8ec4a8ad46
refactor: replace {IMAP,SMTP,HTTP}_TIMEOUT with a single constant
...
This change also increases HTTP timeout from 30 seconds to 60 seconds.
2024-07-29 15:16:40 +00:00
link2xt
40d355209b
refactor: pass single ALPN around instead of ALPN list
...
This way there is always exactly one ALPN ("imap" or "smtp").
2024-07-29 15:16:40 +00:00
iequidoo
354702fcab
fix: imex::import_backup: Ignore errors from delete_and_reset_all_device_msgs()
...
They are not a good reason to fail the whole import. Anyway `delete_and_reset_all_device_msgs()`
isn't retried after restarting the program.
2024-07-28 12:51:25 -03:00
iequidoo
bfc7ae1eff
fix: Sql::import: Detach backup db if any step of the import fails
...
Otherwise we continue to work with an incompletely imported db... but only until restart -- after
that all changes to the db are lost.
2024-07-28 12:51:25 -03:00
iequidoo
cccefe15b3
fix: import_backup_stream: Fix progress stucking at 0
...
Fix the progress calculation, before `total_size.checked_div(file_size)` was giving 0 if `total_size
< file_size`.
2024-07-28 12:51:25 -03:00
iequidoo
bb4236ffed
fix: imex::import_backup: Unpack all blobs before importing a db ( #4307 )
...
This way we can't get an account with missing blobs if there's not enough disk space.
Also delete already unpacked files if all files weren't unpacked successfully. Still, there are some
minor problems remaining:
- If a db wasn't imported successfully, unpacked blobs aren't deleted because we don't know at which
step the import failed and whether the db will reference the blobs after restart.
- If `delete_and_reset_all_device_msgs()` fails, the whole `import_backup()` fails also, but after a
restart delete_and_reset_all_device_msgs() isn't retried. Probably errors from it should be
ignored at all.
2024-07-28 12:51:25 -03:00
link2xt
14d57e780b
feat: report first error instead of the last on connection failure
...
First result has higher priority
as it is the one prioritized by DNS
or used recently, while the last
tried server may never work at all.
2024-07-27 23:00:05 +00:00
link2xt
76a43c8de6
feat: try next DNS resolution result if TLS setup fails
...
Previously Delta Chat tried all DNS resolution results
in sequence until TCP connection is established successfully,
then tried to establish TLS on top of the TCP connection.
If establishing TLS fails, the whole
connection establishment procedure failed
without trying next DNS resolution results.
In particular, in a scenario
where DNS returns incorrect result
pointing e.g. to a server
that listens on the TCP port
but does not have correpsponding TLS certificate,
Delta Chat now will fall back to the cached result
and connect successfully.
2024-07-27 23:00:05 +00:00
link2xt
b807435c42
refactor: add net/dns submodule
2024-07-27 23:00:05 +00:00
link2xt
3b040fd4b5
ci: update Rust to 1.80.0
2024-07-26 23:57:21 +00:00
link2xt
b9b9ed197e
chore(cargo): update iroh from 0.20.0 to 0.21.0
2024-07-26 23:07:59 +00:00
bjoern
03523ab589
feat: do not reveal sender's language in read receipts ( #5802 )
...
while adapting strings for the recent change about read receipts,
https://github.com/deltachat/deltachat-core-rust/pull/5712 , it turns
out in discussions eg. at
https://github.com/deltachat/deltachat-android/issues/3179 that
untranslated english for the read receipts seem to be sufficient or even
better:
- do not reveal the sender's language
- unexpected languages are confusing - even if you chat in english, you
may get Chinese read receipts
- many clients do not show the text anyways, iirc, eg. Outlook display
the read receipts in context, and Delta Chat of course as well
- afaik, we're leaving comparable `multipart/report` untranslated as
well (sync, but also webxdc updates are practically english only)
- less code, fewer translations needed :)
2024-07-26 21:07:30 +02:00
link2xt
c4efe59a12
chore(cargo): update time from 0.3.34 to 0.3.36
2024-07-26 16:21:20 +00:00
link2xt
d46f53a004
fix(smtp): use DNS cache for implicit TLS connections
...
load_cache argument to connect_tcp() should only be false
if strict TLS checks are disabled or TLS is not used.
2024-07-25 01:25:49 +00:00
link2xt
5fb5fd4318
chore(release): prepare for 1.142.0
v1.142.0
2024-07-23 05:02:53 +00:00
link2xt
a3cb58484f
feat: use [...] for protected subject
...
This subject is going to be standardized in
<https://datatracker.ietf.org/doc/draft-ietf-lamps-header-protection/ >
and is already used in K-9 Mail:
<https://github.com/thunderbird/thunderbird-android/pull/8014 >
2024-07-23 04:50:40 +00:00