link2xt
a592a470cf
fix: make backup reception cancellable by stopping ongoing process
...
This is already documented in JSON-RPC API,
but in fact ongoing process was not allocated.
2024-10-05 17:58:24 +00:00
link2xt
c4d07ab99e
fix: smooth progress bar for backup transfer
...
Before this change progress bar only started
when database is already transferred.
Database is usually the largest file
in the whole transfer, so the transfer appears
to be stuck for the sender.
With this change progress bar
starts for backup export
as soon as connection is received
and counts bytes transferred over the connection
using AsyncWrite wrapper.
Similarly for backup import,
AsyncRead wrapper counts the bytes
received and emits progress events.
2024-10-05 17:58:24 +00:00
link2xt
eddd5a0d25
fix: make it possible to cancel ongoing backup transfer
2024-10-05 17:58:24 +00:00
link2xt
0f43d5d8f4
fix: break out of accept() loop if there is an error transferring backup
2024-10-05 17:58:24 +00:00
link2xt
2e6d3aebae
docs(CONTRIBUTING.md): add more SQL advices
2024-10-05 13:09:49 +00:00
link2xt
650995dc41
feat(deltachat-repl): print send-backup QR code to the terminal
2024-10-04 22:53:30 +00:00
link2xt
283a1f1653
fix: skip unconfigured folders in background_fetch()
...
Otherwise `background_fetch()` fails on unconfigured Mvbox,
which is typical for chatmail accounts,
and does not get to checking QUOTA ever.
2024-10-04 21:54:42 +00:00
link2xt
d33909a054
feat: reuse existing connections in background_fetch() if I/O is started
2024-10-04 21:54:42 +00:00
link2xt
129be3aa27
feat(deltachat-repl): add fetch command to test background_fetch()
2024-10-04 15:52:59 +00:00
link2xt
8a88479d8f
fix(query_row_optional): do not treat rows with NULL as missing rows
...
Instead of treating NULL type error
as absence of the row,
handle NULL values with SQL.
Previously we sometimes
accidentally treated a single column
being NULL as the lack of the whole row.
2024-10-04 14:43:06 +00:00
Hocuri
5711f2fe3a
feat: More context for the "Cannot establish guaranteed..." info message ( #6022 )
...
The "Cannot establish guaranteed end-to-end encryption with ..." info
message can have lots of causes, and it happened twice to us now that it
took us some time to figure out which one it is.
So, include some more detail in the info message by simply adding the
non-translated error message in parantheses.
If we want to put in some more effort for nicer error messages, we
could:
- Introduce one new translated string "Cannot establish guaranteed
end-to-end encryption with …. Cause: %2$s" or similar (and remove the
old stock string)
- And/Or: Introduce new translated strings for all the possible errors
- And/Or: Maybe reword it in order to account better for the case that
the chat already is marked as g-e2ee, or use a different wording
(because if the chat is marked as g-e2ee then it might be nice to notify
the user that something may have gone wrong, but it's still working,
just that maybe the other side doesn't have us verified now)

2024-10-04 13:51:06 +02:00
link2xt
46922d4d9d
fix: do not attempt to reference info messages
...
Info messages are added
at the beginning of unpromoted group chats
("Others will only see this group after you sent a first message."),
may be created by WebXDC etc.
They are not sent outside
and have local Message-ID that
is not known to other recipients
so they should be skipped when constructing
In-Reply-To and References.
2024-10-03 21:49:58 +00:00
link2xt
75fe4e106a
api!: remove deprecated get_next_media() APIs
2024-10-03 21:04:03 +00:00
iequidoo
7c60ac863e
feat: MsgId::get_info(): Report original filename as well
2024-10-03 15:49:03 -03:00
link2xt
fa9bd7f144
chore(release): prepare for 1.146.0
v1.146.0
2024-10-03 17:21:42 +00:00
link2xt
22e5bf8571
fix(download_msg): do not fail if the message does not exist anymore
...
Without this fix IMAP loop may get stuck
trying to download non-existing message over and over
like this:
```
src/imap.rs:372: Logging into IMAP server with LOGIN.
src/imap.rs:388: Successfully logged into IMAP server
src/scheduler.rs:361: Failed to download message Msg#3467: Message Msg#3467 does not exist.
src/scheduler.rs:418: Failed fetch_idle: Failed to download messages: Message Msg#3467 does not exist
```
The whole download operation fails
due to attempt to set the state of non-existing message
to "failed". Now download of the message
will "succeed" if the message does not exist
and we don't try to set its state.
2024-10-03 17:13:53 +00:00
link2xt
c8ba516e83
refactor(decode_ideltachat): construct error message lazily
2024-10-03 15:39:27 +00:00
dependabot[bot]
4b021f509c
chore(cargo): bump syn from 2.0.77 to 2.0.79
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.77 to 2.0.79.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.77...2.0.79 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-02 17:06:38 -03:00
dependabot[bot]
bd1e06cfa7
Merge pull request #6003 from deltachat/dependabot/cargo/serde-1.0.210
2024-10-02 20:05:43 +00:00
dependabot[bot]
11e5a00366
chore(cargo): bump quick-xml from 0.36.1 to 0.36.2
...
Bumps [quick-xml](https://github.com/tafia/quick-xml ) from 0.36.1 to 0.36.2.
- [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.36.1...v0.36.2 )
---
updated-dependencies:
- dependency-name: quick-xml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-02 17:04:25 -03:00
dependabot[bot]
5fdecdcc16
chore(cargo): bump serde from 1.0.209 to 1.0.210
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.209 to 1.0.210.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.209...v1.0.210 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-02 02:32:20 +00:00
dependabot[bot]
77b899813c
Merge pull request #6000 from deltachat/dependabot/cargo/rustls-pki-types-1.9.0
2024-10-02 02:30:36 +00:00
dependabot[bot]
7843e0ed29
Merge pull request #6001 from deltachat/dependabot/cargo/hyper-util-0.1.9
2024-10-02 02:29:26 +00:00
dependabot[bot]
a036c86857
Merge pull request #6002 from deltachat/dependabot/cargo/pretty_assertions-1.4.1
2024-10-02 02:28:57 +00:00
dependabot[bot]
e535a6f859
Merge pull request #6012 from deltachat/dependabot/cargo/tempfile-3.13.0
2024-10-02 02:28:00 +00:00
dependabot[bot]
5384d5f75d
Merge pull request #6008 from deltachat/dependabot/cargo/libc-0.2.159
2024-10-02 02:27:38 +00:00
dependabot[bot]
c569696fff
Merge pull request #6007 from deltachat/dependabot/cargo/bytes-1.7.2
2024-10-02 02:27:00 +00:00
dependabot[bot]
a6732f5a5c
Merge pull request #6011 from deltachat/dependabot/cargo/thiserror-1.0.64
2024-10-02 02:26:25 +00:00
dependabot[bot]
9978f89b1b
Merge pull request #6005 from deltachat/dependabot/cargo/tokio-stream-0.1.16
2024-10-02 02:26:02 +00:00
dependabot[bot]
dbca15e5ef
Merge pull request #6010 from deltachat/dependabot/cargo/anyhow-1.0.89
2024-10-02 02:25:19 +00:00
dependabot[bot]
91649effa6
chore(cargo): bump tempfile from 3.10.1 to 3.13.0
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.10.1 to 3.13.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.10.1...v3.13.0 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-01 21:46:25 +00:00
dependabot[bot]
672ff58e3c
chore(cargo): bump thiserror from 1.0.63 to 1.0.64
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.63 to 1.0.64.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.63...1.0.64 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-01 21:46:12 +00:00
dependabot[bot]
a85b7ceb9c
chore(cargo): bump anyhow from 1.0.86 to 1.0.89
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.86 to 1.0.89.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.86...1.0.89 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-01 21:45:56 +00:00
dependabot[bot]
943ec19de4
chore(cargo): bump libc from 0.2.158 to 0.2.159
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.158 to 0.2.159.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.159/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.158...0.2.159 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-01 21:45:11 +00:00
dependabot[bot]
733da91c5c
chore(cargo): bump bytes from 1.7.1 to 1.7.2
...
Bumps [bytes](https://github.com/tokio-rs/bytes ) from 1.7.1 to 1.7.2.
- [Release notes](https://github.com/tokio-rs/bytes/releases )
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/bytes/compare/v1.7.1...v1.7.2 )
---
updated-dependencies:
- dependency-name: bytes
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-01 21:44:50 +00:00
dependabot[bot]
d899cc730a
chore(cargo): bump tokio-stream from 0.1.15 to 0.1.16
...
Bumps [tokio-stream](https://github.com/tokio-rs/tokio ) from 0.1.15 to 0.1.16.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-stream-0.1.15...tokio-stream-0.1.16 )
---
updated-dependencies:
- dependency-name: tokio-stream
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-01 21:43:59 +00:00
dependabot[bot]
5872b64265
chore(cargo): bump pretty_assertions from 1.4.0 to 1.4.1
...
Bumps [pretty_assertions](https://github.com/rust-pretty-assertions/rust-pretty-assertions ) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/rust-pretty-assertions/rust-pretty-assertions/releases )
- [Changelog](https://github.com/rust-pretty-assertions/rust-pretty-assertions/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-pretty-assertions/rust-pretty-assertions/compare/v1.4.0...v1.4.1 )
---
updated-dependencies:
- dependency-name: pretty_assertions
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-01 21:42:57 +00:00
dependabot[bot]
5d8035f741
chore(cargo): bump hyper-util from 0.1.7 to 0.1.9
...
Bumps [hyper-util](https://github.com/hyperium/hyper-util ) from 0.1.7 to 0.1.9.
- [Release notes](https://github.com/hyperium/hyper-util/releases )
- [Changelog](https://github.com/hyperium/hyper-util/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/hyper-util/compare/v0.1.7...v0.1.9 )
---
updated-dependencies:
- dependency-name: hyper-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-01 21:42:32 +00:00
dependabot[bot]
3d183336f5
chore(cargo): bump rustls-pki-types from 1.8.0 to 1.9.0
...
Bumps [rustls-pki-types](https://github.com/rustls/pki-types ) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/rustls/pki-types/releases )
- [Commits](https://github.com/rustls/pki-types/compare/v/1.8.0...v/1.9.0 )
---
updated-dependencies:
- dependency-name: rustls-pki-types
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-01 21:42:18 +00:00
WofWca
9c931c22cc
refactor: better log message for failed QR scan
...
It did not interpolate the `{prefix}`,
it just printed it in plain text.
2024-09-30 17:34:54 -03:00
link2xt
78a0d7501b
feat: use Rustls instead of native TLS for HTTPS requests
...
HTTPS requests are used to fetch
remote images in HTML emails,
to fetch autoconfig XML,
to POST requests for `DCACCOUNT:` QR codes
to make OAuth 2 API requests
and to connect to HTTPS proxies.
Rustls is more aggressive than OpenSSL
in deprecating cryptographic algorithms
so we cannot use it for IMAP and SMTP
to avoid breaking compatibility,
but for HTTPS requests listed
above this should not result in problems.
As HTTPS requests use only strict TLS checks,
there is no `strict_tls` argument
in `wrap_rustls` function.
Rustls is already used by iroh,
so this change does not introduce new dependencies.
2024-09-26 22:35:44 +00:00
link2xt
638da904e7
refactor: merge build_tls() function into wrap_tls()
2024-09-26 22:35:44 +00:00
iequidoo
fe0c9958a6
feat: Assign message to ad-hoc group with matching name and members ( #5385 )
...
This should fix ad-hoc groups splitting when messages are fetched out of order from different
folders or otherwise reordered, or some messages are missing so that the messages reference chain is
broken, or a member was removed from the thread and readded later, etc. Even if this way two
different threads are merged, it looks acceptable, having many threads with the same name/subject
and members isn't a common use case.
2024-09-26 17:09:11 -03:00
iequidoo
c469fcb435
refactor: Move group name calculation out of create_adhoc_group()
2024-09-26 17:09:11 -03:00
link2xt
02db6bcb8e
chore(release): prepare for 1.145.0
v1.145.0
2024-09-26 19:22:10 +00:00
link2xt
4b74c9d85f
fix: avoid changing delete_server_after default for existing configurations
2024-09-26 19:18:12 +00:00
link2xt
040ac0ffe3
refactor: do not wrap shadowsocks::ProxyClientStream
...
Updated `shadowsocks` implements `Debug` for the type,
so there is no need to wrap it.
2024-09-26 14:28:08 +00:00
link2xt
bfef129dbf
chore: sort dependency list
2024-09-22 18:00:55 +00:00
link2xt
486ea3a358
chore(release): prepare for 1.144.0
v1.144.0
2024-09-21 18:53:02 +00:00
link2xt
624ae86913
api!: make QR code type for proxy not specific to SOCKS5 ( #5980 )
2024-09-21 18:26:07 +00:00