iequidoo
7a697d4316
try to reproduce ( #4707 )
2023-10-31 02:12:33 -03:00
iequidoo
dfdedf073d
try to reproduce ( #4707 )
2023-10-31 02:11:30 -03:00
link2xt
6aae0276da
test: use instant accounts instead of mailadm
2023-10-30 00:15:22 +00:00
link2xt
1d80659bc3
chore: update portable-atomic dependency
...
Version 1.5.0 is yanked.
2023-10-29 23:36:26 +00:00
link2xt
94d5e86d4f
refactor: rename repl_msg_by_error into replace_msg_by_error
...
This function has been named like this since it was a C function.
`repl` is unclear because it may stand for `reply`
as well as `replace`.
2023-10-29 17:09:59 +00:00
link2xt
aecf7729d8
chore(release): prepare for 1.127.2
2023-10-29 16:29:04 +00:00
Simon Laux
f130d537b7
api(jsonrpc): add get_message_info_object
2023-10-29 16:26:01 +00:00
Ajay Gonepuri
f30f862e7e
docs: fix typos
2023-10-29 13:13:44 +00:00
link2xt
81e1164358
test: compile deltachat-rpc-server in debug mode for tests
...
This reduces compilation times.
2023-10-29 01:09:35 +00:00
Simon Laux
542bd4cbb8
api!: jsonrpc misc_set_draft now requires setting the viewtype
2023-10-28 08:42:14 +00:00
link2xt
771b57778e
test: increase pytest timeout to 10 minutes
...
deltachat-rpc-client tests often timeouts on CI,
this hopefully fixes the problem unless the tests actually deadlock.
2023-10-28 00:54:36 +00:00
link2xt
9be56a5e56
test(deltachat-rpc-client): test securejoin
2023-10-27 20:07:32 +00:00
link2xt
da744958c2
chore: move pytest option from pyproject.toml to tox.ini and set log level
...
The option from pyproject.toml was not picked up
because tox.ini has higher precedence.
2023-10-27 20:00:20 +00:00
link2xt
f6bda1e480
docs: add missing 1.127.1 link to changelog
2023-10-27 19:34:49 +00:00
link2xt
d2e24534c7
chore(release): prepare for 1.127.1
2023-10-27 19:27:40 +00:00
link2xt
df6f974eca
Add scripts for running deltachat-rpc-client tests
2023-10-27 17:24:39 +00:00
link2xt
2f5c6b5e16
test(jsonrpc): test get_provider_info
2023-10-27 03:07:47 +00:00
link2xt
97176b13f1
api(jsonrpc): add id to ProviderInfo
2023-10-27 03:07:18 +00:00
link2xt
18bb7e58be
refactor: move api/mod.rs to api.rs
2023-10-27 02:33:17 +00:00
Simon Laux
c2bab44bdd
api: jsonrpc add .is_protection_broken to FullChat and BasicChat
2023-10-27 00:03:12 +00:00
link2xt
53bb8a9831
chore: update to async-channel 2
2023-10-26 23:41:34 +00:00
link2xt
1b66120e7d
chore(release): prepare for 1.127.0
2023-10-26 15:54:48 +00:00
link2xt
1478f321ae
fix: restore try_many_times workaround
...
Even though r2d2 connection pool is removed,
deleting accounts still fails in Windows CI.
This reverts commit e88f21c010 .
`try_many_times` documentation is modified to explain
why the workaround is still needed.
2023-10-26 15:15:44 +00:00
link2xt
5fb92c78ad
ci: test deltachat-rpc-client on Windows
2023-10-26 15:15:44 +00:00
link2xt
a0a792b821
chore: update sct, serde and serde_derive
2023-10-26 14:06:44 +00:00
link2xt
3feb0e648d
build: switch to iroh 0.4.x fork with updated dependencies
2023-10-26 14:04:32 +00:00
link2xt
fa5358a5bf
chore: update tracing
2023-10-26 13:17:54 +00:00
Sebastian Klähn
7399a398a7
api: add mailto parse api ( #4829 )
...
close #4620
This PR introduces a new core API to parse mailto links into a uniform
data format. This could be used to unify the different implementations
on the current platforms.
To complete this PR we have to decide for which APIs we want to expose
this (now) internal API (c, python, json-rpc, etc.), and if we want such
an API at all as it doesn't have a corresponding UI-PR and is not
_really_ needed.
2023-10-26 11:46:51 +02:00
link2xt
25a78aceb9
ci: increase MSRV to 1.70.0
...
This is required by `anstyle v1.0.4` dependency.
2023-10-26 02:16:10 +00:00
link2xt
66708454dd
chore: update dependencies
2023-10-26 02:13:15 +00:00
link2xt
bb5e3d11d8
chore: update futures-lite dependency
2023-10-26 01:11:11 +00:00
link2xt
ff54db2e5f
test: adapt the test for updated chrono
2023-10-26 00:47:32 +00:00
link2xt
434d8fc35f
chore: update quick-xml
2023-10-25 22:42:14 +00:00
link2xt
12eb813bc3
ci(concourse): replace master branch with main
2023-10-25 22:02:35 +00:00
link2xt
88d5576150
ci(github): replace references to master branch with main
2023-10-25 22:02:32 +00:00
link2xt
af35e4adeb
chore: update dependencies
2023-10-25 21:58:13 +00:00
link2xt
eaeacb8848
ci: run only on main branch pushes
2023-10-25 21:46:09 +00:00
link2xt
f00e68e142
chore: update some dependencies
2023-10-25 21:45:22 +00:00
link2xt
113356a24e
docs: fix CI badge URL in the readme
2023-10-25 19:31:22 +00:00
link2xt
b89c134e7f
Merge branch 'master' into stable
2023-10-25 16:50:18 +00:00
link2xt
3748794048
fix(sql): order migrations the same as on stable branch
2023-10-25 16:37:39 +00:00
iequidoo
ccca12176e
feat: Replace Config::SendSyncMsgs with SyncMsgs ( #4817 )
...
And execute sync messages only if `Config::SyncMsgs` is enabled. Earlier executing was always
enabled, the messages are force-encrypted anyway. But for users it's probably more clear whether a
device is synchronised or not.
2023-10-25 04:47:37 -03:00
dependabot[bot]
c89dd331f7
chore(cargo): bump libc from 0.2.147 to 0.2.149
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.147 to 0.2.149.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.147...0.2.149 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-25 03:10:25 +00:00
link2xt
fa81ed5f39
ci: rename async tests into JSON-RPC tests
2023-10-25 01:33:56 +00:00
link2xt
6c34f6b8d9
ci: remove misplaced comment
2023-10-25 01:33:56 +00:00
dependabot[bot]
4f21a5691d
chore(cargo): bump tokio from 1.29.1 to 1.33.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.29.1 to 1.33.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.1...tokio-1.33.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-25 00:56:33 +00:00
dependabot[bot]
b2a839971b
chore(cargo): bump strum_macros from 0.25.1 to 0.25.3
...
Bumps [strum_macros](https://github.com/Peternator7/strum ) from 0.25.1 to 0.25.3.
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum_macros
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-24 23:01:25 +00:00
link2xt
8ad99be322
ci: increase MSRV to 1.67.0
2023-10-24 21:18:15 +00:00
link2xt
4e771e8727
Merge branch 'stable'
2023-10-24 17:49:23 +00:00
Sebastian Klähn
e725bdfb2b
feat: add bot field to contact ( #4821 )
...
closes #4647
2023-10-24 17:42:29 +00:00
link2xt
ac557f73b3
chore: remove unneeded idna rule for cargo-deny
2023-10-24 17:02:16 +00:00
link2xt
0ba3501a46
chore: update trust-dns-resolver to hickory-resolver
2023-10-24 17:00:14 +00:00
B. Petersen
b1fe12881e
document configured_addr
...
in fact, it was already used like that,
eg. to detect an AEAP change on android.
but it was never documented officially.
2023-10-24 17:59:19 +02:00
link2xt
c1eb33c0da
Merge tag 'v1.126.1'
...
Release 1.126.1
2023-10-24 14:50:49 +00:00
link2xt
03bb92c942
chore(release): prepare for 1.126.1
2023-10-24 14:30:02 +00:00
link2xt
b0da5a54cc
chore(cargo): update ahash to make cargo-deny happy
2023-10-23 21:56:14 +00:00
link2xt
44e056e210
ci: build Windows wheels for deltachat-rpc-server
2023-10-23 20:38:58 +00:00
link2xt
48a8680ba4
build: set 755 permission on binaries inside deltachat-rpc-server .whl
2023-10-23 20:20:28 +00:00
link2xt
b73bcc2c22
ci: build macOS wheels for deltachat-rpc-server
2023-10-23 20:20:14 +00:00
link2xt
cff42936aa
ci: add missing .exe suffix to windows deltachat-rpc-server paths
2023-10-23 20:19:35 +00:00
link2xt
d3b04004b4
feat(imap): buffer STARTTLS command
...
Using BufWriter ensures that `STARTTLS` command is sent
as a single packet.
Also refactor the code to ensure we only convert to
Box<dyn SessionStream> in the end.
2023-10-23 16:26:29 +00:00
link2xt
5cd92f10ef
ci: build deltachat-rpc-server binaries for aarch64 macOS
2023-10-23 16:02:36 +00:00
link2xt
22a3ab983b
refactor: download messages without jobs
2023-10-23 11:52:47 +00:00
link2xt
83d2e6b8b4
fix: do not interrupt IMAP loop from get_connectivity_html()
...
Android calls get_connectivity_html()
every time connectivity changes, which in turn interrupts
IMAP loop and triggers change from "not connected" to "connecting"
state.
To avoid such infinite loop of IMAP interrupts when
there is not connectivity, update quota only when IMAP
loop is interrupted otherwise. This anyway happens
when a message is received or maybe_network is called.
Also remove outdated comments about `Action::UpdateRecentQuota` job
which does not exist anymore.
2023-10-22 18:48:14 +00:00
link2xt
4e979c5880
build: make source package for deltachat-rpc-server install fixed version
2023-10-22 17:49:03 +00:00
link2xt
71e1089139
fix: do not hardcode version in deltachat-rpc-server source package
2023-10-22 16:46:26 +00:00
link2xt
349c154a99
ci: attempt to fix artifacts download for deltachat-rpc-server
...
Had to do this step manually for 1.126.0,
hopefully the step will work automatically for 1.127.0.
2023-10-22 15:24:02 +00:00
link2xt
54410dbe49
Merge tag 'v1.126.0'
2023-10-22 15:16:11 +00:00
link2xt
4e08bb7b05
chore(release): prepare for 1.126.0
2023-10-22 14:01:07 +00:00
Asiel Díaz Benítez
934ca6a7d7
api: add send_draft() to JSON-RPC API ( #4839 )
2023-10-22 13:14:08 +00:00
link2xt
e878caebe3
ci: build Python wheels for deltachat-rpc-server
2023-10-22 13:13:04 +00:00
link2xt
088eda2983
build(scripts/zig-rpc-server.sh): move built binaries to dist/
2023-10-22 13:13:04 +00:00
link2xt
418cd24979
build: strip release binaries
...
This significantly reduces binary size for deltachat-rpc-server,
from 42 MiB to 15 MiB in case of aarch64.
2023-10-22 13:13:04 +00:00
link2xt
b4fe9e3eec
build: use Zig via ziglang PyPI package
...
This avoids cluttering workdir with unpacked tarball
and will work automatically once PEP-723 is implemented.
2023-10-22 13:13:04 +00:00
link2xt
c13bbd05cd
chore: add dist/ to .gitignore
2023-10-22 13:13:04 +00:00
link2xt
58330fe8b2
ci: remove musl check
...
It requires installing Zig and slows down CI.
This was not broken for a while and we can do
more frequent core releases to catch problems.
2023-10-22 13:13:04 +00:00
link2xt
680d024b05
docs: document scripts/codespell.sh
2023-10-22 06:53:44 +00:00
link2xt
defcd5764b
chore: spellcheck
2023-10-22 06:53:26 +00:00
link2xt
e87f785a0a
test: adjust expected info message in test_verified_group_vs_delete_server_after
...
Test was written for stable branch
and has to be adjusted for verified 1:1 chats branch
2023-10-21 04:18:39 +00:00
link2xt
0227bbc305
fix(imap): fallback to STATUS if SELECT did not return UIDNEXT
...
Winmail Pro Mail Server 5.1.0616 does not return UIDNEXT
in response to SELECT, but returns it when explicitly requested
via STATUS command:
? SELECT INBOX
* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\Draft \Answered \Flagged \Deleted \Seen)] Limited
* 2 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1697802109] Ok
? OK [READ-WRITE] Ok SELECT completed
? STATUS INBOX (UIDNEXT)
* STATUS "INBOX" (UIDNEXT 4)
? OK STATUS completed
Previously used FETCH method is reported to fail for some users,
the FETCH command sometimes returns no results.
Besides, there is no guarantee that the message with
the highest sequence number has the highest UID.
In the worst case if STATUS does not return UIDNEXT
in response to explicit request, we fall back to setting
UIDNEXT to 1 instead of returning an error.
2023-10-20 22:29:44 +00:00
link2xt
d05afec289
chore(cargo): update async-imap to fix STATUS command
2023-10-20 22:29:44 +00:00
link2xt
64035d3ecb
fix: set soft_heap_limit on SQLite database
...
This should prevent unlimited growth of memory usage
by SQLite for is page cache.
2023-10-20 05:18:21 +00:00
link2xt
21e0bb28ad
build: create source distribution for deltachat-rpc-server
2023-10-19 14:38:03 +00:00
link2xt
c6358169ad
fix: s/env/venv/ in scripts/make-python-testenv.sh
2023-10-18 20:10:51 +00:00
Asiel Díaz Benítez
955f4fbb19
add self-address to backup filename ( #4820 )
...
close #4816
---------
Co-authored-by: B. Petersen <r10s@b44t.com >
2023-10-18 12:31:32 -04:00
adbenitez
df7c44ae42
fix: wrong type hint
2023-10-17 17:18:25 +02:00
Hocuri
8573649bf7
feat: Make broadcast lists create their own chat ( #4644 )
...
feat: Make broadcast lists create their own chat - UIs need to ask for
the name when creating broadcast lists now (see
https://github.com/deltachat/deltachat-android/pull/2653 )
That's quite a minimal approach: Add a List-ID header to outgoing
broadcast lists, so that the receiving Delta Chat shows them as a
separate chat, as talked about with @r10s and @hpk42.
Done:
- [x] Fix an existing bug that the chat name isn't updated when the
broadcast/mailing list name changes (I already started this locally)
To be done in other PRs:
- [ ] Right now the receiving side shows "Mailing list" in the subtitle
of such a chat, it would be nicer if it showed "Broadcast list" (or
alternatively, rename "Broadcast list" to "Mailing list", too)
- [ ] The UIs should probably ask for a name before creating the
broadcast list, since it will actually be sent over the wire. (Android
PR: https://github.com/deltachat/deltachat-android/pull/2653 )
Fixes https://github.com/deltachat/deltachat-core-rust/issues/4597
BREAKING CHANGE: This means that UIs need to ask for the name when creating a broadcast list, similar to https://github.com/deltachat/deltachat-android/pull/2653 .
2023-10-17 10:40:47 +02:00
link2xt
52c46c6dca
build: add script to build deltachat-rpc-server wheels
2023-10-16 17:04:55 +00:00
link2xt
54ea3ec5d6
build: workaround OpenSSL crate expecting libatomic to be available
2023-10-15 22:57:46 +00:00
Sebastian Klähn
1632035784
feat: add bot field to contact ( #4821 )
...
closes #4647
2023-10-15 12:40:32 +02:00
Sebastian Klähn
b239535964
api: allow to filter by unread in chatlist:try_load ( #4824 )
...
close #4738
2023-10-14 11:12:53 +02:00
Sebastian Klähn
0751cc50b9
api(json-rpc): force stickers to be sent as stickers ( #4819 )
...
This approach uses a param field to enable forcing the sticker
`viewtype`. The first commit has the memory-only flag implemented, but
this flag is not persistent through the database conversion needed for
draft/undraft. That's why `param` has to be used.
follow up to #4814
fixes #4739
---------
Co-authored-by: Septias <scoreplayer2000@gmail.comclear >
2023-10-14 08:34:46 +00:00
link2xt
da5d844ec4
chore: rustfmt
2023-10-14 04:25:13 +00:00
link2xt
2775fd1fcf
Merge tag 'v1.125.0'
...
Release 1.125.0
2023-10-14 04:24:08 +00:00
link2xt
a87635dcf4
chore(release): prepare for 1.125.0
2023-10-14 04:21:48 +00:00
link2xt
e30517e62c
refactor: log MDN sending errors
2023-10-14 03:29:20 +00:00
iequidoo
a54f3c4b31
fix: Don't try to send more MDNs if there's a tmp SMTP error ( #4534 )
...
If there's a temporary SMTP error, pretend there are no more MDNs to send in send_mdn(). It's
unlikely that other MDNs could be sent successfully in case of connectivity problems. This approach
is simpler and perhaps even better than adding a progressive backoff between MDN sending retries --
MDNs just will be resent after a reconnection, which makes some sense.
2023-10-12 19:19:43 -03:00
iequidoo
bda6cea0ce
feat: Make gossip period configurable ( #4346 )
...
This is needed to test periodic re-gossiping in existing chats.
Also add a test for verified groups on that even if "member added" message is missed by a device of
newly added member, after re-gossiping Autocrypt keys to the group it successfully learns these keys
and marks other members as verified.
2023-10-12 05:45:20 -03:00
iequidoo
6fece09ed7
test: test_qr_new_group_unblocked(): W/a message reordering on server
...
There was a recent failure of the test probably as a result of message reordering on the server:
https://github.com/deltachat/deltachat-core-rust/actions/runs/6464605602/job/17549624095?pr=4813 .
2023-10-11 04:54:03 -03:00
link2xt
3917c6b2f0
test(deltachat-rpc-client): enable logs in pytest
...
This makes pytest setup a logger for `logging` module.
2023-10-10 19:20:42 +00:00
link2xt
96a89b5bdc
fix: return verifier contacts regardless of their origin
...
Previously `Origin::AddressBook` was required,
resulting in a lot of
"Could not lookup contact with address ... which introduced ..."
warnings.
2023-10-10 19:20:22 +00:00
link2xt
b55027fe71
fix: set connectivity status to "connected" during fake idle
...
Set connectivity status to "connected" at the end of connect() call.
Otherwise for servers that do not support IMAP IDLE
connect() is called at the beginning of fake idle
and connectivity stays in "connecting" status most of the time.
2023-10-10 05:37:51 +00:00
link2xt
eacbb82399
feat: add developer option to disable IDLE
2023-10-10 00:52:18 +00:00
Sebastian Klähn
ee279f84ad
fix: show all contacts in Contact::get_all for bots ( #4811 )
...
successor of #4810
2023-10-09 21:02:19 +02:00
link2xt
26959d5b75
test(python): fix flaky test_set_get_group_image
...
Wait for one "Member added" message to be delivered
before sending another text message.
Otherwise they may be reordered by the mail server.
2023-10-09 12:48:33 +00:00
link2xt
ff5005fa93
fix(python): fix scripts/make-python-testenv.sh
...
Without `-c python` tox does not find tox.ini and creates empty environment.
Renamed env/ into venv/ as it is more common.
2023-10-09 12:43:22 +00:00
iequidoo
8f316e12d5
fix: Assign encrypted partially downloaded group messages to 1:1 chat ( #4757 )
...
Before they were trashed. Note that for unencrypted ones DC works as expected creating the requested
group immediately because Chat-Group-Id is duplicated in the Message-Id header and Subject is
fetched.
2023-10-09 05:45:18 -03:00
iequidoo
5f00fc4e27
fix: Don't update timestamp, timestamp_rcvd, state when replacing partially downloaded message ( #4700 )
...
Also add a test on downloading a message later. Although it doesn't reproduce #4700 for some reason,
it fails w/o the fix because before a message state was changing to `InSeen` after a full download
which doesn't look correct. The result of a full message download should be such as if it was fully
downloaded initially.
2023-10-09 05:45:18 -03:00
link2xt
f279730b0f
feat: validate boolean values passed to set_config
...
They may only be set to "0" and "1".
Validation prevents accidentally setting the value to "true", "True" etc.
2023-10-08 23:15:49 +00:00
missytake
5a5f8b03d1
fix(python): don't automatically set the displayname to 'bot' when setting log level
2023-10-08 17:38:57 +00:00
missytake
5e73e9cd72
chore: added more typical virtualenv paths to gitignore
2023-10-08 17:38:57 +00:00
link2xt
129de9182f
chore(deltachat-rpc-client): remove AsyncIO classifier
2023-10-08 01:38:52 +00:00
link2xt
37383c10ac
Merge 'stable' into 'master'
...
Resolved conflicts due to asyncio removal.
2023-10-08 01:30:46 +00:00
link2xt
09798df7a0
refactor(deltachat-rpc-client): remove print() calls
2023-10-07 23:50:38 +00:00
link2xt
b360225e08
refactor: fix Rust 1.73 clippy warnings
2023-10-06 21:21:16 +00:00
link2xt
09d5e44b13
ci: test with Rust 1.73
2023-10-06 21:21:16 +00:00
link2xt
8ba89c0fa1
ci: reduce required Python version for deltachat-rpc-client
2023-10-06 21:20:44 +00:00
link2xt
f984a27379
fix: use process_group Popen argument with Python 3.11
2023-10-06 19:40:26 +00:00
link2xt
425a2310fe
refactor(deltachat-rpc-client): close stdin instead of sending SIGTERM
2023-10-06 18:44:19 +00:00
link2xt
95571be278
fix: run deltachat-rpc-server in its own process group
...
This ensures the server does not get SIGINT
when the bot is running in a terminal and user presses ^C
We want to send SIGTERM ourselves after clean shutdown,
e.g. stopping I/O for all accounts.
2023-10-06 18:30:59 +00:00
link2xt
7bf44a237e
api(deltachat-rpc-client)!: replace asyncio with threads
2023-10-05 15:59:57 +00:00
link2xt
a119b24eeb
Merge tag 'v1.124.1'
2023-10-05 05:02:18 +00:00
link2xt
47dbac9b50
chore(release): prepare for 1.124.1
2023-10-05 05:01:26 +00:00
link2xt
a49282727b
ci: pin urllib3 version to <2
...
Otherwise it is impossible to build wheels.
2023-10-05 04:41:51 +00:00
iequidoo
0d22fc7ac1
fix: Remove footer from reactions on the receiver side ( #4780 )
...
Reactions do not have footer since 6d2ac30 . However, mailing lists still add the footer to the
messages, and receiver interpreted words as a reaction.
2023-10-04 22:46:09 -03:00
link2xt
275791595c
Merge tag 'v1.124.0'
2023-10-04 21:14:17 +00:00
link2xt
1040bc551f
chore(release): prepare for 1.124.0
2023-10-04 21:12:38 +00:00
iequidoo
5aa0205c80
fix: Add protected-headers directive to Content-Type of encrypted/signed MIME ( #2302 )
...
Add protected-headers="v1" directive to Content-Type of an encrypted/signed MIME so that other MUAs
like Thunderbird display the true message Subject instead of "...".
2023-10-04 19:58:08 +00:00
link2xt
210a4ebcbe
ci: test async python bindings with Python 3.11
2023-10-04 19:56:56 +00:00
link2xt
7fc2b06b3f
ci(mypy): ignore distutils
...
Python 3.12 removed `distutils`.
`distutils` from `setuptools` work fine,
but have not typing stubs:
https://github.com/python/typeshed/issues/10255
2023-10-04 19:56:56 +00:00
link2xt
1177c19a43
bulid: build wheels for Python 3.12 and PyPy 3.10
2023-10-04 19:56:56 +00:00
link2xt
8a2417f32d
ci: test with Python 3.12 and PyPy 3.10
2023-10-04 19:56:56 +00:00
link2xt
a154347834
fix(deltachat-rpc-client): increase stdio buffer to 64 MiB
...
Otherwise readline() gets stuck when JSON-RPC response
is longer that 64 KiB.
2023-10-04 16:08:15 +00:00
link2xt
d51adf2aa0
feat(deltachat-rpc-client): log exceptions when long-running tasks die
...
For example, reader_loop() may die
if readline() tries to read too large line
and thows an exception.
We want to at least log the exception in this case.
2023-10-04 08:22:50 +00:00
link2xt
a5f0c1613e
fix: add Let's Encrypt root certificate to reqwest
...
This certificate does not exist on older Android phones.
It is already added manually for IMAP and SMTP,
this commit adds the same certificate for HTTP requests.
2023-10-03 19:35:39 +00:00
link2xt
7c4bcf9004
api!: deprecate get_next_media()
2023-10-03 16:08:25 +00:00
dependabot[bot]
f3fb0dc5fe
chore(cargo): bump proptest from 1.2.0 to 1.3.1
...
Bumps [proptest](https://github.com/proptest-rs/proptest ) from 1.2.0 to 1.3.1.
- [Release notes](https://github.com/proptest-rs/proptest/releases )
- [Changelog](https://github.com/proptest-rs/proptest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/proptest-rs/proptest/compare/v1.2.0...v1.3.1 )
---
updated-dependencies:
- dependency-name: proptest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-03 01:34:58 -03:00
dependabot[bot]
24ea90bd68
Merge pull request #4770 from deltachat/dependabot/cargo/thiserror-1.0.49
2023-10-03 04:30:28 +00:00
dependabot[bot]
ef3e94c7e1
Merge pull request #4777 from deltachat/dependabot/cargo/fuzz/webpki-0.22.2
2023-10-03 04:14:01 +00:00
dependabot[bot]
883832f78d
Merge pull request #4768 from deltachat/dependabot/cargo/brotli-3.4.0
2023-10-03 01:21:32 +00:00
dependabot[bot]
1f03267273
Merge pull request #4773 from deltachat/dependabot/cargo/sha2-0.10.8
2023-10-03 01:21:20 +00:00
dependabot[bot]
8bc2ce1c30
chore(deps): bump webpki from 0.22.0 to 0.22.2 in /fuzz
...
Bumps [webpki](https://github.com/briansmith/webpki ) from 0.22.0 to 0.22.2.
- [Commits](https://github.com/briansmith/webpki/commits )
---
updated-dependencies:
- dependency-name: webpki
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-02 21:39:40 +00:00
dependabot[bot]
2ae92c06e3
Merge pull request #4771 from deltachat/dependabot/cargo/regex-1.9.6
2023-10-02 17:46:17 +00:00
dependabot[bot]
4a6a214f3c
Merge pull request #4769 from deltachat/dependabot/cargo/tokio-util-0.7.9
2023-10-02 16:38:54 +00:00
dependabot[bot]
c2d7011aa7
Merge pull request #4772 from deltachat/dependabot/cargo/smallvec-1.11.1
2023-10-02 16:38:16 +00:00
dependabot[bot]
c0195ab23f
chore(cargo): bump sha2 from 0.10.7 to 0.10.8
...
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.10.7 to 0.10.8.
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.7...sha2-v0.10.8 )
---
updated-dependencies:
- dependency-name: sha2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-01 21:44:09 +00:00
dependabot[bot]
e4e50d0e81
chore(cargo): bump smallvec from 1.11.0 to 1.11.1
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.11.0...v1.11.1 )
---
updated-dependencies:
- dependency-name: smallvec
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-01 21:43:50 +00:00
dependabot[bot]
573746ce54
chore(cargo): bump regex from 1.9.5 to 1.9.6
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.5 to 1.9.6.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.5...1.9.6 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-01 21:43:32 +00:00
dependabot[bot]
6b2df13cdb
chore(cargo): bump thiserror from 1.0.47 to 1.0.49
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.47 to 1.0.49.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.47...1.0.49 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-01 21:43:13 +00:00
dependabot[bot]
3166b44580
chore(cargo): bump tokio-util from 0.7.8 to 0.7.9
...
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.7.8 to 0.7.9.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.7.8...tokio-util-0.7.9 )
---
updated-dependencies:
- dependency-name: tokio-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-01 21:42:54 +00:00
dependabot[bot]
e500485c21
chore(cargo): bump brotli from 3.3.4 to 3.4.0
...
Bumps [brotli](https://github.com/dropbox/rust-brotli ) from 3.3.4 to 3.4.0.
- [Release notes](https://github.com/dropbox/rust-brotli/releases )
- [Commits](https://github.com/dropbox/rust-brotli/commits )
---
updated-dependencies:
- dependency-name: brotli
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-01 21:42:27 +00:00
B. Petersen
2dd44d5f89
fix: cap percentage in connectivity layout to 100%
...
it may happen that percentages larger than 100% are reported by the provider,
eg. for some time a storage usage of 120% may be accepted.
while we should report the values "as is" to the user,
for the bar, percentages larger 100% will destroy the layout.
2023-10-01 14:54:37 +00:00
link2xt
f656cb29be
fix: ignore special chats in get_similar_chat_ids()
...
For unknown reason trash chat contains members in some existing databases.
Workaround this by ignoring chats_contacts entries with special chat_id.
2023-10-01 07:38:13 +00:00
link2xt
59e5a63d5f
Merge branch 'stable', resolving conflicts
2023-10-01 02:46:02 +00:00
link2xt
53230b6eb0
chore(cargo): update webpki to fix RUSTSEC-2023-0052
2023-10-01 00:04:45 +00:00
iequidoo
80ca59f152
feat: Remove extra members from the local list in sake of group membership consistency ( #3782 )
...
9bd7ab72 brings a possibility of group membership inconsistency to the original Hocuri's algo
described and implemented in e12e026b in sake of security so that nobody can add themselves to a
group by forging "InReplyTo" and other headers. This commit fixes the problem by removing group
members locally if we see a discrepancy with the "To" list in the received message as it is better
for privacy than adding absent members locally. But it shouldn't be a big problem if somebody missed
a member addition, because they will likely recreate the member list from the next received
message. The problem occurs only if that "somebody" managed to reply earlier. Really, it's a problem
for big groups with high message rate, but let it be for now.
Also:
- Query chat contacts from the db only once.
- Update chat contacts in the only transaction, otherwise we can just break the chat contact list
halfway.
- Allow classic MUA messages to remove group members if a parent message is missing. Currently it
doesn't matter because unrelated messages go to new ad-hoc groups, but let this logic be outside
of apply_group_changes(). Just in case if there will be a MUA preserving "Chat-Group-ID" header
f.e.
2023-09-30 19:14:22 -03:00
link2xt
eb624e43c0
refactor: remove incomplete protected header code skipping Legacy Display Part
...
The code removed is an incomplete implementation of skipping
the Legacy Display Part specified in
https://www.ietf.org/archive/id/draft-autocrypt-lamps-protected-headers-02.html#section-5.2
The code does not fully implement the specification, e.g.
it does not check that there are exactly two parts.
Delta Chat and Thunderbird are not adding this part anyway,
and it is defined as "transitional" in the draft.
This also removes misplaced warning "Ignoring nested protected headers"
that is printed for every incoming Delta Chat message
since commit 5690c48863
which is part of the PR <https://github.com/deltachat/deltachat-core-rust/pull/982 >.
2023-09-30 21:54:08 +00:00
link2xt
532e9cb09a
refactor: ignore public key argument in dc_preconfigure_keypair()
...
Public key can be extracted from the secret key file.
2023-09-30 19:16:23 +00:00
link2xt
ef4d2a7ed0
api!(python): use dc_contact_get_verifier_id()
...
get_verifier() returns a Contact rather than an address now
dc_contact_get_verifier_addr() is unused.
2023-09-30 15:49:22 +00:00
link2xt
5daa6274e8
Merge stable into master
2023-09-30 12:16:51 +00:00
link2xt
6d2ac30461
fix: do not put the status footer into reaction MIME parts
2023-09-29 16:38:55 +00:00
Hocuri
d109a1b27f
Fix link to the template documentation of git-cliff
...
The old link gives me 404
2023-09-29 15:20:22 +00:00
link2xt
33a203d56e
fix: initialise last_msg_id to the highest known row id
...
Otherwise existing bots migrating to get_next_msgs()
are trying to process all the messages they have in the database.
2023-09-29 13:28:58 +00:00
link2xt
a19811f379
chore(cargo): update tungstenite to fix RUSTSEC-2023-0065
...
Used `cargo update -p axum`.
2023-09-29 13:08:04 +00:00
link2xt
f23023961e
api!: return DC_CONTACT_ID_SELF from dc_contact_get_verifier_id() for directly verified contacts
2023-09-28 19:10:15 +00:00
link2xt
b463a0566e
refactor: flatten create_or_lookup_mailinglist()
2023-09-28 15:20:51 +00:00
link2xt
38d5743c06
refactor: do not ignore errors in get_kml()
...
This removes unnecessary warning
"mimefactory: could not send location: No locations processed"
when there are no locations to send.
2023-09-28 15:19:33 +00:00
link2xt
6990312051
fix: trash only empty *text* parts when location.kml is attached
...
If the message contains other attachment parts
such as images, they should not go into trash.
2023-09-27 18:51:40 +00:00
link2xt
a7cf51868b
test: test send_location
2023-09-27 18:51:40 +00:00
link2xt
815c1b9c49
refactor: resultify location::set()
2023-09-27 18:51:40 +00:00
link2xt
88bba83383
refactor: flatten process_report()
2023-09-26 16:02:14 +00:00
WofWca
b1d517398d
refactor: improve comment about Ratelimit
...
A few people got the impression that if you send 6 messages
in a burst you'll only be able to send the next one in 60 seconds.
Hopefully this can resolve it.
2023-09-26 15:58:24 +00:00
link2xt
4e5b41f150
fix: require valid email addresses in dc_provider_new_from_email[_with_dns]()
2023-09-25 15:51:10 +00:00
B. Petersen
56b2361f01
reset document.update on forwarding
...
this fixes the test test_forward_webxdc_instance()
2023-09-25 15:20:57 +00:00
B. Petersen
968cc65323
test that update.document is not forwarded
...
the test is failing currently
2023-09-25 15:20:57 +00:00
link2xt
d0ee21e6dc
refactor: flatten GENERATED_PREFIX check in receive_imf_inner
2023-09-25 10:35:07 +00:00
link2xt
a1345f2542
refactor: flatten lookup_chat_by_reply
2023-09-25 10:34:20 +00:00
link2xt
f290fe0871
fix: wrap base64-encoded parts to 76 characters
...
This is an RFC 2045 requirement for base64-encoded MIME parts.
Previously referenced RFC 5322 requirement
is a general Internet Message Format requirement
and is more generous.
2023-09-25 10:33:46 +00:00
dependabot[bot]
c41687586c
Merge pull request #4742 from deltachat/dependabot/cargo/fuzz/quinn-proto-0.9.5
2023-09-22 22:43:28 +00:00
link2xt
59a3bc0ff4
Merge tag 'v1.123.0'
2023-09-22 22:41:08 +00:00
link2xt
aa78e82fed
chore(release): prepare for 1.123.0
2023-09-22 22:13:47 +00:00
link2xt
d4e670d5e9
chore(deps): update OpenSSL from 3.1.2 to 3.1.3
2023-09-22 21:57:36 +00:00
link2xt
4553c6521f
api!: make dc_jsonrpc_blocking_call accept JSON-RPC request
2023-09-22 21:33:52 +00:00
dependabot[bot]
a42a6ca18c
chore(deps): bump quinn-proto from 0.9.2 to 0.9.5 in /fuzz
...
Bumps [quinn-proto](https://github.com/quinn-rs/quinn ) from 0.9.2 to 0.9.5.
- [Release notes](https://github.com/quinn-rs/quinn/releases )
- [Commits](https://github.com/quinn-rs/quinn/commits )
---
updated-dependencies:
- dependency-name: quinn-proto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-21 17:26:12 +00:00
link2xt
e72d527d88
api: make it possible to import secret key from a file
...
Previously it was required that a directory path is provided to the import API.
Now it is possible to point directly to the .asc file containing a secret key.
This allows UI to present a file selection dialog to the user
and let select the file directly.
Selecting a directory is still supported for backwards compatibility.
2023-09-20 16:18:45 +00:00
link2xt
f5c36043f6
fix(imex): use "default" in the filename of the default key
...
Previously the logic was inverted, default key was exported with a number
and all other keys were exported into "default".
2023-09-20 16:18:45 +00:00
iequidoo
b227ff87dc
fix: lookup_chat_by_reply(): Skip undecipherable parent messages created by older versions ( #4676 )
...
It's just a dirty hack checking the error prefix, but as undecipherable messages are remembered in
the db now, the hack may be removed soon.
2023-09-18 14:55:56 +00:00
iequidoo
676f311f97
fix: lookup_chat_by_reply(): Skip not fully downloaded and undecipherable messages ( #4676 )
...
Such a message may be assigned to a wrong chat (e.g. undecipherable group msgs often get assigned to
the 1:1 chat with the sender). Add `DownloadState::Undecipherable` so that messages referencing
undecipherable ones don't go to that wrong chat too. Also do not reply to not fully downloaded
messages. Before `Message.error` was checked for that purpose, but a message can be error for many
reasons.
2023-09-18 14:55:56 +00:00
link2xt
061d091c97
build(coredeps): only run yum if it is available
...
musllinux is based on Alpine and has no yum
2023-09-12 19:59:15 +00:00
link2xt
e7617f0abd
build(coredeps): install perl-IPC-Cmd
...
It is required to configure OpenSSL 3.0.
2023-09-12 19:02:20 +00:00
link2xt
790e867af0
Merge tag 'v1.122.0'
2023-09-12 18:04:05 +00:00
link2xt
f02299c06c
chore(release): prepare for 1.122.0
2023-09-12 17:33:22 +00:00
link2xt
ed781af52c
chore(cargo): update to OpenSSL 3.0
...
OpenSSL 1.1.1 has reached End of Life:
https://www.openssl.org/blog/blog/2023/09/11/eol-111/
2023-09-12 17:11:58 +00:00
link2xt
67043177a9
fix: reopen all connections on database passpharse change
...
Previously only one connection, the one used to change the key,
was working after passphrase change.
With this fix the whole pool of connections
is recreated on passphrase change, so there is no need
to reopen the database manually.
2023-09-12 16:34:26 +00:00
link2xt
49cc5fb673
feat: add RSA-4096 key generation support
2023-09-12 12:33:34 +00:00
link2xt
68c95dee17
refactor(pgp): add constants for encryption algorithm and hash
...
These constants are current defaults in `pgp` crate,
this change would prevent accidental change due to rPGP upgrade
and make it easier to change in a single place.
2023-09-12 11:12:59 +02:00
iequidoo
9bd7ab7280
fix: apply_group_changes(): Forbid membership changes from possible non-members ( #3782 )
...
It can be not good for membership consistency if we missed a message adding a member, but improves
security because nobody can add themselves to a group from now on.
2023-09-12 00:30:02 -03:00
link2xt
7a359f6318
build(python): add link to mastodon into projects.urls
...
Such links are displayed on PyPI with mastodon icon.
2023-09-11 04:47:55 +00:00
link2xt
38b31aa88d
fix: do not block new group chats if 1:1 chat is blocked
...
1:1 chat may be blocked while the contact is not
if 1:1 chat was created as a result of scanning
a verified group join QR code with the contact
as the inviter. In this case 1:1 chat is blocked to hide it
while the contact is unblocked.
2023-09-10 21:44:56 +00:00
iequidoo
e12e026bd8
fix: Switch to original Hocuri's group membership consistency algo ( #3782 )( #4624 )
...
- If we don't know the parent (=In-Reply-To) message, then completely recreate the group member list
(i.e. use the member list of the incoming message) (because we assume that we missed some messages
& have a wrong group state).
- If the message has a "Chat-Group-Member-Removed: member@example.com " header, then remove this
member.
- If the message has a "Chat-Group-Member-Added: member@example.com " header, then add this member.
That means:
- Remove checks for the presense of `ContactId::SELF` in the group. Thus all recipients of a message
take the same decision about group membership changes, no matter if they are in the group
currently. This fixes a situation when a recipient thinks it's not a member because it missed a
message about its addition before.
NOTE: But always recreate membership list if SELF has been added. The older versions of DC don't
always set "In-Reply-To" to the latest message they sent, but to the latest delivered message (so
it's a race), so we need this heuristic currently.
- Recreate the group member list if we don't know the parent (=In-Reply-To) message, even if the
sender isn't in the group as per our view, because we missed some messages and our view may be
stale.
2023-09-09 16:22:13 -03:00
iequidoo
212fbc125c
fix: ChatId::parent_query(): Don't filter out OutPending and OutFailed messages
...
The new message for which `parent_query()` is done may assume that it will be received in a context
affected by those messages, e.g. they could add new members to a group and the new message will
contain them in "To:". Anyway recipients must be prepared to orphaned references.
2023-09-09 16:22:13 -03:00
link2xt
2939de013b
api(jsonrpc): return only chat IDs for similar chats
...
This is already the way `get_chatlist_entries` works.
`get_similar_chatlist_entries` is renamed into
`get_similar_chat_ids` because return values are not entries anymore.
2023-09-08 18:47:31 +00:00
link2xt
4a0585404a
chore(cargo): bump webpki from 0.22.0 to 0.22.1
2023-09-08 07:00:55 +00:00
link2xt
0562e23ee0
chore(cargo): bump webpki from 0.22.0 to 0.22.1
2023-09-08 07:00:18 +00:00
link2xt
dcbf5996c2
Merge tag 'v1.121.0'
2023-09-06 21:46:07 +00:00
link2xt
a8551510cd
chore(release): prepare for 1.121.0
2023-09-06 20:53:00 +00:00
link2xt
087f6edd0c
refactor: make set_msg_failed accept &mut Message instead of MsgId
2023-09-06 20:33:37 +00:00
link2xt
d6b7ee04a0
docs: document range argument of render_webxdc_status_update_object()
2023-09-06 20:33:37 +00:00
link2xt
d5c5ff8b3f
refactor: accept &mut Message in create_send_msg_job()
2023-09-06 20:33:37 +00:00
link2xt
dc4396a699
fix: update passed by reference Message in prepare_msg_raw()
2023-09-06 20:33:37 +00:00
link2xt
a74b00c3f9
refactor: move try_calc_and_set_dimensions() call to prepare_msg_blob()
2023-09-06 20:33:37 +00:00
link2xt
2fdb9f8b7e
fix: do not ignore errors in try_calc_and_set_dimensions
2023-09-06 20:33:37 +00:00
link2xt
80fac3f1b8
refactor: use let-else in resend_msgs()
2023-09-06 20:33:37 +00:00
link2xt
17a6c88cc7
api: add Message.set_file_from_bytes() API
2023-09-06 20:33:37 +00:00
link2xt
1ba69dbb9b
fix: reset MIME type if passed to set_file value is None
2023-09-06 20:33:37 +00:00
link2xt
ab1c7ebbe2
refactor: remove unnecessary local variable save_param
2023-09-06 20:33:37 +00:00
link2xt
ee715da078
fix: do not ignore chat loading errors in forward_msgs()
2023-09-06 20:33:37 +00:00
link2xt
27e177dc05
refactor: resultify set_msg_failed()
2023-09-06 20:33:37 +00:00
link2xt
7aac4bfc83
docs: document WebXDC-related SQL tables
2023-09-06 20:33:37 +00:00
link2xt
7b24f9b7a4
docs: comment that msgs_status_updates.update_item_read column is unused
2023-09-06 20:33:37 +00:00
link2xt
b36b902eeb
build: build node packages on Ubuntu 18.04
...
Debian 10 has glibc 2.28, so packages built with it
do not work on Ubuntu 18.04.
2023-09-06 17:23:04 +00:00
dependabot[bot]
f7a47e60cd
Merge pull request #4664 from deltachat/dependabot/cargo/strum_macros-0.25.2
2023-09-05 19:08:04 +00:00
link2xt
30024abb6c
feat: add API to get similar chats
2023-09-05 16:47:19 +00:00
link2xt
1d9702e9e7
refactor: add ChatId::get_timestamp()
2023-09-05 16:47:19 +00:00
link2xt
ee2eae63d6
fix: do not allow dots at the end of email addresses
2023-09-05 13:14:37 +00:00
link2xt
cd477936b5
api: add dc_context_change_passphrase()
2023-09-05 12:41:31 +00:00
Hocuri
2587ebbacd
fix: Clear VerifiedOneOnOneChats config on backup ( #4681 )
...
If the user makes a backup from a UI that supports the experimental verified 1:1 chats (e.g. nightly Android) and imports it into a UI that doesn't, then this config should be cleared.
We already talked about this a long time ago after @Simon-Laux noticed this problem, but I think we didn't actually solve it back then?
Best to review with whitespace changes disabled.
2023-09-05 09:15:15 +02:00
link2xt
dbe9d7e34e
refactor(provider): create provider database entries at compile time
...
According to cargo-llvm-lines it reduces the number of lines
in the crate by 0.7%.
2023-09-05 00:03:34 +00:00
dependabot[bot]
4815e9b990
Merge pull request #4680 from deltachat/dependabot/cargo/regex-1.9.5
2023-09-05 00:03:09 +00:00
dependabot[bot]
f05b0ddf04
chore(cargo): bump regex from 1.9.1 to 1.9.5
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.1 to 1.9.5.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.1...1.9.5 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-04 19:09:31 +00:00
link2xt
f94d34c94b
chore: remove idna from deny.toml
2023-09-04 19:08:49 +00:00
link2xt
e9811fb6da
AsyncResolver::tokio does not return a Result anymore
2023-09-04 19:08:49 +00:00
dependabot[bot]
178fc1736d
chore(cargo): bump trust-dns-resolver from 0.22.0 to 0.23.0
...
Bumps [trust-dns-resolver](https://github.com/bluejekyll/trust-dns ) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/bluejekyll/trust-dns/releases )
- [Changelog](https://github.com/bluejekyll/trust-dns/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bluejekyll/trust-dns/compare/v0.22.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: trust-dns-resolver
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-04 19:08:49 +00:00
dependabot[bot]
54d632adaf
chore(cargo): bump axum from 0.6.19 to 0.6.20
...
Bumps [axum](https://github.com/tokio-rs/axum ) from 0.6.19 to 0.6.20.
- [Release notes](https://github.com/tokio-rs/axum/releases )
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.6.19...axum-v0.6.20 )
---
updated-dependencies:
- dependency-name: axum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-04 19:08:34 +00:00
Hocuri
ae939e79da
Merge remote-tracking branch 'origin/stable'
2023-09-04 19:19:50 +02:00
link2xt
49f143e0d5
refactor: make get_abs_path non-generic
...
Generic functions compile into multiple implementations,
increasing number of lines for LLVM to process,
code size and compilation times.
2023-09-04 00:43:24 +00:00
link2xt
9d7bdf369d
refactor: use slices instead of vectors in provider database
2023-09-03 20:19:58 +00:00
dependabot[bot]
e12ef805a9
Merge pull request #4675 from deltachat/dependabot/cargo/backtrace-0.3.69
2023-09-03 19:50:35 +00:00
dependabot[bot]
b36acb2dc0
chore(cargo): bump log from 0.4.19 to 0.4.20
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.19 to 0.4.20.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.19...0.4.20 )
---
updated-dependencies:
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-03 02:25:33 +00:00
dependabot[bot]
1b883ae3fa
chore(cargo): bump typescript-type-def from 0.5.7 to 0.5.8
...
Bumps [typescript-type-def](https://github.com/dbeckwith/rust-typescript-type-def ) from 0.5.7 to 0.5.8.
- [Changelog](https://github.com/dbeckwith/rust-typescript-type-def/blob/master/CHANGELOG.md )
- [Commits](https://github.com/dbeckwith/rust-typescript-type-def/compare/v0.5.7...v0.5.8 )
---
updated-dependencies:
- dependency-name: typescript-type-def
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-03 02:25:00 +00:00
dependabot[bot]
72c94e1037
chore(cargo): bump serde from 1.0.180 to 1.0.188
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.180 to 1.0.188.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.180...v1.0.188 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-03 02:24:33 +00:00
adbenitez
a270db1d87
remove aiodns optional dependency from required dependencies
2023-09-03 00:32:08 +00:00
dependabot[bot]
0a4c993bb8
chore(cargo): bump serde_json from 1.0.104 to 1.0.105
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.104...v1.0.105 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-03 00:01:58 +00:00
link2xt
ec56134583
Remove winreg entry from deny.toml
2023-09-02 23:01:00 +00:00
dependabot[bot]
d8bf1c1691
chore(cargo): bump reqwest from 0.11.18 to 0.11.20
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.18 to 0.11.20.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.18...v0.11.20 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 23:01:00 +00:00
dependabot[bot]
8ac1754e18
chore(cargo): bump tempfile from 3.7.0 to 3.8.0
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.7.0 to 3.8.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.7.0...v3.8.0 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 22:05:42 +00:00
dependabot[bot]
e1f1143919
chore(cargo): bump quote from 1.0.32 to 1.0.33
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.32...1.0.33 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 22:05:08 +00:00
dependabot[bot]
d9e38289c4
chore(cargo): bump image from 0.24.6 to 0.24.7
...
Bumps [image](https://github.com/image-rs/image ) from 0.24.6 to 0.24.7.
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/compare/v0.24.6...v0.24.7 )
---
updated-dependencies:
- dependency-name: image
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 21:57:51 +00:00
dependabot[bot]
486050d0b8
chore(cargo): bump backtrace from 0.3.68 to 0.3.69
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.68 to 0.3.69.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.68...0.3.69 )
---
updated-dependencies:
- dependency-name: backtrace
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 19:16:16 +00:00
dependabot[bot]
828c90ac3d
chore(cargo): bump tokio from 1.29.1 to 1.32.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.29.1 to 1.32.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.1...tokio-1.32.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 19:14:54 +00:00
dependabot[bot]
ab09ecce7e
chore(cargo): bump schemars from 0.8.12 to 0.8.13
...
Bumps [schemars](https://github.com/GREsau/schemars ) from 0.8.12 to 0.8.13.
- [Release notes](https://github.com/GREsau/schemars/releases )
- [Changelog](https://github.com/GREsau/schemars/blob/master/CHANGELOG.md )
- [Commits](https://github.com/GREsau/schemars/compare/v0.8.12...v0.8.13 )
---
updated-dependencies:
- dependency-name: schemars
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 18:26:24 +00:00
dependabot[bot]
aebad2eb10
chore(cargo): bump url from 2.4.0 to 2.4.1
...
Bumps [url](https://github.com/servo/rust-url ) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.4.0...v2.4.1 )
---
updated-dependencies:
- dependency-name: url
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 17:45:25 +00:00
dependabot[bot]
2a39a85d9e
chore(cargo): bump thiserror from 1.0.44 to 1.0.47
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.44 to 1.0.47.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.44...1.0.47 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 17:44:37 +00:00
dependabot[bot]
cb0270baa7
chore(cargo): bump anyhow from 1.0.72 to 1.0.75
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.72 to 1.0.75.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.75 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 17:44:11 +00:00
dependabot[bot]
99302c9598
chore(cargo): bump base64 from 0.21.2 to 0.21.3
...
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.21.2 to 0.21.3.
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.21.2...v0.21.3 )
---
updated-dependencies:
- dependency-name: base64
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 17:44:02 +00:00
dependabot[bot]
88ae653760
chore(cargo): bump chrono from 0.4.26 to 0.4.28
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.26 to 0.4.28.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.26...v0.4.28 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 17:43:13 +00:00
dependabot[bot]
6881f9d70f
chore(cargo): bump syn from 2.0.28 to 2.0.29
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.28 to 2.0.29.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.28...2.0.29 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-02 17:42:09 +00:00
dependabot[bot]
60ddbe5729
chore(cargo): bump strum_macros from 0.25.1 to 0.25.2
...
Bumps [strum_macros](https://github.com/Peternator7/strum ) from 0.25.1 to 0.25.2.
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum_macros
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-09-01 21:09:22 +00:00
iequidoo
5e5e557c8b
Merge branch 'stable'
...
7c7cd9cc80 is a backport from `master`, so skip it.
2023-09-01 13:23:10 -03:00
iequidoo
bc8023644c
Merge commit '7c7cd9cc8084f0e425b1919b84d5e79ed150d16b~' into HEAD
...
Merge `stable` up to the mentioned commit.
2023-09-01 13:14:44 -03:00
iequidoo
7c7cd9cc80
fix: Return from dc_get_chatlist(DC_GCL_FOR_FORWARDING) only chats where we can send ( #4616 )
...
I.e. exclude from the list the following chats as well:
- Read-only mailing lists.
- Chats we're not a member of.
But as for ProtectionBroken chats, we return them, as that may happen to a verified chat at any
time. It may be confusing if a chat that is normally in the list disappears suddenly. The UI need to
deal with that case anyway.
(cherry picked from commit 83ef25e7de )
2023-09-01 12:28:41 -03:00
iequidoo
83ef25e7de
fix: Return from dc_get_chatlist(DC_GCL_FOR_FORWARDING) only chats where we can send ( #4616 )
...
I.e. exclude from the list the following chats as well:
- Read-only mailing lists.
- Chats we're not a member of.
But as for ProtectionBroken chats, we return them, as that may happen to a verified chat at any
time. It may be confusing if a chat that is normally in the list disappears suddenly. The UI need to
deal with that case anyway.
2023-09-01 10:26:22 -03:00
iequidoo
47d465e6e4
fix: Save mime headers for messages not signed with a known key ( #4557 )
...
If a message is unsigned or signed with an unknown key, `MimeMessage::was_encrypted()` returns
false. So, it mustn't be checked when deciding whether to look into
`MimeMessage::decoded_data`. Looking through git history one can see that it's just a wrong check
left in the code for historical reasons.
2023-08-31 14:07:12 -03:00
link2xt
03d3e0578f
refactor(deltachat-rpc-client): drop support for keyword arguments
...
All Rust methods have positional arguments and it is not going to change.
2023-08-31 00:46:04 +00:00
iequidoo
440a442f30
fix: Allow membership changes by a MUA if we're not in the group ( #4624 )
...
Other MUAs don't set add/remove headers, so the only way for them to re-add us to the group is to
add us to To/CC/wherever. Previously it worked only for other members that are still in the group so
that they properly handled our re-addition, but we didn't.
2023-08-29 22:19:15 -03:00
link2xt
1da52d7d1d
refactor: use split_once() instead of regexp in heuristically_parse_ndn
...
Reduce dependency on the huge `regex` crate.
2023-08-29 18:41:07 +00:00
link2xt
9a7d1faf75
Merge tag 'v1.120.0'
2023-08-28 11:55:53 +00:00
link2xt
4d74f625d3
chore(release): prepare for 1.120.0
2023-08-28 11:54:38 +00:00
link2xt
0a94fbc735
fix: update async-imap to 0.9.1 to fix memory leak
2023-08-28 09:04:28 +00:00
link2xt
9ef34890fa
chore: fix beta clippy warnings
2023-08-28 04:09:52 +00:00
iequidoo
3e07f2c173
fix: prepare_msg_blob(): If cannot recode image, don't use it if it has Exif
...
We mustn't send images with Exif as it can leak metadata such as location, camera model, etc.
2023-08-27 23:16:19 -03:00
iequidoo
ee28298d7f
fix: W/a sending images sent as stickers on some platforms ( #4611 )
...
Check if a sticker has at least one fully transparent corner and otherwise change the Sticker type
to Image. This would fix both Android and iOS at the same time and prevent similar bug on future
platforms that may get this bug like Ubuntu Touch.
2023-08-27 23:16:19 -03:00
link2xt
e59c4ee858
Merge branch 'stable'
2023-08-27 22:18:36 +00:00
link2xt
62aed13880
refactor: hide pgp module from public API
2023-08-27 22:03:00 +00:00
link2xt
bffe934acc
refactor: hide accounts.rs constants from public API
2023-08-27 22:03:00 +00:00
link2xt
a520f0268f
chore: rustfmt
2023-08-26 18:15:11 +00:00
link2xt
5e3b1fa540
Merge branch 'stable'
2023-08-26 18:12:13 +00:00
iequidoo
95f29f7b63
fix: receive_imf: Set protection only for Chattype::Single ( #4597 )
...
Also don't set protection to ProtectionBroken if it already is.
Co-authored-by: Hocuri <hocuri@gmx.de >
2023-08-26 13:19:48 -03:00
link2xt
87ffcaf03e
build: update to Rust 1.72.0
2023-08-25 23:04:47 +00:00
link2xt
2635146328
build: update to Zig 0.11.0
2023-08-25 21:20:11 +00:00
link2xt
d727d85f6d
chore(python): fix ruff 0.0.286 warnings
2023-08-25 20:57:44 +00:00
link2xt
20513475ef
Merge branch 'stable'
2023-08-25 01:59:04 +00:00
link2xt
81a7af10c7
chore(python): fix lint errors
2023-08-25 01:14:24 +00:00
link2xt
4a6e94f8ab
build(deny): ignore RUSTSEC-2023-0052
2023-08-25 01:04:02 +00:00
link2xt
146fe50e20
build(cargo-deny): ignore RUSTSEC-2022-0093
...
It is an API issue that can only be fixed in rPGP and iroh upstream.
2023-08-25 01:03:56 +00:00
link2xt
9bf2850fb1
ci: run on push to stable branch
2023-08-25 00:58:14 +00:00
iequidoo
ba2c36548e
fix: Delete messages from SMTP queue only on user demand ( #4579 )
...
I.e. from delete_msgs(). Otherwise messages must not be deleted from there, e.g. if a message is
ephemeral, but a network outage lasts longer than the ephemeral message timer, the message still
must be sent upon a successful reconnection.
2023-08-24 23:24:24 +00:00
link2xt
3b806320ec
Merge branch 'stable'
2023-08-24 22:25:02 +00:00
Simon Laux
d07c743cdc
api(jsonrpc): add resend_messages
2023-08-24 22:04:47 +00:00
dependabot[bot]
c857d6e1bd
Merge pull request #4591 from deltachat/dependabot/cargo/sanitize-filename-0.5.0
2023-08-24 20:01:21 +00:00
dependabot[bot]
94cd9a713f
chore(cargo): bump sanitize-filename from 0.4.0 to 0.5.0
...
Bumps [sanitize-filename](https://github.com/kardeiz/sanitize-filename ) from 0.4.0 to 0.5.0.
- [Commits](https://github.com/kardeiz/sanitize-filename/commits )
---
updated-dependencies:
- dependency-name: sanitize-filename
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-24 18:42:54 +00:00
link2xt
7676473ebd
fix: do not mark non-verified group chats as verified when using securejoin
...
Only mark the chat is verified if 1:1 verified chats are enabled
and securejoin targets a 1:1 chat.
2023-08-24 18:39:56 +00:00
link2xt
8c778b3f5c
test: extend test_qr_join_chat to check that the group is not verified
2023-08-24 18:39:56 +00:00
iequidoo
a66f8bd9fc
fix: Delete messages from SMTP queue only on user demand ( #4579 )
...
I.e. from delete_msgs(). Otherwise messages must not be deleted from there, e.g. if a message is
ephemeral, but a network outage lasts longer than the ephemeral message timer, the message still
must be sent upon a successful reconnection.
2023-08-24 13:39:22 -03:00
iequidoo
95b2a15930
fix: Sort old incoming messages below all outgoing ones ( #4621 )
...
If the Inbox is fetched before the Sentbox (as done currently), messages from the Sentbox will
correctly mingle with the Inbox messages in the end. So, this commit changes message ordering only
if we already have processed outgoing messages, e.g. if we just sent them in the chat as described
in #4621 . Otherwise new incoming messages are displayed somewhere in the middle of the chat which
doesn't look usable.
2023-08-24 13:22:26 -03:00
iequidoo
0179ec2da9
fix: receive_imf: Update peerstate from db after handling Securejoin handshake ( #4600 )
...
Otherwise has_verified_encryption() would check a stale Peerstate object.
2023-08-24 01:29:25 +00:00
iequidoo
8f2313bb2a
test: test_openrpc_command_line: Check that deltachat-rpc-server exists with 0
2023-08-23 19:30:14 +00:00
link2xt
488a3d1118
build(deny): ignore RUSTSEC-2023-0052
2023-08-23 19:30:14 +00:00
link2xt
9094df7bc7
build(python): pin sphinx to 7.1.2
2023-08-23 19:30:14 +00:00
link2xt
16aad3fa67
build(cargo-deny): ignore RUSTSEC-2022-0093
...
It is an API issue that can only be fixed in rPGP and iroh upstream.
2023-08-17 12:20:58 +00:00
iequidoo
3b47c3f21d
ci: Run Rust tests with RUST_BACKTRACE set
2023-08-15 14:24:02 -03:00
link2xt
987ce58926
chore(python): fix lint errors
2023-08-11 17:06:15 +00:00
iequidoo
20c88743df
test: W/a message reordering in test_reaction_to_partially_fetched_msg()
2023-08-08 21:02:41 -03:00
dependabot[bot]
03395b95cb
chore(cargo): bump quick-xml from 0.29.0 to 0.30.0
...
Bumps [quick-xml](https://github.com/tafia/quick-xml ) from 0.29.0 to 0.30.0.
- [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.29.0...v0.30.0 )
---
updated-dependencies:
- dependency-name: quick-xml
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-08-08 21:02:41 -03:00
Hocuri
53f04a134a
test: Don't accidentally accept that a chat protection is broken ( #4550 )
2023-08-08 11:35:38 +02:00
Hocuri
885f26ea8c
test: Directly unwrap in TestContext::get_chat() ( #4614 )
...
Directly unwrap in TestContext::get_chat()
Turns out that all usages of get_chat() directly unwrapped, because in a
test it doesn't make sense to handle the error of there being no chat.
2023-08-08 11:34:52 +02:00
link2xt
3ab181fdf8
build: update to Zig 0.11.0
2023-08-06 19:44:48 +00:00
link2xt
d70c1d48b5
chore(release) prepare for 1.119.1
2023-08-06 16:49:06 +00:00
link2xt
a8e0cb9b5a
fix: update xattr from 1.0.0 to 1.0.1 to fix UnsupportedPlatformError import
...
See the folowing PRs on the `xattr` repository:
- https://github.com/Stebalien/xattr/pull/34
- https://github.com/Stebalien/xattr/pull/38
2023-08-06 16:45:58 +00:00
link2xt
6ea9a8988b
test(webxdc): ensure unknown WebXDC update properties do not result in an error
2023-08-06 16:27:29 +00:00
iequidoo
45e35b3571
feat: Guess message viewtype from "application/octet-stream" attachment extension ( #4378 )
2023-08-05 16:34:06 -03:00
link2xt
e12044e6af
api!(deltachat-jsonrpc): use kind as a tag for all union types
2023-08-03 23:46:24 +00:00
link2xt
954067eb6d
Merge tag 'v1.119.0'
2023-08-03 17:05:00 +00:00
link2xt
e43f9066d8
chore(release): prepare for 1.119.0
2023-08-03 17:03:26 +00:00
link2xt
aecbebd566
docs: improve JSON-RPC API documentation
2023-08-03 16:06:36 +00:00
link2xt
3111bcde5e
refactor: flatten imports in deltachat-jsonrpc
2023-08-03 15:58:48 +00:00
link2xt
e6cffd537e
refactor: remove Chattype::Undefined
2023-08-02 17:02:28 +00:00
link2xt
70000d9ebb
build: increase MSRV to 1.67.0
...
This is required by time v0.3.24
2023-08-02 03:27:21 +00:00
link2xt
d95843b0bf
chore(deps): update dependencies
2023-08-02 03:23:19 +00:00
link2xt
13e766bc37
feat(deltachat-rpc-server): add --openrpc option
2023-08-01 18:27:02 +00:00
link2xt
c34edc582e
test: test that get_system_info() works over RPC backup import
2023-08-01 01:05:06 +00:00
link2xt
8eee389c09
refactor: use SQL transaction in MsgId.delete_from_db()
2023-07-31 20:01:35 +00:00
link2xt
8ed6d4d709
api!: make MsgId.delete_from_db() private
...
Use `delete_msgs()` if you are using the Delta Chat core
as a library and want to delete a message.
2023-07-31 20:01:35 +00:00
Hocuri
60bacbec47
feat: Don't show a contact as verified if their key changed since the verification ( #4574 )
...
Don't show a contact as verified if their key changed in the meantime
If a contact's key changed since the verification, then it's very
unlikely that they still have the old, verified key. So, don't show them
as verified anymore.
This also means that you can't add a contact like this to a verified
group, which is good.
The documentation actually already described this (new) behavior:
```rust
/// and if the key has not changed since this verification.
```
so, this adapts the code to the documentation.
2023-07-31 18:59:45 +02:00
link2xt
af013559de
refactor: hide DcSecretKey trait from the API
2023-07-29 18:10:25 +00:00
link2xt
b784415c57
refactor: move dc_preconfigure_keypair() implementation into deltachat crate
...
This allows to hide `DcKey` trait from public API.
2023-07-29 18:05:05 +00:00
link2xt
85739ba6ad
refactor: make last_added_location_id an Option
2023-07-29 17:45:15 +00:00
B. Petersen
a02a593f47
fix example; this was changed some time ago, see https://docs.webxdc.org/spec.html#sendupdate
2023-07-29 05:08:54 +02:00
link2xt
bba6c8f15a
fix: emit MsgsChanged event with correct chat id for replaced messages
...
Previously an event with DC_CHAT_ID_TRASH was emitted.
2023-07-28 21:51:08 +00:00
link2xt
67f28f501a
Merge branch 'stable'
2023-07-27 19:40:01 +00:00
link2xt
9b9703a48e
refactor: replace DcKey.load_self trait method with functions
2023-07-27 18:23:56 +00:00
link2xt
c55a3d3873
refactor: flatten and simplify imports
2023-07-27 17:47:30 +00:00
iequidoo
55aaec744a
feat: Make dc_msg_get_filename() return the original attachment filename ( #4309 )
...
It can be used e.g. as a default in the file saving dialog. Also display the original filename in
the message info. For these purposes add Param::Filename in addition to Param::File and use it as an
attachment filename in sent emails.
2023-07-27 14:31:14 -03:00
iequidoo
f27d304f3b
feat!: Add lockfile to account manager ( #4310 )
...
Opening the same account (context) from multiple processes is dangerous, can result in duplicate
downloads of the same message etc. Same for account manager, attempts to modify the same
accounts.toml even if done atomically with may result in corrupted files as atomic replacement
procedure does not expect that multiple processes may write to the same temporary file.
accounts.toml cannot be used as a lockfile because it is replaced during atomic update. Therefore, a
new file next to accounts.toml is needed to prevent starting second account manager in the same
directory.
But iOS needs to be able to open accounts from multiple processes at the same time. This is required
as the "share-to-DC extension" is a separate process by iOS design -- this process may or may not be
started while the main app is running. Accounts are not altered however by this extension, so let's
add to the `Accounts::new()` constructor an `rdwr` parameter which allows to read the accounts
config w/o locking the lockfile.
2023-07-26 16:02:25 -03:00
link2xt
2f24eddb7d
fix: base64-encode webxdc updates
...
Webxdc update messages may contain
long lines that get hard-wrapped
and may corrupt JSON if the message
is not encrypted.
base64-encode the update part
to avoid hard wrapping.
This is not necessary for encrypted
messages, but does not introduce
size overhead as OpenPGP messages
are compressed.
2023-07-26 15:06:29 +00:00
link2xt
6d51d19f01
refactor(e2ee): do not return anything from ensure_secret_key_exists()
...
The return value was never used.
2023-07-26 11:19:08 +00:00
Hocuri
170968dfc2
Update README.md
2023-07-25 16:50:10 +02:00
link2xt
a33c91afa9
fix(webxdc): check if status update sender is the member of the correct chat
2023-07-24 22:53:30 +00:00
link2xt
f930576fd1
Merge branch 'stable'
2023-07-24 18:40:44 +00:00
link2xt
d52f2883cf
feat(deltachat-rpc-client): add MSG_DELETED constant
2023-07-24 18:40:32 +00:00
link2xt
b872953bc5
fix(deltachat-jsonrpc): make MessageObject.text non-optional
...
This is already non-optional on the `deltachat` crate side
since <https://github.com/deltachat/deltachat-core-rust/pull/4517 >
2023-07-24 18:36:56 +00:00
link2xt
d797de7a8d
refactor: use slices and vectors instead of Keyring wrapper
...
This change removes all traces of dc_keyring_t,
which was a C implementation of dynamically sized array.
2023-07-24 18:05:38 +00:00
link2xt
acc7bb00c5
chore(deps): update rPGP
2023-07-24 16:14:16 +00:00
link2xt
8fb8a877be
chore(deps): update dependencies
2023-07-24 14:06:09 +00:00
Hocuri
b96028cd87
api!(Rust): Remove unused function is_verified_ex() ( #4551 )
...
No one used it anymore, and all occurences I could find (on
GitHub)[https://github.com/search?q=%22is_verified_ex%22&type=code&p=1 ]
are either forks of deltachat-core-rust or of deltachat-core (which is
the old C core).
2023-07-24 12:19:13 +02:00
Hocuri
682e241edb
fix: Fix info-message orderings of verified 1:1 chats ( #4545 )
...
Correctly handle messages with old timestamps for verified chats:
* They must not be sorted over a protection-changed info message
* If they change the protection, then they must not be sorted over existing other messages, because then the protection-changed info message would also be above these existing messages.
This PR fixes this:
1. Even seen messages can't be sorted into already-noticed messages anymore. **This also changes DC's behavior in the absence of verified 1:1 chats**. Before this PR, messages that are marked as seen when they are downloaded will always be sorted by their timestamp, even if it's very old.
2. protection-changed info messages are always sorted to the bottom.
**Edit:**
3. There is an exception to rule 1: Outgoing messages are still allowed to be sorted purely by their timestamp, and don't influence old messages. This is to the problem described at [*].
Together, these rules also make sure that the protection-changed info message is always right above the message causing the change.
[*] If we receive messages from two different folders, e.g. `Sent` and `Inbox`, then this will lead to wrong message ordering in many cases. I need to think about this more, or maybe someone else has an idea. One new idea that came to my mind is:
* Always sort noticed messages under the newest info message (this PR sorts them under the newest noticed message, master sorts them purely by their sent timestamp)
* Always sort unnoticed messages under the newest noticed message (that's the same behavior as in this PR and on master)
* Always sort protection-changed info messages to the bottom (as in this PR)
However, after a talk with @link2xt we instead decided to add rule 3. (see above) because it seemed a little bit easier.
2023-07-24 12:16:32 +02:00
link2xt
c1cb6eef08
refactor: improve IMAP logs
2023-07-23 12:19:50 +00:00
Simon Laux
3a63628f1f
update node constants
...
looks like this was fogotten when changing the chat protection stock strings
2023-07-23 09:26:01 +00:00
link2xt
3705616cd9
Merge branch 'stable'
2023-07-23 09:17:13 +00:00
B. Petersen
200b808c27
add tests for deletion of webxdc status-updates
2023-07-23 09:16:28 +00:00
B. Petersen
d572d960e5
delete old webxdc status updates during housekeeping
2023-07-23 09:16:28 +00:00
Simon Laux
b8fcb660ad
cargo fmt
2023-07-23 02:29:42 +02:00
Simon Laux
5673294623
api(jsonrpc): add resend_messages
2023-07-23 02:29:42 +02:00
B. Petersen
7062bb0502
clarify transitive behaviour of dc_contact_is_verfified()
2023-07-22 20:58:05 +02:00
link2xt
5db75128ba
fix: accept WebXDC updates in mailing lists
2023-07-22 01:30:52 +00:00
link2xt
fbd2fc8ead
test: add test_webxdc_download_on_demand
...
The test checks that if webxdc update is too large to
download with the current `download_limit`,
it is applied afterwards when the user manually downloads the update message.
2023-07-21 21:23:44 +00:00
link2xt
bc73c16df7
chore: fix compiler warnings
2023-07-21 09:33:59 +00:00
link2xt
659cffe0cc
ci: remove comment about python from rust tests
2023-07-19 13:43:20 +00:00
link2xt
a1663a98e0
build: use Rust 1.71.0 and increase MSRV to 1.66.0
...
Rust 1.66 is required by constant_time_eq 0.3.0.
2023-07-19 13:41:31 +00:00
link2xt
3de1dbc9e4
chore(deps): update dependencies
2023-07-19 13:26:47 +00:00
link2xt
6d37e8601e
Merge branch 'stable'
2023-07-17 17:11:38 +00:00
link2xt
0a50bad555
fix(deltachat-rpc-server): update tokio-tar to fix backup import
...
tokio-tar 0.3.0 prints message "create_dir_all ..." to stdout during import.
tokio-tar 0.3.1 has removed this debug output which broke stdio JSON-RPC protocol.
2023-07-17 17:07:13 +00:00
link2xt
82c0058129
test: add basic import/export test for async python
2023-07-17 17:07:13 +00:00
link2xt
1bd307a26a
api(deltachat-rpc-client): add Account.{import,export}_backup methods
2023-07-17 17:07:13 +00:00
link2xt
740f43a2d6
fix: do not resync IMAP after initial configuration
...
If there was no previous `configured_addr`,
then there is no need to run IMAP resync.
2023-07-17 16:38:09 +00:00
Hocuri
d762753103
fix: Allow to save a draft if the verification is broken ( #4542 )
...
If the verification is broken, `can_send()` is false.
But if the user was typing a message right when a verification-breaking message came in, the UI still needs to be able to save it as a draft.
Steps to reproduce the bug:
- Set a draft
- Your chat partner breaks verification
- Go back to the chats list
- Go to the chat again
- Accept the breakage
- Expected: The draft is still there
- Bug behavior: The draft is gone
2023-07-16 12:04:43 +02:00
link2xt
a020d5ccce
Merge branch 'stable'
2023-07-14 11:23:43 +00:00
link2xt
c14f45a8f5
fix(imap): avoid IMAP move loops when DeltaChat folder is aliased
...
Some Dovecot servers are configured
to alias "INBOX.DeltaChat" and "DeltaChat" to the same folder.
In this case Delta Chat moves new emails from "INBOX"
to "DeltaChat", but then discovers the same mail in "INBOX.DeltaChat"
and tries to move it to "DeltaChat" again.
Each time a MOVE command is issued to move the message
from "INBOX.DeltaChat" to "DeltaChat", the message gets a new UID.
To prevent such IMAP move loop between aliased folders,
we do not move the message if we have already seen it on IMAP,
i.e. we have its Message-ID in the `imap` table.
Note that we do not use `rfc724_mid_exists`,
because it checks the `msgs` table and would consider
BCC-self messages seen even before we see them in the Inbox,
preventing their move to the DeltaChat folder.
Duplicate messages and messages without Message-IDs
are not moved anymore, but this is better
than having an infinite move loop.
2023-07-14 11:21:31 +00:00
link2xt
8269116dba
chore(python): fix ruff warnings
2023-07-12 19:49:12 +00:00
Hocuri
1e28ea9bb0
fix: Don't create 1:1 chat as protected for contact who doesn't prefer to encrypt ( #4538 )
2023-07-11 17:39:59 +00:00
Hocuri
17f2d33731
test: Remove unnecessary inner_set_protection() call ( #4539 )
...
1:1 chats are automatically created as protected if the contact is
verified, there is no need to explicitly do this.
Plus, by removing this call, the test also tests that automatically
creating 1:1 chats as protected works.
2023-07-11 19:15:23 +02:00
link2xt
db941ccf88
fix: return valid MsgId from receive_imf() when the message is replaced
...
receive_imf() calls add_parts()
which INSERTs or UPDATEs the message using UPSERT [1].
It then uses last_insert_rowid() to get
the ID of the inserted message.
However, it is incorrect to use last_insert_rowid()
if an UPDATE was executed instead of INSERT.
The solution is to use `RETURNING id` clause
to make the UPSERT statement return message ID in any case [2].
The fix is tested in test_webxdc_update_for_not_downloaded_instance()
and with a debug_assert!.
[1] https://www.sqlite.org/lang_UPSERT.html
[2] https://sqlite.org/forum/forumpost/9ce3bc1c4a85c15f
2023-07-11 08:43:01 +00:00
link2xt
a464cbdfe6
chore: rustfmt
2023-07-11 00:03:57 +00:00
link2xt
976797d4cf
build: remove examples/simple.rs
...
When `cargo test` is executed,
all examples are built by default
to ensure that they can be compiled.
This is a documented and expected behaviour,
even though it was previously reported as a bug:
<https://github.com/rust-lang/cargo/issues/6675 >
In particular, `examples/simple.rs` is built into
a 67M binary `target/debug/examples/simple`.
This is unnecessary to do so every time
you change a line in the `deltachat` crate
and want to rerun the tests.
Workaround is to run `cargo test --tests`,
but it is easy to forget and is not discoverable
unless you read the "Target Selection" section of `cargo help test`.
We have a maintained example at https://github.com/deltachat-bot/echo ,
so there is no need for an example in the core repository.
2023-07-10 21:49:31 +00:00
link2xt
31e3169433
chore: nightly clippy fixes
2023-07-10 11:38:46 +02:00
link2xt
d2b15cb629
docs: document how logs and error messages should be formatted
2023-07-09 16:18:18 +00:00
Hocuri
9cd000c4f2
feat: Verified 1:1 chats ( #4315 )
...
Implement #4188
BREAKING CHANGE: Remove unused DC_STR_PROTECTION_(EN)ABLED* strings
BREAKING CHANGE: Remove unused dc_set_chat_protection()
2023-07-09 14:06:45 +02:00
link2xt
ea4a0530b8
docs: update default value for show_emails in dc_set_config() documentation
2023-07-08 09:25:09 +02:00
link2xt
243c035b03
chore: spellcheck
2023-07-07 21:56:59 +00:00
link2xt
9d3b2d4844
chore(release): prepare for 1.118.0
2023-07-07 17:01:03 +00:00
link2xt
c312280ab3
build(git-cliff): do not fail if commit.footers is undefined
2023-07-07 16:41:10 +00:00
link2xt
572b99a2e1
Rewrite member added/removed messages even if the change is not allowed
...
PR https://github.com/deltachat/deltachat-core-rust/pull/4529
2023-07-06 13:47:56 +00:00
link2xt
3992b5a063
refactor: move handle_mdn and handle_ndn to mimeparser and make them private
...
Previously handle_mdn was erroneously exposed in the public API.
2023-07-06 12:34:49 +00:00
link2xt
b97cb4b55e
chore(cargo): update Cargo.lock
2023-07-06 12:33:58 +00:00
link2xt
64c218f1ea
fix: rewrite "member added" message even if change is not allowed
2023-07-06 01:36:42 +00:00
link2xt
deed790950
test: test that "member added" message is rewritten even if self is not in chat
2023-07-06 01:36:23 +00:00
link2xt
b33ae3cd0f
fix: rewrite "member removed" message even if change is not allowed
2023-07-06 01:36:23 +00:00
link2xt
9480699362
test: test that "member removed" message is rewritten if self is not in chat
2023-07-06 01:36:08 +00:00
link2xt
94c190e844
fix: use different member added/removal messages locally and on the network
...
This commit adds new stock strings
"I added member ...",
"I removed member ..." and
"I left the group" that are sent over the network
and are visible in classic MUAs like Thunderbird.
Member name in these messages uses authname
instead of the display name,
so the name set locally does not get leaked when
a member is added or removed.
2023-07-05 16:16:30 +00:00
link2xt
578e47666f
api!: replace message::get_msg_info() with MsgId.get_info()
2023-07-05 14:22:37 +00:00
link2xt
7eeced50d1
chore(cargo): bump backtrace from 0.3.67 to 0.3.68
2023-07-04 19:19:27 +00:00
link2xt
46e127ad27
chore(cargo): bump hermit-abi from 0.3.1 to 0.3.2
...
0.3.1 is yanked
2023-07-04 16:56:19 +00:00
link2xt
4891849e28
chore: add LICENSE file to deltachat-rpc-client
...
This gets packaged into the wheel when you run `python -m build`.
2023-07-03 23:01:46 +00:00
link2xt
e0dd83d538
chore: update MPL 2.0 license text
...
New text was downloaded from https://www.mozilla.org/en-US/MPL/ ,
specifically https://www.mozilla.org/media/MPL/2.0/index.f75d2927d3c1.txt
The difference is that the URL is changed from http:// to https://
2023-07-04 00:52:31 +02:00
link2xt
aac8bb950c
chore(python): add "Topic :: Communications :: Chat" classifier
2023-07-03 22:49:14 +00:00
link2xt
bf21796bc0
chore(python): change bindings status to production/stable
2023-07-03 22:48:51 +00:00
link2xt
9cbf413064
chore(deltachat-rpc-client): add Trove classifiers
2023-07-03 21:22:10 +00:00
dependabot[bot]
1b57eb4d8d
chore(cargo): bump serde from 1.0.164 to 1.0.166
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.164 to 1.0.166.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.164...v1.0.166 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-03 20:31:10 +00:00
link2xt
5152e702bd
chore(cargo): bump num-derive from 0.3.3 to 0.4.0
2023-07-03 19:49:58 +00:00
link2xt
c80f1a1997
chore(cargo): bump toml from 0.7.4 to 0.7.5
2023-07-03 19:41:31 +00:00
link2xt
88759c815b
refactor(python): flatten the API of deltachat module
2023-07-03 16:19:31 +00:00
link2xt
9c68fac4b6
api!: make Message.text non-optional
...
Message.set_text() and Message.get_text() are modified accordingly
to accept String and return String.
Messages which previously contained None text
are now represented as messages with empty text.
Use Message.set_text("".to_string())
instead of Message.set_text(None).
2023-07-03 15:36:32 +00:00
dependabot[bot]
8e17e400b3
chore(cargo): bump uuid from 1.3.3 to 1.4.0
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.3.3 to 1.4.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.3...1.4.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-03 00:20:16 +00:00
dependabot[bot]
dae3857db8
chore(cargo): bump syn from 2.0.18 to 2.0.23
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.18 to 2.0.23.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.18...2.0.23 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 23:45:42 +00:00
dependabot[bot]
695f71e124
chore(cargo): bump strum from 0.24.1 to 0.25.0
...
Bumps [strum](https://github.com/Peternator7/strum ) from 0.24.1 to 0.25.0.
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 23:45:32 +00:00
link2xt
2d30afd212
fix: do not run simplify() on dehtml() output
...
simplify() is written to process incoming plaintext messages
and extract footers and quotes from them.
Incoming messages contain various quote styles
and simplify() implements heuristics to detects them.
If dehtml() output is processed by simplify(),
simplify() heuristics may erroneously detect
footers and quotes in produced plaintext.
dehtml() should directly detect quotes
instead of converting them to plaintext quotes
for parsing with simplify().
2023-07-02 23:12:13 +00:00
link2xt
5fe94e8bce
docs(dehtml): document AddText variants
2023-07-02 23:12:13 +00:00
link2xt
1351f71632
fix(remove_contact_from_chat): do not emit event if the contact was not removed
2023-07-02 23:00:49 +00:00
link2xt
d42322b38b
fix(remove_contact_from_chat): bubble up chat loading errors
2023-07-02 23:00:49 +00:00
link2xt
ce6876c418
fix(remove_contact_from_chat): do not ignore database errors when loading the contact
2023-07-02 23:00:49 +00:00
link2xt
2a6b7d9766
api(contact): add Contact::get_by_id_optional() API
2023-07-02 23:00:49 +00:00
link2xt
fa1924da2b
api!(contact): remove Contact::load_from_db() in favor of Contact::get_by_id()
2023-07-02 23:00:49 +00:00
link2xt
d5214eb192
refactor: check if the contact is blocked with a dedicated SQL query
...
Avoid loading unnecessary fields from the database.
2023-07-02 23:00:49 +00:00
dependabot[bot]
c47324d671
chore(cargo): bump regex from 1.8.3 to 1.8.4
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.8.3...1.8.4 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 21:49:32 +00:00
dependabot[bot]
3f8ec5ec56
chore(cargo): bump testdir from 0.7.3 to 0.8.0
...
Bumps [testdir](https://github.com/flub/testdir ) from 0.7.3 to 0.8.0.
- [Changelog](https://github.com/flub/testdir/blob/main/CHANGELOG.md )
- [Commits](https://github.com/flub/testdir/compare/v0.7.3...v0.8.0 )
---
updated-dependencies:
- dependency-name: testdir
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 21:49:23 +00:00
dependabot[bot]
fab504b54c
chore(cargo): bump url from 2.3.1 to 2.4.0
...
Bumps [url](https://github.com/servo/rust-url ) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.3.1...v2.4.0 )
---
updated-dependencies:
- dependency-name: url
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 20:25:59 +00:00
dependabot[bot]
dd32430ade
chore(cargo): bump strum_macros from 0.24.3 to 0.25.0
...
Bumps [strum_macros](https://github.com/Peternator7/strum ) from 0.24.3 to 0.25.0.
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum_macros
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 20:23:28 +00:00
link2xt
eb943625a6
chore(cargo): bump num_cpus from 1.15.0 to 1.16.0
2023-07-02 20:19:40 +00:00
dependabot[bot]
32ac4a01ca
chore(cargo): bump tempfile from 3.5.0 to 3.6.0
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.5.0 to 3.6.0.
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Stebalien/tempfile/compare/v3.5.0...v3.6.0 )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 19:36:50 +00:00
dependabot[bot]
f01a9d7d5c
chore(cargo): bump rustyline from 11.0.0 to 12.0.0
...
Bumps [rustyline](https://github.com/kkawakam/rustyline ) from 11.0.0 to 12.0.0.
- [Release notes](https://github.com/kkawakam/rustyline/releases )
- [Changelog](https://github.com/kkawakam/rustyline/blob/master/History.md )
- [Commits](https://github.com/kkawakam/rustyline/compare/v11.0.0...v12.0.0 )
---
updated-dependencies:
- dependency-name: rustyline
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 18:33:04 +00:00
dependabot[bot]
a5db7104c2
chore(cargo): bump quote from 1.0.28 to 1.0.29
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.28 to 1.0.29.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.28...1.0.29 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 18:03:20 +00:00
dependabot[bot]
18aeb14003
chore(cargo): bump quick-xml from 0.28.2 to 0.29.0
...
Bumps [quick-xml](https://github.com/tafia/quick-xml ) from 0.28.2 to 0.29.0.
- [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.28.2...v0.29.0 )
---
updated-dependencies:
- dependency-name: quick-xml
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 18:02:37 +00:00
dependabot[bot]
4ad2d6e340
chore(cargo): bump sha2 from 0.10.6 to 0.10.7
...
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.10.6 to 0.10.7.
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.6...sha2-v0.10.7 )
---
updated-dependencies:
- dependency-name: sha2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 17:40:20 +00:00
dependabot[bot]
ce9cd54993
chore(cargo): bump serde_json from 1.0.96 to 1.0.99
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.96 to 1.0.99.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.96...v1.0.99 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 15:37:55 +00:00
dependabot[bot]
23f540f9f9
chore(cargo): bump serde from 1.0.163 to 1.0.164
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.163 to 1.0.164.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 15:37:23 +00:00
dependabot[bot]
f994b2d8e4
chore(cargo): bump log from 0.4.18 to 0.4.19
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.18 to 0.4.19.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.18...0.4.19 )
---
updated-dependencies:
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 15:37:05 +00:00
dependabot[bot]
6e42b85a36
Merge pull request #4495 from deltachat/dependabot/cargo/tokio-1.29.1
2023-07-02 04:17:26 +00:00
link2xt
d69e42377d
chore(deps): update human-panic from 1.1.4 to 1.1.5
2023-07-02 01:20:35 +00:00
link2xt
de9330b52f
chore(deps): update libc from 0.2.146 to 0.2.147
2023-07-02 01:19:13 +00:00
dependabot[bot]
01d1c4c04b
chore(cargo): bump tokio from 1.29.0 to 1.29.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.29.0 to 1.29.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.29.0...tokio-1.29.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-02 01:18:16 +00:00
link2xt
7d98978269
chore: rustfmt
2023-07-02 01:17:12 +00:00
link2xt
5024f48609
refactor: add error context to Message::load_from_db()
2023-07-01 19:40:23 +00:00
link2xt
e975568122
docs: fix a typo in get_for_contact documentation
2023-07-01 19:39:50 +00:00
link2xt
1f71c69325
fix: update tokio to 1.29.0
...
This fixes panic after sending 29 offline messages.
2023-06-28 09:11:57 +00:00
Hocuri
b80ec8507c
test: reproduce tokio panic
2023-06-28 08:40:23 +00:00
link2xt
3a3f3542d9
chore: remove libm entry from deny.toml
2023-06-27 14:34:26 +00:00
link2xt
657c5fa947
chore(deps): update iana-time-zone-haiku to 0.1.2
...
This removes `cxx` dependency.
2023-06-27 14:33:34 +00:00
link2xt
7d0b25c209
chore(deps): update ed25519-dalek
2023-06-27 14:30:27 +00:00
link2xt
8d26303cad
refactor(simplify): remove local variable empty_body
2023-06-25 12:55:21 +00:00
Simon Laux
0d8a76593a
fix: make avatar image work on more platforms (use xlink:href)
...
Without it delta touch (qt) can not render the avatar image
and also inkscape does not show it either.
2023-06-22 15:42:08 +00:00
dependabot[bot]
7b49fb2eb6
chore(deps): bump openssl from 0.10.48 to 0.10.55 in /fuzz
...
Bumps [openssl](https://github.com/sfackler/rust-openssl ) from 0.10.48 to 0.10.55.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.48...openssl-v0.10.55 )
---
updated-dependencies:
- dependency-name: openssl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-22 15:32:38 +00:00
link2xt
efa37dd283
fix: preserve indentation when converting plaintext to HTML
2023-06-22 13:24:40 +00:00
link2xt
323e44da04
test: make plaintext to HTML conversion tests non-async
2023-06-22 13:24:40 +00:00
link2xt
70efd0f10a
refactor: use with statement with multiple contexts
...
Otherwise `ruff` check SIM117 fails.
2023-06-21 00:30:48 +00:00
link2xt
fcec81b4c1
chore(cargo): update openssl to 0.10.55
...
This fixes https://rustsec.org/advisories/RUSTSEC-2023-0044
2023-06-20 23:37:41 +00:00
link2xt
dd806b2d88
test: add make-python-testenv.sh script
...
This scripts makes it easy to (re)create python testing environment.
2023-06-19 16:24:03 +00:00
link2xt
5659c1b9c2
refactor: do not treat messages without headers as a special case
2023-06-19 12:00:03 +00:00
link2xt
d538d29b94
docs: document how to regenerate Node.js constants before the release
2023-06-17 14:30:11 +00:00
link2xt
b4209fac2e
ci(concourse): install venv before trying to use it
...
This is a follow-up to cbe1671104
I changed `apt-get` arguments for x86_64 glibc builds,
but forgot to change it for x86_64 musl, aarch64 glibc and aarch64 musl.
Because of this, `upload-wheels` task failed with a message:
```
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt install python3.11-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
```
2023-06-16 19:15:05 +00:00
link2xt
4d6dfa120e
docs: add missing links for 1.116.0 and 1.117.0 to the changelog
2023-06-16 17:18:04 +00:00
link2xt
f92108be1d
chore(release): prepare for 1.117.0
2023-06-16 16:42:17 +00:00
link2xt
00cb72f04d
fix(dehtml): do not insert unnecessary newlines when parsing <p> tags
...
Previously, parsing of `<p>Foo</p><p>Bar</p>`
resulted in `\n\nFoo\n\n\n\nBar\n\n`.
Now it results in `Foo\n\nBar`.
2023-06-16 16:27:14 +00:00
link2xt
92e34d67e6
chore: add openrpc.json to .gitignore
2023-06-16 14:32:09 +00:00
link2xt
65bff8339f
chore: update generated node files
2023-06-16 14:27:45 +00:00
Sebastian Klähn
768f8175e6
api(rust): Add api endpoint get_status_update ( #4468 )
...
* start
* derive default
* make some webxdc file public
* shorten code
* Add from<u32> for chatid
* reduce changes to a bare minimum
* fix nested errors
* @hocuris fixes
* fix @link2xt changes
---------
Co-authored-by: septias <xxsebastian.kleahnxx@gmail.com >
2023-06-15 15:35:57 +02:00
link2xt
c3f352aff1
fix(dehtml): skip links with empty text
2023-06-14 15:41:38 +00:00
link2xt
5ac2d1b8cb
ci: remove mergeable configuration
...
Mergeable is disabled because it was requiring
that PR title follows conventional commit notation
even when PR consisted of multiple commits
and was not planned to be squash merged.
2023-06-14 14:59:33 +00:00
link2xt
8214b2b8c1
docs: document how conventional commits interact with squash merges
2023-06-14 14:59:33 +00:00
link2xt
53ab8a3b35
fix: update to async-imap 0.9.0 to remove deprecated ouroboros dependency
...
`ouroboros` is deprecated with a security advisory recommending
switch to `self_cell` crate:
https://rustsec.org/advisories/RUSTSEC-2023-0042
async-imap 0.9.0 depends on `self_cell` instead of `ouroboros`.
2023-06-14 15:46:42 +02:00
link2xt
cbe1671104
ci(concourse): install devpi in a virtual environment
...
This commit solves the "error: externally-managed-environment"
which started appearing since Debian 12 release.
`debian` is used as an Docker image to run devpi.
2023-06-13 16:51:53 +00:00
link2xt
0d0e223238
test(python): replace legacy tmpdir fixture with tmp_path
2023-06-12 15:14:25 +00:00
Simon Laux
4767f1ce74
docs: readme remove legacy from dc-node, mark napi as experimental
2023-06-10 00:29:59 +02:00
link2xt
1a62b6d77f
refactor: rename MimeMessage.header into MimeMessage.headers
2023-06-09 22:20:46 +00:00
link2xt
915008d474
build: use 1 codegen-units for release builds
2023-06-08 16:25:14 +00:00
link2xt
9646766793
build: disable unused brotli feature "ffi-api"
2023-06-08 00:02:11 +00:00
link2xt
e948ec3256
test: regression test for case-sensitive comparison of gossip header to contact address
2023-06-07 19:50:42 +00:00
link2xt
9ab9d2eb7b
fix: ignore address case when comparing the To: field to Autocrypt-Gossip:
2023-06-07 19:50:42 +00:00
link2xt
437f8c48c4
api(python): make Contact.is_verified() return bool
2023-06-07 19:50:42 +00:00
link2xt
e6d9a49187
api: emit DC_EVENT_MSGS_CHANGED per chat when messages are deleted
2023-06-07 09:07:21 +00:00
link2xt
33a014eea4
feat: add MsgDeleted event
2023-06-07 09:07:21 +00:00
link2xt
9be871ccf6
fix: emit DC_EVENT_MSGS_CHANGED without IDs when the message expires
...
Specifying msg IDs that cannot be loaded in the event payload
results in an error when the UI tries to load the message.
Instead, emit an event without IDs
to make the UI reload the whole messagelist.
2023-06-07 09:07:21 +00:00
Sebastian Klähn
6eb8abe535
feat: new group membership update algorithm
...
New algorithm improves group consistency
in cases of missing messages,
restored old backups and replies from classic MUAs.
Co-authored-by: Hocuri <hocuri@gmx.de >
Co-authored-by: link2xt <link2xt@testrun.org >
2023-06-06 23:49:55 +00:00
link2xt
91bf87fa80
fix: update from yanked libc 0.2.145 to 0.2.146
...
https://github.com/rust-lang/libc/issues/3264
2023-06-06 22:45:17 +00:00
link2xt
a2599ef08a
ci: run cargo check with musl libc
2023-06-06 22:45:17 +00:00
link2xt
22d0a4bb32
build: use Rust 1.70.0 to compile deltachat-rpc-server releases
2023-06-06 22:45:17 +00:00
link2xt
7a160033b6
chore(release): prepare for 1.116.0
2023-06-05 19:11:07 +00:00
link2xt
3442748be7
ci: update clippy to 1.70.0
2023-06-05 18:52:30 +00:00
dependabot[bot]
d451bcfbe3
Merge pull request #4452 from deltachat/dependabot/cargo/percent-encoding-2.3.0
2023-06-05 18:51:57 +00:00
link2xt
b2993242e4
docs(python): document pytest fixtures
...
These docstrings are displayed by `pytest --fixtures`
when `deltachat` package is installed from PyPI.
2023-06-05 18:34:27 +00:00
dependabot[bot]
5eaa9eeed2
chore(cargo): bump percent-encoding from 2.2.0 to 2.3.0
...
Bumps [percent-encoding](https://github.com/servo/rust-url ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.2.0...v2.3.0 )
---
updated-dependencies:
- dependency-name: percent-encoding
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-05 11:04:55 +00:00
dependabot[bot]
3ed2ac8f0c
Merge pull request #4429 from deltachat/dependabot/cargo/uuid-1.3.3
2023-06-05 11:00:45 +00:00
dependabot[bot]
0145203f7b
Merge pull request #4432 from deltachat/dependabot/cargo/proptest-1.2.0
2023-06-05 10:29:23 +00:00
dependabot[bot]
59588b319e
cargo: bump uuid from 1.3.2 to 1.3.3
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.2...1.3.3 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-05 10:14:10 +00:00
link2xt
f917c7de6b
chore(cargo): bump criterion from 0.4.0 to 0.5.1
2023-06-05 10:12:27 +00:00
dependabot[bot]
84888fa4c4
cargo: bump proptest from 1.1.0 to 1.2.0
...
Bumps [proptest](https://github.com/proptest-rs/proptest ) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/proptest-rs/proptest/releases )
- [Changelog](https://github.com/proptest-rs/proptest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/proptest-rs/proptest/compare/v1.1.0...v1.2.0 )
---
updated-dependencies:
- dependency-name: proptest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-04 22:42:06 +00:00
link2xt
e0b1644488
ci: run node.js lint on Windows
2023-06-04 22:39:15 +00:00
link2xt
4beba8ce3c
chore(gitattributes): configure LF line endings for JavaScript files
2023-06-04 22:39:15 +00:00
dependabot[bot]
bc521a685d
chore(cargo): bump once_cell from 1.17.1 to 1.18.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.1 to 1.18.0.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.1...v1.18.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-04 18:54:12 -03:00
dependabot[bot]
33caa0f499
Merge pull request #4441 from deltachat/dependabot/cargo/tokio-1.28.2
2023-06-04 18:10:06 +00:00
dependabot[bot]
033ce41c0f
Merge pull request #4450 from deltachat/dependabot/cargo/libc-0.2.145
2023-06-04 18:09:43 +00:00
dependabot[bot]
88a62e1f6e
chore(cargo): bump libc from 0.2.142 to 0.2.145
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.142 to 0.2.145.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.142...0.2.145 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-04 14:24:50 +00:00
dependabot[bot]
dd30f6ab7d
cargo: bump tokio from 1.28.0 to 1.28.2
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.28.0 to 1.28.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.0...tokio-1.28.2 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-04 14:24:16 +00:00
dependabot[bot]
140d116d98
Merge pull request #4438 from deltachat/dependabot/cargo/chrono-0.4.26
2023-06-04 14:23:24 +00:00
dependabot[bot]
d96b783909
cargo: bump chrono from 0.4.24 to 0.4.26
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.24 to 0.4.26.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.24...v0.4.26 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-04 13:41:48 +00:00
dependabot[bot]
572c7f2efb
Merge pull request #4434 from deltachat/dependabot/cargo/base64-0.21.2
2023-06-04 13:40:51 +00:00
link2xt
bcd6c226f6
ci: document why node prebuilds are built in a container
2023-06-04 13:30:24 +00:00
link2xt
bae61746f8
fix: build deltachat-node prebuilds on Debian 10
...
This reduces glibc version requirement
and makes sure it does not increase
as Ubuntu version on CI runners is updated.
2023-06-04 12:35:12 +00:00
dependabot[bot]
31f2766074
cargo: bump base64 from 0.21.0 to 0.21.2
...
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.21.0 to 0.21.2.
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.21.0...v0.21.2 )
---
updated-dependencies:
- dependency-name: base64
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-04 10:33:01 +00:00
link2xt
b06c8baa9c
chore(cargo): bump pretty_env_logger from 0.4.0 to 0.5.0
2023-06-04 10:31:29 +00:00
dependabot[bot]
1e479fe4a3
Merge pull request #4431 from deltachat/dependabot/cargo/serde-1.0.163
2023-06-04 09:13:42 +00:00
link2xt
8ea8ee02ed
ci: add top comments to GH Actions workflows
2023-06-02 20:19:57 +00:00
link2xt
55bc556bcf
ci: use working-directory instead of cd command
2023-06-02 17:00:27 +00:00
link2xt
3b6d21301b
ci: remove broken node-delete-preview.yml workflow
...
Old previews should be deleted by the cronjob
running on the `download.delta.chat` server.
2023-06-02 16:50:15 +00:00
dependabot[bot]
472195c7d9
cargo: bump serde from 1.0.160 to 1.0.163
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.160 to 1.0.163.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.160...v1.0.163 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-02 15:26:34 +00:00
dependabot[bot]
afb8b5ce55
Merge pull request #4435 from deltachat/dependabot/cargo/toml-0.7.4
2023-06-02 15:25:40 +00:00
dependabot[bot]
de3c82ef43
cargo: bump toml from 0.7.3 to 0.7.4
...
Bumps [toml](https://github.com/toml-rs/toml ) from 0.7.3 to 0.7.4.
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.7.3...toml-v0.7.4 )
---
updated-dependencies:
- dependency-name: toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-02 13:49:25 +00:00
dependabot[bot]
4255ae4c2d
cargo: bump log from 0.4.17 to 0.4.18
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.17 to 0.4.18.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.17...0.4.18 )
---
updated-dependencies:
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-02 12:28:21 +00:00
dependabot[bot]
4b4e2f700e
Merge pull request #4437 from deltachat/dependabot/cargo/syn-2.0.18
2023-06-02 12:27:32 +00:00
dependabot[bot]
81fde5c680
Merge pull request #4436 from deltachat/dependabot/cargo/reqwest-0.11.18
2023-06-02 12:26:56 +00:00
dependabot[bot]
5340a7d033
cargo: bump syn from 2.0.15 to 2.0.18
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.15 to 2.0.18.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.15...2.0.18 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-02 10:31:52 +00:00
dependabot[bot]
fc82d728fc
cargo: bump reqwest from 0.11.17 to 0.11.18
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.17 to 0.11.18.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.17...v0.11.18 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-06-02 10:31:34 +00:00
link2xt
136e9179e9
ci(dependabot): use chore prefix for dependency updates
2023-06-02 10:30:34 +00:00
link2xt
31e19ca56c
chore(cargo): bump regex from 1.8.1 to 1.8.3
2023-06-02 10:28:58 +00:00
link2xt
f2b02b7bb0
docs: document how to get Concourse CI secrets from pass
2023-06-01 19:50:42 +00:00
link2xt
646ace8e7a
chore: add link to the changelog
2023-06-01 12:54:12 +00:00
link2xt
a2495716b6
Merge tag 'v1.112.10'
2023-06-01 12:53:10 +00:00
link2xt
0f579c6415
chore(release): prepare for 1.112.10
2023-06-01 12:49:20 +00:00
link2xt
3eddc9164c
fix: disable fetch_existing_msgs setting by default
...
This caused too many problems after switching
the default setting for `show_emails`
from DC_SHOW_EMAILS_OFF to DC_SHOW_EMAILS_ALL
in <https://github.com/deltachat/deltachat-core-rust/pull/4019 >
There is a topic <https://support.delta.chat/t/setting-no-chats-only-for-show-classic-e-mails-showing-classic-emails/2481 >
on the forum with multiple requests to revert this setting
due to old emails being downloaded.
2023-06-01 11:11:36 +00:00
link2xt
dd29fae49b
fix: update h2 to fix RUSTSEC-2023-0034
2023-05-31 19:00:20 +00:00
Franz Heinzmann (Frando)
5b435d11c7
feat(jsonrpc): generate OpenRPC definitions
...
When running `cargo test` in the deltachat-jsonrpc folder,
a new file `openrpc/openrpc.json` will be created with an
[OpenRPC](https://spec.open-rpc.org/ ) definition.
It can be copy-pasted into the
[OpenRPC playground](https://playground.open-rpc.org/ )
and used to generate clients in other languages.
2023-05-21 22:11:07 +00:00
Hocuri
b9b0d20e8d
test: Add golden tests infrastructure ( #4395 )
2023-05-21 22:10:33 +00:00
link2xt
c68a2e3820
ci: require Python 3.8 for deltachat-rpc-client
...
With Python 3.7 asynchronous tests randomly fail
with "RuntimeError: Event loop is closed" during shutdown.
Backtrace of the error includes `SafeChildWatcher` calls.
Python 3.8 has replaced `SafeChildWatcher`
with a new `ThreadedChildWatcher` by default [1]
as a bugfix for
"asyncio.create_subprocess_exec() only works with main event loop" bug [2].
Python 3.7 scheduled end of life is 2023-06-27
according to <https://devguide.python.org/versions/ >.
[1] https://github.com/python/cpython/pull/14344
[2] https://bugs.python.org/issue35621
2023-05-21 13:08:03 +00:00
link2xt
c7ad0b1f4f
test: make test_group_with_removed_message_id less flaky
...
It failed in CI once, apparently
because "Gr." was generated inside the group ID.
2023-05-21 11:50:41 +00:00
link2xt
0dd9e3a77e
docs: add contributing guidelines
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2023-05-20 10:34:02 +00:00
link2xt
d27e3d085e
ci: remove incorrect comment
2023-05-19 11:03:26 +00:00
link2xt
10b2aa5350
chore: remove release.toml
...
We are not using cargo-release at the moment.
2023-05-19 09:25:27 +00:00
link2xt
3a29a555bf
test(python): make test_mdn_asymmetric less flaky
...
Normally the message has UID 1,
but this is not true when account is reused.
In this case the message may be
"Marked messages 2 in folder DeltaChat as seen."
and the test times out waiting for
"Marked messages 1 in folder DeltaChat as seen."
2023-05-18 18:39:40 +00:00
link2xt
f024f396bf
docs: document release process in RELEASE.md
2023-05-17 10:53:26 +00:00
link2xt
24d52c5909
build(set_core_version.py): expect release date in the changelog
...
git-cliff adds the date to the changelog automatically,
so set_core_version.py only needs to check that the date is in place.
2023-05-16 22:47:28 +00:00
link2xt
f9dc8edbcb
feat: add more context to message loading errors
2023-05-16 19:40:38 +00:00
link2xt
2e6f98f4e4
api: add dc_jsonrpc_blocking_call()
2023-05-15 19:55:13 +00:00
link2xt
50431d8cfe
build(git-cliff): add "Documentation" section
2023-05-15 15:34:16 +00:00
link2xt
55fcd589db
build(git-cliff): put "ci" commits into "CI" section of changelog
2023-05-15 15:34:16 +00:00
link2xt
081178d623
ci(mergeable): allow PR titles to start with "ci" and "build"
2023-05-15 15:34:16 +00:00
link2xt
92d5857150
build(git-cliff): update the link to configuration documentation
2023-05-15 15:34:16 +00:00
link2xt
bb45c249a3
build(git-cliff): add unconventional commits to "Other" section
2023-05-15 15:34:16 +00:00
link2xt
8796e0472a
build(git-cliff): add scope to changelog entries
2023-05-15 15:34:16 +00:00
link2xt
3bd16ba045
build(git-cliff): add "Build system" section
2023-05-15 15:34:16 +00:00
link2xt
4b7ff6f003
build(git-cliff): add period at the end of changelog entry titles
...
Make it consistent with the rest of the changelog.
2023-05-15 15:34:16 +00:00
link2xt
53449ea5b3
build(git-cliff): remove git-cliff footer
2023-05-15 15:34:16 +00:00
link2xt
3b381c4862
docs: update instructions for python devenv
2023-05-15 15:33:26 +00:00
link2xt
ce729263a5
chore(release): prepare for v1.115.0
2023-05-13 18:45:51 +00:00
link2xt
67480999c0
feat: do not cut incoming text if "bot" config is set
2023-05-13 15:53:48 +00:00
Simon Laux
fb8b9f60ce
api: jsonrpc: new MessageReadReceipt type and get_message_read_receipts(account_id, message_id) jsonrpc method
2023-05-12 16:32:52 +02:00
Simon Laux
9ed36d4e05
api: rust: add get_msg_read_receipts(context, msg_id) - get the contacts that send read receipts for a message
2023-05-12 16:32:52 +02:00
link2xt
e3c01d76c4
fix: do not return an error from send_msg_to_smtp if retry limit is exceeded
...
This prevents sending the other messages for which the limit was not exceeded.
2023-05-12 13:26:37 +00:00
link2xt
cb7f96449d
Merge tag 'v1.112.9' into 'master'
2023-05-12 11:35:30 +00:00
link2xt
e4f4dacaf0
chore(release): prepare for 1.112.9
2023-05-12 11:17:54 +00:00
link2xt
9fc1fe74ad
fix: delete smtp rows when message sending is cancelled
2023-05-12 11:17:23 +00:00
link2xt
991089d98e
feat: improve SMTP logging
2023-05-12 10:07:55 +00:00
link2xt
c7a250da31
fix: fetch at most 100 existing messages even if EXISTS was not received
...
According to RFC 3501, EXISTS must always be sent in response to SELECT.
But if the server does not send it for some reason,
async-imap uses the default value, so we will essentially fetch `1:*`
and downloading all messages may take a long time.
2023-05-12 10:07:29 +00:00
link2xt
c5b6bad956
fix: recreate smtp table with AUTOINCREMENT
...
This ensures the rows cannot be confused accidentally
when referred by row_id.
2023-05-12 09:53:58 +00:00
link2xt
c4534ff621
feat: improve SMTP logging
2023-05-12 09:53:32 +00:00
Hocuri
b2c299fa82
fix: Don't put a double dot at the end of error messages ( #4398 )
2023-05-11 18:43:22 +02:00
link2xt
68aa15950a
fix: fix PR URL template in git-cliff configuration ( #4396 )
2023-05-11 17:43:52 +02:00
Asiel Díaz Benítez
4a593a8d7e
api!:jsonrpc: sort reactions in descending order ( #4388 )
...
convert `JSONRPCReactions.reactions` to a `Vec<JSONRPCReaction>` with unique reactions and their count, sorted in descending order.
---------
Co-authored-by: link2xt <link2xt@testrun.org >
2023-05-11 08:29:43 -04:00
Hocuri
2328ba54be
feat: Generate our changelogs using git-cliff ( #4393 )
2023-05-10 18:18:42 +02:00
link2xt
e216dfd655
fix: delete smtp rows when message sending is cancelled
2023-05-10 16:08:00 +00:00
link2xt
86472aba2c
refactor: iterate over msg_ids without .iter()
2023-05-10 14:32:38 +00:00
link2xt
15ce54edfb
Update set_core_version.py with new release process
2023-05-10 12:00:14 +00:00
Sebastian Klähn
b7bbb3ee9a
Allow sending a raw webxdc status update ( #4386 )
...
- create new api endpoint
Co-authored-by: bjoern <r10s@b44t.com >
* renaming function
---------
Co-authored-by: septias <xxsebastian.kleahnxx@gmail.com >
Co-authored-by: bjoern <r10s@b44t.com >
2023-05-09 21:15:09 +02:00
link2xt
d3236e79fd
fix: fetch at most 100 existing messages even if EXISTS was not received
...
According to RFC 3501, EXISTS must always be sent in response to SELECT.
But if the server does not send it for some reason,
async-imap uses the default value, so we will essentially fetch `1:*`
and downloading all messages may take a long time.
2023-05-09 10:56:01 +00:00
Simon Laux
aa212b2b7e
jsonrpc: MessageSearchResult, always include chat_name(not an option anymore), also add author_id and chat_type ( #4374 )
...
* jsonrpc: `MessageSearchResult`, always include `chat_name`(not an option anymore), also add `author_id` and `chat_type`
* replace .ok_or_else with anyhow context
2023-05-09 10:22:32 +00:00
Simon Laux
a0c51b3c3a
fix: jsonrpc: typescript client: fix types of events in event emitter ( #4373 )
...
* fix: jsonrpc: typescript client: fix types of events in event emitter
* add ts ignore to remove ts error (when building in ts5)
doing the types right via casting is to complicated IMO and has no real benefit here.
2023-05-09 09:57:49 +00:00
link2xt
e50d7724e3
feat: build deltachat-rpc-server releases for x86_64 macOS
2023-05-08 19:04:38 +00:00
meganoahj
0d30e66dda
add thumbnail for image in chatlist item ( #4311 )
...
* add thumbnail for image in chatlist item
* added preview for stickers and gifs also
* added last_message_type and last_message_id to ChatListItemFetchResult
addresses link2ext comment
* code optimization
fixes:
https://github.com/deltachat/deltachat-core-rust/pull/4311#discussion_r1162791672
* code formatting
* fix clippy
* add changelog entry
---------
Co-authored-by: meganoahj <s3ccg@testrun.org >
Co-authored-by: Simon Laux <mobile.info@simonlaux.de >
2023-05-08 19:44:43 +02:00
Asiel Díaz Benítez
5c3df7e452
jsonrpc: use camel-case for Event struct and move events.rs to types folder ( #4372 )
...
* use camel-case for Event struct and move events.rs to types folder
---------
Co-authored-by: link2xt <link2xt@testrun.org >
2023-05-08 06:49:19 -04:00
dependabot[bot]
3efbe5b1ef
cargo: bump regex from 1.7.3 to 1.8.1 ( #4361 )
2023-05-07 13:31:29 +00:00
dependabot[bot]
52cfba06ea
Merge pull request #4356 from deltachat/dependabot/cargo/dirs-5.0.1
2023-05-06 17:58:24 +00:00
dependabot[bot]
afba63603e
cargo: bump dirs from 5.0.0 to 5.0.1
...
Bumps [dirs](https://github.com/soc/dirs-rs ) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/soc/dirs-rs/releases )
- [Commits](https://github.com/soc/dirs-rs/commits )
---
updated-dependencies:
- dependency-name: dirs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-06 11:36:44 +00:00
dependabot[bot]
3a25d6a44e
Merge pull request #4362 from deltachat/dependabot/cargo/human-panic-1.1.4
2023-05-06 11:35:30 +00:00
dependabot[bot]
0688895022
Merge pull request #4360 from deltachat/dependabot/cargo/axum-0.6.18
2023-05-05 21:35:26 +00:00
dependabot[bot]
ce0e5416e6
cargo: bump human-panic from 1.1.3 to 1.1.4
...
Bumps [human-panic](https://github.com/rust-cli/human-panic ) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/rust-cli/human-panic/releases )
- [Changelog](https://github.com/rust-cli/human-panic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/human-panic/compare/v1.1.3...v1.1.4 )
---
updated-dependencies:
- dependency-name: human-panic
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-05 21:24:47 +00:00
link2xt
7918a6801e
scripts/deny.sh: update package cache before running cargo deny
2023-05-05 21:23:10 +00:00
link2xt
6af631e8df
Add JSON-RPC API to get reactions
2023-05-05 20:49:55 +00:00
dependabot[bot]
625ecaa9b5
cargo: bump axum from 0.6.12 to 0.6.18
...
Bumps [axum](https://github.com/tokio-rs/axum ) from 0.6.12 to 0.6.18.
- [Release notes](https://github.com/tokio-rs/axum/releases )
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.6.12...axum-v0.6.18 )
---
updated-dependencies:
- dependency-name: axum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-05 20:31:03 +00:00
dependabot[bot]
24fe1b9c15
Merge pull request #4364 from deltachat/dependabot/cargo/tokio-1.28.0
2023-05-05 20:29:57 +00:00
link2xt
ba36d09c70
Make the bots automatically accept group chat contact requests
2023-05-05 16:37:34 +00:00
link2xt
f57be7187e
Update deny.toml
2023-05-05 13:23:44 +00:00
dependabot[bot]
6a00338f79
cargo: bump tokio from 1.27.0 to 1.28.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.27.0 to 1.28.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.27.0...tokio-1.28.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-05 10:48:24 +00:00
dependabot[bot]
16906210e1
Merge pull request #4354 from deltachat/dependabot/cargo/tokio-util-0.7.8
2023-05-05 10:47:12 +00:00
dependabot[bot]
f9b4540387
Merge pull request #4358 from deltachat/dependabot/cargo/syn-2.0.15
2023-05-05 10:46:48 +00:00
dependabot[bot]
9755438d0d
Merge pull request #4366 from deltachat/dependabot/cargo/serde-1.0.160
2023-05-05 10:44:58 +00:00
dependabot[bot]
fe9534ed7d
cargo: bump serde from 1.0.159 to 1.0.160
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.159 to 1.0.160.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.159...v1.0.160 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-03 10:55:01 +00:00
dependabot[bot]
134c9ada68
cargo: bump syn from 2.0.13 to 2.0.15
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.13 to 2.0.15.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.13...2.0.15 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-03 10:54:57 +00:00
dependabot[bot]
a3240452ff
cargo: bump tokio-util from 0.7.7 to 0.7.8
...
Bumps [tokio-util](https://github.com/tokio-rs/tokio ) from 0.7.7 to 0.7.8.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-util-0.7.7...tokio-util-0.7.8 )
---
updated-dependencies:
- dependency-name: tokio-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-03 10:54:42 +00:00
dependabot[bot]
84beb6647d
Merge pull request #4357 from deltachat/dependabot/cargo/serde_json-1.0.96
2023-05-03 10:53:51 +00:00
dependabot[bot]
ecf7e2d909
Merge pull request #4359 from deltachat/dependabot/cargo/libc-0.2.142
2023-05-03 10:10:06 +00:00
dependabot[bot]
fcfcf4bbf3
Merge pull request #4365 from deltachat/dependabot/cargo/quick-xml-0.28.2
2023-05-03 10:09:37 +00:00
dependabot[bot]
c62b6d77b7
Merge pull request #4368 from deltachat/dependabot/cargo/anyhow-1.0.71
2023-05-03 10:09:14 +00:00
dependabot[bot]
7e51b9686f
cargo: bump quick-xml from 0.28.1 to 0.28.2
...
Bumps [quick-xml](https://github.com/tafia/quick-xml ) from 0.28.1 to 0.28.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.28.1...v0.28.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 >
2023-05-03 01:54:26 +00:00
dependabot[bot]
542ec4cac4
cargo: bump anyhow from 1.0.70 to 1.0.71
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.70 to 1.0.71.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.70...1.0.71 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-03 01:54:07 +00:00
dependabot[bot]
64b25d9ec0
cargo: bump serde_json from 1.0.95 to 1.0.96
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.95 to 1.0.96.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.95...v1.0.96 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-03 01:54:04 +00:00
dependabot[bot]
f91b6fbdf0
Merge pull request #4363 from deltachat/dependabot/cargo/reqwest-0.11.17
2023-05-03 01:53:12 +00:00
dependabot[bot]
41445a506e
Merge pull request #4369 from deltachat/dependabot/cargo/futures-lite-1.13.0
2023-05-03 01:52:22 +00:00
dependabot[bot]
798db9d019
Merge pull request #4367 from deltachat/dependabot/cargo/tokio-stream-0.1.14
2023-05-02 23:48:34 +00:00
dependabot[bot]
2e860c32ab
Merge pull request #4355 from deltachat/dependabot/cargo/uuid-1.3.2
2023-05-02 23:46:59 +00:00
dependabot[bot]
0e1faed6e5
cargo: bump futures-lite from 1.12.0 to 1.13.0
...
Bumps [futures-lite](https://github.com/smol-rs/futures-lite ) from 1.12.0 to 1.13.0.
- [Release notes](https://github.com/smol-rs/futures-lite/releases )
- [Changelog](https://github.com/smol-rs/futures-lite/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/futures-lite/compare/v1.12.0...v1.13.0 )
---
updated-dependencies:
- dependency-name: futures-lite
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-01 22:03:16 +00:00
dependabot[bot]
f5de3be977
cargo: bump tokio-stream from 0.1.12 to 0.1.14
...
Bumps [tokio-stream](https://github.com/tokio-rs/tokio ) from 0.1.12 to 0.1.14.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Changelog](https://github.com/tokio-rs/tokio/blob/tokio-0.1.14/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-stream-0.1.12...tokio-0.1.14 )
---
updated-dependencies:
- dependency-name: tokio-stream
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-01 22:02:36 +00:00
dependabot[bot]
4b0a30eb66
cargo: bump reqwest from 0.11.16 to 0.11.17
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.16 to 0.11.17.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.16...v0.11.17 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-01 22:00:52 +00:00
dependabot[bot]
7710467571
cargo: bump libc from 0.2.140 to 0.2.142
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.140 to 0.2.142.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.140...0.2.142 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-01 21:59:05 +00:00
dependabot[bot]
1687794b81
cargo: bump uuid from 1.3.0 to 1.3.2
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.3.0 to 1.3.2.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.3.0...1.3.2 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-05-01 21:57:42 +00:00
link2xt
158541f05c
Document deltachat_rpc_client installation
2023-04-29 13:53:57 +00:00
link2xt
eb28899cd0
Add 1.112.8 link to the changelog
2023-04-27 10:28:38 +00:00
link2xt
432046225a
Fix 1.114.0 link in the changelog
2023-04-27 10:27:39 +00:00
Simon Laux
bf958ce6c1
More context for chat and chatlist errors ( #3932 )
2023-04-25 17:20:26 -04:00
Simon Laux
ea8ee4e67d
jsonrpc: Remove message id from chatlist item ( #3071 )
...
Why? because desktop currently fetches the chatlist multiple times, even though it just needs the
chatlistitem for one chat.
Note: @r10s was worried before that exposing the method to get a single updated chatlistitem could
lead to race conditions where the chatlist item is newer than the chatlist order. But I don't think
this will change anything for desktop besides making it a little faster (because currently desktop
fetches the whole chatlist instead of just the entry it needs when an entry updates).
2023-04-25 17:20:26 -04:00
link2xt
edfdbbdc90
Release 1.114.0
2023-04-24 22:31:17 +00:00
Simon Laux
1b8bfef441
jsonrpc: make event loop in ts client optional ( #4347 )
...
* jsonrpc: make event loop in ts client optional
* jsonrpc: ts: fix tests and make specifying `startEventLoop` mandatory
* add changelog entry
* Update CHANGELOG.md
2023-04-24 23:18:55 +02:00
link2xt
514074de8b
JSON-RPC: retrieve events via long polling
...
This way is more compatible to JSON-RPC libraries
that do not support receiving notifications from the server
and allows describing event types in the OpenRPC specification.
Event thread converting events to notifications in the FFI
is removed, so it is now possible to construct a dc_jsonrpc_instance_t
while still retrieving events via dc_event_emitter_t.
2023-04-22 16:42:59 +00:00
link2xt
e7aab5c67c
Remove newline from release-date.in
2023-04-20 15:40:09 +00:00
link2xt
40484e875e
deltachat-ffi: update read_url_blob for new .log_err()
2023-04-20 15:23:20 +00:00
link2xt
fc215ceb63
Merge v1.112.8
2023-04-20 15:09:55 +00:00
link2xt
2701c135db
Prepare 1.112.8
2023-04-20 15:05:07 +00:00
link2xt
3a8df3e673
Do not use println! in JSON-RPC
...
This may break the output of deltachat-rpc-server
2023-04-20 14:15:18 +00:00
link2xt
fa95b269a5
Backport new set_core_version.py
2023-04-20 14:03:47 +00:00
B. Petersen
0e9f8c4726
describe dc_http_response_t, needed for doxygen's @memberof
2023-04-20 14:01:14 +00:00
link2xt
a8d4cbd5c1
Add C API to get HTTP responses
2023-04-20 14:01:14 +00:00
link2xt
f68a2fc387
JSON-RPC: return mimetype and encoding for HTTP blobs
2023-04-20 14:00:16 +00:00
link2xt
ede4e8109e
Release 1.113.0
2023-04-18 18:54:41 +00:00
link2xt
663df6bdfd
Replace 404 link with a web archive version
2023-04-18 18:53:39 +00:00
link2xt
d97bdd9fd0
Add more links to configure documentation
2023-04-18 18:53:39 +00:00
Hocuri
a806a218bf
Clippy; remove forgotten dbg! ( #4338 )
2023-04-18 18:52:01 +00:00
link2xt
903633f422
Add regression test
2023-04-18 16:39:19 +00:00
link2xt
3c774b02e5
Only reset status to "" if a text/plain part without signature is received
...
Otherwise sending a message without plaintext part
resets the signature. It is particularly dangerous
in multidevice case, because it's easy to accidentally
reset the signature on your other device with a non-text message.
2023-04-18 16:39:19 +00:00
iequidoo
4aae48b0a1
Gracefully terminate deltachat-rpc-server on ctrl-c and SIGTERM ( #4323 )
2023-04-18 12:10:39 -04:00
iequidoo
a8b790a5db
deltachat-rpc-server: Drop Accounts object when terminating ( #4323 )
...
Otherwise it continues to keep the sender side of the event emitter which prevents events_task from
stopping.
2023-04-18 12:10:39 -04:00
Hocuri
6a6ceb6875
Add send_recv() to test_utils.rs
...
link2xt approved orally
2023-04-18 16:08:19 +02:00
link2xt
37503dd3e8
JSON-RPC: add get_http_blob API
2023-04-18 13:50:50 +00:00
link2xt
3f615c8de6
Update h2 from 0.3.17 to 0.3.18
...
Version 0.3.17 is yanked.
2023-04-18 11:05:59 +00:00
link2xt
2ef5f2eb52
scheduler: use oneshot channel for "started" notifications
...
The senders are not used more than once.
2023-04-17 17:41:33 +00:00
link2xt
f267f6f756
Move event payloads to a submodule
2023-04-17 17:41:00 +00:00
link2xt
538db53887
accounts: comment fixes
2023-04-17 16:20:21 +00:00
link2xt
21349abed8
Fix newlines with prettier
2023-04-17 16:07:05 +00:00
link2xt
d2fb2bb2ca
Merge 1.112.7 into master
2023-04-17 15:24:15 +00:00
link2xt
0b832fb9de
Prepare 1.112.7
2023-04-17 15:18:37 +00:00
link2xt
179b9ba2cb
Update to released async-imap 0.8.0
...
It fixes important bug in `ensure_capacity()` that
sometimes resulted in erroneous detection of EOF in IMAP response.
2023-04-17 10:50:13 +00:00
link2xt
9150e9fb38
Update crossbeam-channel from 0.5.7 to 0.5.8
...
0.5.7 is yanked.
2023-04-17 10:48:35 +00:00
link2xt
4716fcef94
Use sync RwLock for debug_logging
...
This avoids the need for potentially expensive block_in_place(),
but is unlikely to actually block the thread as holding write lock is rare.
2023-04-16 19:58:19 +00:00
link2xt
2b7ee85e30
debug_logging: use Context.emit_event()
2023-04-16 19:58:19 +00:00
link2xt
2b8888350b
Debug logging refactoring
...
Move DebugLogging into debug logging module.
Remove Context.send_log_event().
Use blocking_read() instead of try_read() to
get read lock on debug_logging() in synchronous code.
Do not try to log events while holding a lock
on DebugLogging.
2023-04-16 19:58:19 +00:00
iequidoo
4dfe34eedc
fix review comments
2023-04-16 15:32:36 -04:00
iequidoo
430a71288f
Reduce + recode images to JPEG if they are too huge ( #3956 )
...
I.e. > 500K for the balanced media quality and 130K for the worse one. This can remove animation and
transparency from PNG/WebP, but then a user always can send an image as a file.
Also don't reduce wide/high images if they aren't huge. Among other benefits, this way most of PNG
screenshots aren't touched.
Also remove Exif from all images, not from JPEGs only.
2023-04-16 15:32:36 -04:00
iequidoo
350509d5d1
Remove metadata from avatars and JPEG images before sending ( #4027 )
...
If there's an Exif, rewrite the file to remove it. This implies recoding now though.
2023-04-16 15:32:36 -04:00
link2xt
5403fd849c
Comment fixes
2023-04-16 00:47:01 +00:00
link2xt
fa87d2e225
New APIs for message processing loops
...
This patch adds new C APIs
dc_get_next_msgs() and dc_wait_next_msgs(),
and their JSON-RPC counterparts
get_next_msgs() and wait_next_msgs().
New configuration "last_msg_id"
tracks the last message ID processed by the bot.
get_next_msgs() returns message IDs above
the "last_msg_id".
wait_next_msgs() waits for new message notification
and calls get_next_msgs().
wait_next_msgs() can be used to build
a separate message processing loop
independent of the event loop.
Async Python API get_fresh_messages_in_arrival_order()
is deprecated in favor of get_next_messages().
Introduced Python APIs:
- Account.wait_next_incoming_message()
- Message.is_from_self()
- Message.is_from_device()
Introduced Rust APIs:
- Context.set_config_u32()
- Context.get_config_u32()
2023-04-15 21:27:45 +00:00
link2xt
28a13e98a6
Add JSON-RPC API can_send()
2023-04-14 21:09:32 +00:00
link2xt
b369a30544
Pass scripts/run-python-test.sh arguments to pytest
2023-04-14 16:24:08 +00:00
link2xt
318ed4e6e1
Fix pip install argument in python README
...
Attempt to run `pip install python` will
fail trying to install package from PyPI.
2023-04-14 16:23:34 +00:00
Hocuri
c6a64e8d93
Don't let blocking be bypassed using groups ( #4316 )
...
* Don't let blocking be bypassed using groups
Fix #4313
* Fix another bug: A blocked group was sometimes not unblocked when an unblocked contact sent a message into it.
2023-04-13 22:45:47 +02:00
dependabot[bot]
efd6937dfa
Merge pull request #4321 from deltachat/dependabot/cargo/fuzz/h2-0.3.17
2023-04-13 20:09:29 +00:00
dependabot[bot]
36bf1fe3f6
Merge pull request #4322 from deltachat/dependabot/cargo/h2-0.3.17
2023-04-13 20:09:17 +00:00
dependabot[bot]
4da0e9ac64
cargo: bump h2 from 0.3.16 to 0.3.17
...
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.16 to 0.3.17.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.16...v0.3.17 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-13 17:07:57 +00:00
dependabot[bot]
436766f002
build(deps): bump h2 from 0.3.15 to 0.3.17 in /fuzz
...
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.15 to 0.3.17.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.15...v0.3.17 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-13 17:04:54 +00:00
Hocuri
d4f2507288
Remove confusing log "ignoring unsolicited response Recent(…)" ( #3934 )
...
It doesn't seem to add value and gives the impression that something
went wrong.
2023-04-13 16:27:25 +00:00
Hocuri
28fd27476f
Small verification fixes ( #4317 )
...
* Small performance improvement by not unnecessarily loading the peerstate
* Remove wrong info message "{contact} verified" when scanning a QR code with just an email
I think that this was a bug in the original C code and then slipped
through two refactorings.
2023-04-13 16:14:23 +00:00
link2xt
619b849ce7
sql: cleanup usage of ToSql
...
Moved custom ToSql trait including Send + Sync from lib.rs to sql.rs.
Replaced most params! and paramsv! macro usage with tuples.
Replaced paramsv! and params_iterv! with params_slice!,
because there is no need to construct a vector.
2023-04-13 12:48:00 +00:00
iequidoo
f1eeb1df8c
Cleanly terminate deltachat-rpc-server ( #4234 )
...
Do it as per "Thread safety" section in deltachat-ffi/deltachat.h. Also terminate on ctrl-c.
2023-04-12 17:20:42 -04:00
link2xt
cecc080931
Update crossbeam-channel to 0.5.8
...
0.5.7 is yanked
2023-04-11 18:45:37 +00:00
link2xt
11e6a325a2
ci: remove references to nonexistent matrix.rust
2023-04-08 18:27:35 +00:00
Sebastian Klähn
eed8e08145
Protect against RTLO attacks ( #3609 )
...
Protect against RTLO attackts
2023-04-07 08:36:37 +00:00
iequidoo
36bec9c295
Update "accounts.toml" atomically ( #4295 )
2023-04-06 22:52:25 -04:00
iequidoo
c8988f5a55
maybe_add_time_based_warnings(): Use release date instead of the provider DB update one ( #4213 )
...
bjoern <r10s@b44t.com > wrote:
> maybe_add_time_based_warnings() requires some date guaranteed to be in the near past. based on
this known date we check if the system clock is wrong (if earlier than known date) and if the used
Delta Chat version may be outdated (1 year passed since known date). while this does not catch all
situations, it catches quite some errors with comparable few effort.
>
> figuring out the date guaranteed to be in the near past is a bit tricky. that time, we added
get_provider_update_timestamp() for exactly that purpose - it is checked manually by some dev and
updated from time to time, usually before a release.
>
> however, meanwhile, the provider-db gets updated less frequently - things might be settled a bit
more - and, get_provider_update_timestamp() was also changed to return the date of the last commit,
instead of last run. while that seem to be more on-purpose, we cannot even do an “empty” database
update to update the known date.
>
> as get_provider_update_timestamp() is not used for anything else, maybe we should completely
remove that function and replace it by get_last_release_timestamp that is then updated by
./scripts/set_core_version.py - the result of that is reviewed manually anyway, so that seems to be
a good place (i prefer manual review here and mistrust further automation as also dev or ci clocks
may be wrong :)
2023-04-06 22:00:02 -04:00
Floris Bruynooghe
86c18fb3ae
ref: More logging for ongoing and get_backup ( #4289 )
...
This adds a few log items for imex::transfer::get_backup and the
ongoing process to give some more insights.
IO is now also paused after the ongoing process is allocated in
get_backup to avoid needlessly pausing IO.
2023-04-04 18:11:45 +02:00
link2xt
2ba4381c39
Merge branch 'stable-1.112' into 'master'
2023-04-04 15:01:37 +00:00
link2xt
185a0193cc
Fix newline at the end of package.json
2023-04-04 16:47:25 +02:00
B. Petersen
1b00334281
bump version to 1.112.6
2023-04-04 16:47:25 +02:00
B. Petersen
0eb2f5bf52
fix some CHANGELOG typos
2023-04-04 16:47:25 +02:00
B. Petersen
78d1aa46a1
update changelog for 1.112.6
2023-04-04 16:47:25 +02:00
link2xt
26403a1599
Update spin from 0.9.7 to 0.9.8
...
`spin` 0.9.7 is yanked: https://rustsec.org/advisories/RUSTSEC-2023-0031
2023-04-04 12:54:23 +00:00
B. Petersen
a1f112470e
add a device message when backup transfer ends
...
that way, UI can just close the transfer dialog,
so that, at the end, both devices end in the chatlist.
we can also use this for troubleshooting -
if the device message is not present,
transfer did not succeed completely.
(a separate device message may be nice in that case -
but that is another effort,
same for making the device message reappear after deletion
or after some time)
2023-04-04 14:17:26 +02:00
dependabot[bot]
2ab7a37d85
Merge pull request #4297 from deltachat/dependabot/cargo/iroh-0.4.1
2023-04-04 09:02:11 +00:00
link2xt
4b933ed2ef
Update to iroh 0.4.1
2023-04-04 09:00:19 +00:00
dependabot[bot]
0d1c12115d
Merge pull request #4298 from deltachat/dependabot/cargo/fast-socks5-0.8.2
2023-04-04 08:34:30 +00:00
link2xt
3bced80b23
imap: use try_next() to avoid the need to transpose Option and Result
2023-04-04 08:23:37 +00:00
link2xt
f46f3e939e
clippy fix
2023-04-04 09:50:42 +02:00
B. Petersen
9d8e836fdd
show some text instead of nothing on empty quota list
...
some providers say that they support QUOTA in the IMAP CAPABILITY,
but return an empty list without any quota information then.
in our "Connectivity", this looks a bit of an error.
i have not seen this error often - only for testrun.org -
if it is usual, we could also just say "not supported"
(as we do in case QUOTA is not returned).
a translations seems not to be needed for now,
it seems unusual, and all other errors are not translated as well.
2023-04-04 09:50:42 +02:00
dependabot[bot]
132d34db5c
cargo: bump fast-socks5 from 0.8.1 to 0.8.2
...
Bumps [fast-socks5](https://github.com/dizda/fast-socks5 ) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/dizda/fast-socks5/releases )
- [Commits](https://github.com/dizda/fast-socks5/compare/v0.8.1...v0.8.2 )
---
updated-dependencies:
- dependency-name: fast-socks5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-03 22:22:51 +00:00
dependabot[bot]
16edb7b35a
cargo: bump iroh from 0.4.0 to 0.4.1
...
Bumps [iroh](https://github.com/n0-computer/iroh ) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/n0-computer/iroh/releases )
- [Changelog](https://github.com/n0-computer/iroh/blob/main/CHANGELOG.md )
- [Commits](https://github.com/n0-computer/iroh/compare/v0.4.0...v0.4.1 )
---
updated-dependencies:
- dependency-name: iroh
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-03 22:21:52 +00:00
link2xt
044478a044
Update fd-lock, is-terminal and tempfile
2023-04-03 21:56:16 +00:00
dependabot[bot]
f6ea48d666
Merge pull request #4275 from deltachat/dependabot/cargo/axum-0.6.12
2023-04-03 21:43:43 +00:00
dependabot[bot]
6ed3ed1617
cargo: bump axum from 0.6.11 to 0.6.12
...
Bumps [axum](https://github.com/tokio-rs/axum ) from 0.6.11 to 0.6.12.
- [Release notes](https://github.com/tokio-rs/axum/releases )
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.6.11...axum-v0.6.12 )
---
updated-dependencies:
- dependency-name: axum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-03 19:48:44 +00:00
link2xt
9c9c401e66
ci: use --all-targets --all-features for cargo check
2023-04-03 19:27:11 +00:00
link2xt
72031edfbe
ci: split CI into more parallel jobs
...
With this, all the builds happen in parallel in 3-6 minutes,
and then python tests run for 8-9 minutes.
Before, it was 6-17 minutes for compilation,
then 19-31 minutes for python tests.
Compilation of the library and test binary was not parallelized,
and then python tests included async python tests
and deltachat-rpc-server binary compilation.
Now, deltachat-rpc-server compilation,
Rust testing and async python tests are separate jobs.
2023-04-03 19:27:11 +00:00
iequidoo
41456aa2ab
jsonrpc API: Fix documentation of search_messages() ( #4288 )
2023-04-03 14:17:39 -04:00
link2xt
a70f29381a
location: remove bitflags dependency
2023-04-03 16:56:37 +00:00
dependabot[bot]
3b0ad73732
Merge pull request #4270 from deltachat/dependabot/cargo/async_zip-0.0.12
2023-04-03 16:08:41 +00:00
dependabot[bot]
8c302648bb
Merge pull request #4263 from deltachat/dependabot/cargo/tokio-1.27.0
2023-04-03 16:06:43 +00:00
dependabot[bot]
01b888c341
cargo: bump tokio from 1.26.0 to 1.27.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.26.0...tokio-1.27.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-03 12:33:21 +00:00
dependabot[bot]
f8e87a8b6c
cargo: bump async_zip from 0.0.11 to 0.0.12
...
Bumps [async_zip](https://github.com/Majored/rs-async-zip ) from 0.0.11 to 0.0.12.
- [Release notes](https://github.com/Majored/rs-async-zip/releases )
- [Commits](https://github.com/Majored/rs-async-zip/commits )
---
updated-dependencies:
- dependency-name: async_zip
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-03 12:33:19 +00:00
link2xt
01af83946c
Update to released version of async-imap
2023-04-03 12:31:16 +00:00
link2xt
386a9ad0b0
Update from yanked spin 0.9.7 to 0.9.8
2023-04-03 10:21:11 +00:00
Floris Bruynooghe
c6c20d8f3c
ref(scheduler): Make InnerSchedulerState an enum ( #4251 )
...
This is more verbose, but makes reasoning about things easier.
2023-04-03 11:13:44 +02:00
dependabot[bot]
40b072711e
Merge pull request #4283 from deltachat/dependabot/cargo/rusqlite-0.29.0
2023-04-03 08:25:57 +00:00
Floris Bruynooghe
2469964a44
ref(sql): Do not warn if BLOBS_BACKUP_NAME does not exist ( #4256 )
...
ref(sql): Dop not warn if BLOBS_BACKUP_NAME does not exist
It is perfectly normal for this directory to not exist.
2023-04-03 09:28:17 +02:00
link2xt
40e0924768
Add bitflags exception to deny.toml
2023-04-03 07:25:44 +00:00
dependabot[bot]
e016440fb3
Merge pull request #4267 from deltachat/dependabot/cargo/serde_json-1.0.95
2023-04-02 22:06:59 +00:00
dependabot[bot]
a37aaa5585
Merge pull request #4271 from deltachat/dependabot/cargo/image-0.24.6
2023-04-02 22:06:26 +00:00
dependabot[bot]
1ee551d53e
cargo: bump serde_json from 1.0.93 to 1.0.95
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.93 to 1.0.95.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.93...v1.0.95 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-02 19:55:56 +00:00
dependabot[bot]
2341eed796
Merge pull request #4282 from deltachat/dependabot/cargo/futures-0.3.28
2023-04-02 19:54:10 +00:00
dependabot[bot]
49cfd79505
Merge pull request #4265 from deltachat/dependabot/cargo/serde-1.0.159
2023-04-02 19:41:36 +00:00
dependabot[bot]
9ac0d1a1ce
Merge pull request #4280 from deltachat/dependabot/cargo/thiserror-1.0.40
2023-04-02 19:00:26 +00:00
dependabot[bot]
6046dfabe9
cargo: bump rusqlite from 0.28.0 to 0.29.0
...
Bumps [rusqlite](https://github.com/rusqlite/rusqlite ) from 0.28.0 to 0.29.0.
- [Release notes](https://github.com/rusqlite/rusqlite/releases )
- [Changelog](https://github.com/rusqlite/rusqlite/blob/master/Changelog.md )
- [Commits](https://github.com/rusqlite/rusqlite/compare/v0.28.0...v0.29.0 )
---
updated-dependencies:
- dependency-name: rusqlite
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-02 18:32:07 +00:00
dependabot[bot]
c2269bf777
cargo: bump futures from 0.3.26 to 0.3.28
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.26 to 0.3.28.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.26...0.3.28 )
---
updated-dependencies:
- dependency-name: futures
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-02 17:40:49 +00:00
dependabot[bot]
b81a958021
Merge pull request #4278 from deltachat/dependabot/cargo/walkdir-2.3.3
2023-04-02 17:16:24 +00:00
dependabot[bot]
9e37a5643c
cargo: bump thiserror from 1.0.38 to 1.0.40
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.38 to 1.0.40.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.38...1.0.40 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-02 16:42:22 +00:00
dependabot[bot]
50a213c2e1
cargo: bump serde from 1.0.152 to 1.0.159
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.152 to 1.0.159.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.152...v1.0.159 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-02 16:42:10 +00:00
link2xt
c6e9fbd501
Update syn crate in deltachat_derive
2023-04-02 16:40:23 +00:00
dependabot[bot]
720b5aa7c1
Merge pull request #4284 from deltachat/dependabot/cargo/toml-0.7.3
2023-04-02 16:30:33 +00:00
dependabot[bot]
7be7640d3f
Merge pull request #4266 from deltachat/dependabot/cargo/reqwest-0.11.16
2023-04-02 16:07:43 +00:00
dependabot[bot]
e4d97278ee
cargo: bump reqwest from 0.11.14 to 0.11.16
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.14 to 0.11.16.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.14...v0.11.16 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-02 15:07:16 +00:00
dependabot[bot]
793ad82d42
Merge pull request #4277 from deltachat/dependabot/cargo/libc-0.2.140
2023-04-02 15:04:51 +00:00
dependabot[bot]
2b4d846f0e
Merge pull request #4285 from deltachat/dependabot/cargo/regex-1.7.3
2023-04-02 15:03:47 +00:00
dependabot[bot]
379eadab4f
Merge pull request #4281 from deltachat/dependabot/cargo/anyhow-1.0.70
2023-04-02 14:45:24 +00:00
dependabot[bot]
53a41fcffe
cargo: bump anyhow from 1.0.69 to 1.0.70
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.69 to 1.0.70.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.69...1.0.70 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-02 09:52:31 +00:00
link2xt
5e597e1f09
Merge tag 'v1.112.5'
2023-04-02 09:50:16 +00:00
link2xt
c9879f863b
Prepare 1.112.5 release
2023-04-02 09:48:39 +00:00
dependabot[bot]
e1b260d0ec
cargo: bump regex from 1.7.1 to 1.7.3
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.7.1 to 1.7.3.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.7.1...1.7.3 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-02 09:19:42 +00:00
dependabot[bot]
480b05063d
cargo: bump libc from 0.2.139 to 0.2.140
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.139 to 0.2.140.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.139...0.2.140 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-02 09:17:54 +00:00
dependabot[bot]
8477f7b472
Merge pull request #4276 from deltachat/dependabot/cargo/quick-xml-0.28.1
2023-04-02 09:17:40 +00:00
dependabot[bot]
91ae4eab06
Merge pull request #4268 from deltachat/dependabot/cargo/dirs-5.0.0
2023-04-02 09:14:21 +00:00
link2xt
f6d27516cb
Run migrations before delete_and_reset_all_device_msgs()
...
Both when importing a backup from file or receiving it over the network.
2023-04-02 08:39:13 +00:00
dependabot[bot]
7b86681cb2
Merge pull request #4274 from deltachat/dependabot/cargo/testdir-0.7.3
2023-04-02 08:38:19 +00:00
dependabot[bot]
1de815441a
Merge pull request #4272 from deltachat/dependabot/cargo/chrono-0.4.24
2023-04-02 08:37:11 +00:00
link2xt
d6426dc1b6
imex: run migrations after receiving a transferred backup
...
Similarly to how `imex_inner()` runs migrations
after successful call to `import_backup()`,
migrations should be run after receiving a backup
using `transfer_from_provider()`.
2023-04-01 23:56:36 +00:00
dependabot[bot]
44a36025b5
cargo: bump toml from 0.7.2 to 0.7.3
...
Bumps [toml](https://github.com/toml-rs/toml ) from 0.7.2 to 0.7.3.
- [Release notes](https://github.com/toml-rs/toml/releases )
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.7.2...toml-v0.7.3 )
---
updated-dependencies:
- dependency-name: toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-01 22:04:59 +00:00
dependabot[bot]
00017ab653
cargo: bump walkdir from 2.3.2 to 2.3.3
...
Bumps [walkdir](https://github.com/BurntSushi/walkdir ) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/BurntSushi/walkdir/releases )
- [Commits](https://github.com/BurntSushi/walkdir/compare/2.3.2...2.3.3 )
---
updated-dependencies:
- dependency-name: walkdir
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-01 22:03:47 +00:00
dependabot[bot]
411adc861e
cargo: bump quick-xml from 0.27.1 to 0.28.1
...
Bumps [quick-xml](https://github.com/tafia/quick-xml ) from 0.27.1 to 0.28.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.27.1...v0.28.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 >
2023-04-01 22:03:25 +00:00
dependabot[bot]
c5b3939ddb
cargo: bump testdir from 0.7.2 to 0.7.3
...
Bumps testdir from 0.7.2 to 0.7.3.
---
updated-dependencies:
- dependency-name: testdir
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-01 22:02:46 +00:00
dependabot[bot]
a9e3ea56ec
cargo: bump chrono from 0.4.23 to 0.4.24
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.23 to 0.4.24.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.23...v0.4.24 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-01 22:02:27 +00:00
dependabot[bot]
6a0f17a983
cargo: bump image from 0.24.5 to 0.24.6
...
Bumps [image](https://github.com/image-rs/image ) from 0.24.5 to 0.24.6.
- [Release notes](https://github.com/image-rs/image/releases )
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/commits )
---
updated-dependencies:
- dependency-name: image
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-01 22:02:14 +00:00
dependabot[bot]
28e6f457b1
cargo: bump dirs from 4.0.0 to 5.0.0
...
Bumps [dirs](https://github.com/soc/dirs-rs ) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/soc/dirs-rs/releases )
- [Commits](https://github.com/soc/dirs-rs/commits )
---
updated-dependencies:
- dependency-name: dirs
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-04-01 22:01:31 +00:00
link2xt
fdf46054e2
ci: limit artifact retention time for libdeltachat.a to 1 day
...
These artifacts are only needed to be downloaded
by the python test job immediately after building.
2023-04-01 17:37:52 +00:00
link2xt
47a3ee1ff1
ci: run mypy and doc with installed library
...
These require that package can be installed.
2023-04-01 13:29:55 +00:00
link2xt
a0b7b4b5c4
ci: use ' instead of " for condition quote
2023-04-01 12:58:29 +00:00
link2xt
b9bc0a4047
ci: fixup "if" expression
2023-04-01 12:56:36 +00:00
link2xt
e57abf92f3
ci: split library build and python tests into separate jobs
...
This way if flaky python tests fail,
it is possible to rerun them without having to rerun library compilation.
Python test jobs will redownload already built library artifact
and compile the bindings against it.
2023-04-01 12:53:49 +00:00
iequidoo
b56a7bc139
Fix CHANGELOG.md after c401780c
2023-04-01 09:13:08 -03:00
iequidoo
c401780c15
Compress mime_headers column with HTML emails stored in database ( #4077 )
...
Co-authored-by: bjoern <r10s@b44t.com >
2023-03-31 19:45:34 -03:00
iequidoo
df96a1daac
test_moved_markseen: Expect DC_EVENT_MSGS_CHANGED also
2023-03-31 17:15:02 -03:00
iequidoo
0a2200c2c8
python: Wait for initial Resync in the bot tests
2023-03-31 17:15:02 -03:00
Floris Bruynooghe
61b8d04418
ref(logging): remove LogExt::log_or_ok ( #4250 )
...
This further reduces the cognitive overload of having many ways to do
something. The same is very easily done using composition. Followup
from 82ace72527 .
2023-03-31 12:15:17 +02:00
link2xt
fd7cc83537
Merge tag 'v1.112.4'
...
Release 1.112.4
2023-03-31 01:13:56 +00:00
link2xt
f24843fbb1
Release 1.112.4
2023-03-31 01:12:26 +00:00
link2xt
6c57bc9438
Fix call to auditwheel in scripts/run_all.sh
...
This bugs prevents CI from building wheels.
2023-03-31 01:02:41 +00:00
link2xt
ae5f72cf4f
Remove install_python_bindings.py script and update docs
...
`install_python_bindings.py` was not used by CI
and scripts, except for `scripts/run-python-test.sh`
which only used it to invoke `cargo`.
Instead of using an additional script,
run cargo directly.
The documentation is updated to remove
references to `install_python_bindings.py`.
The section "Installing bindings from source"
was in fact incorrect as it suggested
running `tox --devenv` first and only then
compiling the library with `install_python_bindings.py`.
Now it explicitly says to run cargo first
and then install the package without using `tox`.
`tox` is still used for running the tests
and setting up development environment.
2023-03-31 00:27:35 +00:00
link2xt
3e65b6f3a6
Update to rPGP 0.10.1
2023-03-30 21:09:29 +00:00
link2xt
a4a53d5299
Increase MSRV to 1.65.0
2023-03-30 21:09:29 +00:00
link2xt
4223cac7a5
set_core_version.py: add newline to the end of package.json
2023-03-30 20:38:47 +00:00
link2xt
0073a09da6
Merge v1.112.3
2023-03-30 20:37:43 +00:00
link2xt
e612927c5d
Fix links in the changelog
2023-03-30 20:36:30 +00:00
link2xt
aff951440c
Release 1.112.3
2023-03-30 20:32:49 +00:00
Floris Bruynooghe
ef63e01632
fix(imex): transfer::get_backup must always free ongoing process ( #4249 )
...
* fix(imex): transfer::get_backup must always free ongoing process
When the ongoing process is cancelled it is still the responsibility
of whoever took out the ongoing process to free it. This code was
only freeing the ongoing process when completed normally but not when
cancelled.
* add changelog
2023-03-30 20:23:50 +00:00
link2xt
c4cf0f12c9
Prettier lint fix
2023-03-30 16:08:02 +00:00
link2xt
68635be8a2
Merge v1.112.2 into master
2023-03-30 15:42:27 +00:00
link2xt
776df7505e
Remove upper limit on the attachment size
...
Recommended file size is used for recoding media.
For the upper size, we rely on the provider to tell us back
if the message cannot be delivered to some recipients.
This allows to send large files, such as APKs,
when using providers that don't have such strict limits.
2023-03-30 15:01:02 +00:00
link2xt
d6fdc7cb67
Release 1.112.2
2023-03-30 14:57:32 +00:00
Floris Bruynooghe
91c10b3ac6
feat(scheduler): Allow overlapping IoPauseGuards ( #4246 )
...
This enables using multiple pause guards at the same time.
2023-03-30 12:40:13 +02:00
Floris Bruynooghe
82ace72527
ref(logging): Remove message from LogExt::log_err ( #4235 )
...
This removes the message that needed to be supplied to LogExt::log_err
calls. This was from a time before we adopted anyhow and now we are
better off using anyhow::Context::context for the message: it is more
consistent, composes better and is less custom.
The benefit of the composition can be seen in the FFI calls which need
to both log the error as well as return it to the caller via
the set_last_error mechanism.
It also removes the LogExt::ok_or_log_msg funcion for the same reason,
the message is obsoleted by anyhow's context.
2023-03-30 10:13:07 +02:00
link2xt
ea87c78d34
Do not return media from trashed messages in the "All media" view.
2023-03-30 08:10:06 +00:00
link2xt
585b8ece58
Remove outdated comment.
2023-03-30 08:07:21 +00:00
Floris Bruynooghe
a2927a6586
ref(deps): Upgrade to iroh 0.4.0 ( #4245 )
...
This moves us back to a released version;
- Ticket is now opaque, need to use accessor functions.
- Ticket now ensures it is valid itself, no need to inspect it's
inners. Deserialisation would fail if it was bad.
- The git version was accidentally used with default-features enabled
and thus pulled in a few too many dependencies. They are now gone.
2023-03-29 15:45:35 +02:00
Floris Bruynooghe
943c8a1ab3
feat(imex): Cancel BackupProvider when dropped ( #4242 )
...
This ensures that the BackupProvider will be stopped as soon as the
struct is dropped and the imex progress error event is emitted. This
makes it easier to use and also makes sure that the ffi call
dc_backup_provider_unref() does not lead to dangling resources.
2023-03-29 14:51:08 +02:00
link2xt
3400f5641e
Build zig-rpc-server for i686
...
cargo-zigbuild is replaced with a simple zig-cc wrapper.
cargo-zigbuild still tries to use i386-linux-musl triple,
while in zig 0.11 x86-linux-musl should be used [1].
This also gives us more control over compilation flags used
and prevents changes due to cargo-zigbuild upgrades,
as its version was not pinned.
[1] Merged PR "all: rename i386 to x86 "
<https://github.com/ziglang/zig/pull/13101 >
2023-03-29 10:56:22 +00:00
link2xt
5068648960
Update yanked spin 0.9.6
...
Otherwise cargo-deny complains.
2023-03-29 10:56:02 +00:00
Floris Bruynooghe
5be558ea68
feat(imex) Connect to all provider addresses concurrently ( #4240 )
...
This uses the new iroh API to connect to all provider addresses
concurrently. It simplifies the implementation as well as we no
longer need to try the addresses manually.
2023-03-29 09:47:00 +02:00
link2xt
fc25bba514
Add changelog for unreleased 1.112.2
2023-03-28 10:44:07 +00:00
Floris Bruynooghe
20b326415a
deps: Update iroh, remove default-net patch ( #4239 )
...
* deps: Update iroh, remove default-net patch
The released version of default-net is now sufficient and iroh makes
sure this dependency is recent enough.
* Update cargo-deny config
* Newer version of spin, previous has been yanked
2023-03-28 10:28:38 +00:00
link2xt
1bf5064039
Add unreleased section to changelog
2023-03-27 16:13:11 +00:00
link2xt
edf0c02bc8
Release 1.112.1
2023-03-27 15:22:31 +00:00
link2xt
1d42907114
deltachat-ffi: document thread safety guarantees
2023-03-27 14:47:40 +00:00
bjoern
070d832580
check against null in dc_backup_provider_unref() ( #4232 )
...
this is what we're doing in most comparable unref() functions.
2023-03-26 19:25:23 +02:00
link2xt
0dfec83b0f
deltachat-rpc-client: configure setuptools_scm
...
This makes `python -m build` produce wheels with a version
other than 0.0.0.
2023-03-26 10:00:01 +00:00
link2xt
c84155cbd4
Add scripts/deny.sh
...
This can be used to manually run `cargo deny`
without specifying all the parameters manually.
Similar to existing scripts/clippy.sh
2023-03-25 19:54:24 +00:00
iequidoo
eb5ddf270f
receive_imf: Mark special messages as seen ( #3054 )
...
Exactly: delivery reports, webxdc status updates.
2023-03-25 15:47:38 -03:00
link2xt
fb093253c6
Update generated nodejs constants files
2023-03-25 10:20:17 +00:00
dependabot[bot]
1864be5c55
Merge pull request #4229 from deltachat/dependabot/cargo/fuzz/openssl-0.10.48
2023-03-25 01:06:43 +00:00
dependabot[bot]
7138d44083
build(deps): bump openssl from 0.10.45 to 0.10.48 in /fuzz
...
Bumps [openssl](https://github.com/sfackler/rust-openssl ) from 0.10.45 to 0.10.48.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.45...openssl-v0.10.48 )
---
updated-dependencies:
- dependency-name: openssl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-25 00:31:14 +00:00
Floris Bruynooghe
04daff0608
Add comment
2023-03-24 23:20:14 +00:00
Floris Bruynooghe
801250a9e0
feat(imex): Sort IP addresses for getting from ticket
...
When trying IP addresses from the ticket, have a very rough sort order
in which to try them. Basically assume most local wifi's are
somewhere on 192.168.0.0/16 so prefer those first.
2023-03-24 23:20:14 +00:00
link2xt
20319b5426
Add --version option to deltachat-rpc-server
2023-03-24 23:11:11 +00:00
link2xt
9cca34bba5
Remove .wait_for_seen() calls in flaky tests
...
This is a merge commit for <https://github.com/deltachat/deltachat-core-rust/pull/4226 >
2023-03-24 23:09:44 +00:00
link2xt
530981119e
Update Cargo.lock
2023-03-24 23:08:46 +00:00
adbenitez
6d0327d057
deltachat-rpc-client: fix bug in Chat.send_message()
2023-03-24 18:56:08 -04:00
adbenitez
580ce5a9e9
deltachat-rpc-client: fix bug in Chat.send_message()
2023-03-24 17:34:41 -04:00
link2xt
6f327c950d
Cargo.toml: replace branch with rev in default-net patch entry
...
This makes `cargo install --path deltachat-rpc-server` work again.
2023-03-24 21:16:04 +00:00
link2xt
92ad843ff2
Reduce test code duplication
2023-03-24 20:59:31 +00:00
link2xt
a8059c6bff
python: remove flaky .wait_for_seen() from test_fetch_existing()
2023-03-24 18:09:40 +00:00
link2xt
4b468a25fe
Remove pytest-rerunfailures
...
It is not compatible with pytest-timeout anyway:
<https://github.com/pytest-dev/pytest-rerunfailures/issues/99 >
2023-03-24 16:13:33 +00:00
link2xt
1e135b649c
Do not use IDLE in test_send_and_receive_message_markseen
...
Fix flakyness in case Dovecot sends only EXISTS
but not FETCH unsolicited response.
2023-03-24 16:09:40 +00:00
link2xt
40d32f2d0c
Do not use IDLE in test_fetch_existing_msgs_group_and_single
...
Makes the test less flaky,
as Dovecot sometimes sends only the EXISTS response,
but not the FETCH response for flags.
2023-03-24 16:09:28 +00:00
link2xt
c9ec087cd8
python: do not use IDLE in test_markseen_message_and_mdn test
...
Make the test less flaky in case Dovecot notifies only about EXISTS
but not flag updates.
2023-03-24 16:09:15 +00:00
link2xt
84d79e1479
Do not use IDLE in test_mdn_asymmetric
...
Fixes test flakyness.
2023-03-24 16:08:58 +00:00
link2xt
83af248068
Turn more log messages into proper sentences.
2023-03-24 12:15:42 +00:00
link2xt
4f25edb1a1
Update OpenSSL to fix RUSTSEC-2023-0022
...
<https://rustsec.org/advisories/RUSTSEC-2023-0022 >
2023-03-24 09:56:00 +00:00
link2xt
ded1634b7d
python: look for "Marked messages ... as seen." by regexp
...
Tests reuse accounts, so UIDs may start from the number other than 1.
2023-03-24 09:43:59 +00:00
link2xt
635c73ffc6
python: use locally installed auditwheel
...
`auditwheel` is a part of manylinux images,
there is no need to create a virtual environment
and install it again.
2023-03-23 23:00:46 +00:00
link2xt
fcc1fe73be
Do not use .wait_for_seen() in test_one_account_send_bcc_setting
...
.wait_for_seen() is unreliable, because sometimes Dovecot
sends only EXISTS to the IDLE connection, but not the FETCH.
Dovecot sends updates like FETCH only if some
connection has already observed the message in previous state
without the \Seen flag.
To avoid this race condition, wait until the core sets the flag,
then FETCH the message manually and check that the flag is set.
2023-03-23 22:57:35 +00:00
link2xt
fa278d50f7
Simplify layout of the deltachat-rpc-server crate
2023-03-23 22:10:28 +00:00
link2xt
2f02be4c64
ci: test the core on macOS
2023-03-23 20:46:58 +00:00
link2xt
7add1c116c
Attempt to fix deltachat-rpc-server binary release uploads
2023-03-23 17:19:28 +00:00
link2xt
124a0e90e1
Release 1.112.0
2023-03-23 13:34:24 +00:00
Floris Bruynooghe
1716cdf51c
ref(ffi): dc_receive_backup should block ( #4211 )
...
The documentation says this blocks. This should block because it also
means the error reporting is more accurate by calling set_last_error
just before returning.
2023-03-23 14:15:34 +01:00
link2xt
3fdcffb314
Increase reference count before spawning background tasks in dc_receive_backup()
...
Merged PR <https://github.com/deltachat/deltachat-core-rust/pull/4206 >
2023-03-23 08:54:33 +00:00
link2xt
f033aae25c
Move most of the dc_receive_backup() into a safe function
2023-03-23 08:47:58 +00:00
Floris Bruynooghe
c42d942460
explicitly move for good measure
2023-03-23 08:47:58 +00:00
Floris Bruynooghe
0ba8201797
fix(dc_receive_backup): Increase refcount before spawn
...
Otherwise it is possible for the context that is used in the spawn to
be unreferenced. Really this should be caught by the borrow checker
that ensures we only spawn things with a 'static lifetime, but we're
handling raw pointers so it doesn't.
2023-03-23 08:47:49 +00:00
iequidoo
87252ab053
cargo: bump async_zip from 0.0.9 to 0.0.11
...
Bumps [async_zip](https://github.com/Majored/rs-async-zip) from 0.0.9 to 0.0.11.
- [Release notes](https://github.com/Majored/rs-async-zip/releases)
- [Commits](https://github.com/Majored/rs-async-zip/compare/v0.0.9...v0.0.11)
---
updated-dependencies:
- dependency-name: async_zip
dependency-type: direct:production
update-type: version-update:semver-patch
...
2023-03-23 00:33:25 +00:00
link2xt
53eec521dc
Make get_all_addresses_from_header non-generic
...
This saves 1287 lines according to `cargo llvm-lines --release`.
2023-03-22 23:51:41 +00:00
link2xt
238570a7b9
deltachat-ffi: update rand to 0.8.5
2023-03-22 23:37:01 +00:00
link2xt
043ae48806
Set pytest-timeout on async python tests
2023-03-22 20:41:17 +00:00
link2xt
fb88f2e6ab
Reintroduce pytest-rerunfailures
...
Tests on GitHub Actions are very flaky recently.
2023-03-22 20:39:35 +00:00
link2xt
5db867cd1b
Add IMAP_INBOX_IDLE event
2023-03-22 20:20:37 +00:00
B. Petersen
ec00c160c6
add missing define
2023-03-22 20:54:52 +01:00
Floris Bruynooghe
616eabc613
feat: Make the IoPausedGuard a simple sender ( #4184 )
...
This replaces the mechanism by which the IoPauseGuard makes sure the
IO scheduler is resumed: it really is a drop guard now by sending a
single message on drop.
This makes it not have to hold on to anything like the context so
makes it a lot easier to use.
The trade-off is that a long-running task is spawned when the guard is
created, this task needs to receive the message from the drop guard in
order for the scheduler to resume.
2023-03-22 17:42:21 +01:00
Floris Bruynooghe
89b32e02c5
deps(iroh): switch back to iroh main branch ( #4202 )
2023-03-22 16:05:55 +01:00
Floris Bruynooghe
e985588c6c
ref(jsonrpc): Getting backup provider QR code now blocks ( #4198 )
...
This changes the JSON-RPC APIs to get a QR code from the backup
provider to block. It means once you have a (blocking) call to
provide_backup() you can call get_backup_qr() or get_backup_qr_svg()
and they will block until the QR code is available.
Calling get_backup_qr() or get_backup_qr_svg() when there is no backup
provider will immediately error.
2023-03-22 12:45:38 +01:00
link2xt
7ec3a1a9a2
ci: fixup for artifact uploading in deltachat-rpc-server.yml
2023-03-21 23:17:15 +00:00
link2xt
19fa86b276
ci: remove android dependency from deltachat-rpc-server workflow
2023-03-21 22:21:05 +00:00
link2xt
c4657991c8
ci: build all deltachat-rpc-server binaries without NDK
2023-03-21 22:17:14 +00:00
link2xt
484aebdb16
smtp: disable buffering while running STARTTLS
...
Otherwise TLS setup fails on macOS and iOS with `errSSLClosedAbort`.
(<https://developer.apple.com/documentation/security/errsslclosedabort >)
2023-03-21 17:57:52 +00:00
Floris Bruynooghe
9c15cd5c8f
Explicitly call Context::set_last_error in ffi ( #4195 )
...
This adds a result extension trait to explicitly set the last error,
which *should* be the default for the FFI. Currently not touching all
APIs since that's potentially disruptive and we're close to a release.
The logging story is messy, as described in the doc comment. We
should further clean this up and tidy up these APIs so it's more
obvious to people how to do the right thing.
2023-03-21 13:37:25 +01:00
Hocuri
8302d22622
Improve comment on write_lock() ( #4134 )
2023-03-21 11:49:14 +01:00
bjoern
034cde9289
typo: CollectionReceived ( #4189 )
2023-03-21 10:21:30 +01:00
link2xt
02455d8485
ci: upload deltachat-rpc-server binaries on release
2023-03-20 18:59:14 +00:00
Floris Bruynooghe
35f50a8965
feat: Pause IO for BackupProvider ( #4182 )
...
This makes the BackupProvider automatically invoke pause-io while it
is needed.
It needed to make the guard independent from the Context lifetime to
make this work. Which is a bit sad.
2023-03-20 19:57:17 +01:00
link2xt
e04efdbd94
tox: quiet noisy message from black
2023-03-20 17:57:38 +00:00
Hocuri
57445eedb1
More accurate maybe_add_bcc_self device message text ( #4175 )
...
* More accurate maybe_add_bcc_self device message text
* changelog
* Update src/imex.rs
Co-authored-by: bjoern <r10s@b44t.com >
* Capitalize Send Copy to Self
---------
Co-authored-by: bjoern <r10s@b44t.com >
2023-03-20 12:54:16 +01:00
link2xt
a501f10756
Get rid of duplicate uuid dependency
2023-03-20 10:07:59 +00:00
link2xt
5d80d4788c
Pause I/O in get_backup()
2023-03-20 10:24:59 +01:00
link2xt
0c02886005
Update human-panic, but disable color
...
Avoid pulling in new `anstream` dependency
2023-03-19 19:10:25 +00:00
link2xt
24856f3050
Merge branch 'flub/send-backup'
...
PR: <https://github.com/deltachat/deltachat-core-rust/pull/4007 >
2023-03-19 15:21:59 +00:00
link2xt
8e6434068e
Fix remaining cargo-deny warnings
2023-03-19 14:40:46 +00:00
link2xt
800d2b14a5
Add cargo-deny exceptions for old crates
2023-03-19 14:37:23 +00:00
B. Petersen
3a861d2f84
some doxygen fixes
2023-03-19 15:24:51 +01:00
dependabot[bot]
4ba00f7440
Merge pull request #4171 from deltachat/dependabot/cargo/axum-0.6.11
2023-03-19 13:30:54 +00:00
link2xt
40fc61da4f
changelog: add link and date to the latest release
2023-03-19 12:07:55 +00:00
link2xt
eb0f896d57
Use scheduler.is_running()
2023-03-19 11:23:09 +00:00
link2xt
71bb89fac1
Merge remote-tracking branch 'origin/master' into flub/send-backup
2023-03-19 11:10:07 +00:00
link2xt
b89199db54
Merge branch 'flub/pause-io'
...
PR: <https://github.com/deltachat/deltachat-core-rust/pull/4138 >
2023-03-19 11:06:01 +00:00
link2xt
e39429c2e3
rustfmt
2023-03-19 10:18:49 +00:00
link2xt
17de3d3236
Remove TODOs
2023-03-19 10:17:18 +00:00
link2xt
3177f9967d
Add a comment aronud IMAP loop task handle
2023-03-19 10:16:43 +00:00
link2xt
81418d8ee5
Log error on pause guard drop without resuming instead of working around
...
I checked that tests still pass even if error! is replaced with panic!
2023-03-19 10:13:59 +00:00
link2xt
a2e7d914a0
Changelog fixup
2023-03-19 09:37:09 +00:00
Floris Bruynooghe
4bf38c0e29
clippy
2023-03-19 09:36:41 +00:00
Floris Bruynooghe
0079cd4766
Add changelog
2023-03-19 09:36:38 +00:00
Floris Bruynooghe
2c3b2b8c2d
move pause to only exist on Scheduler
2023-03-19 09:36:03 +00:00
Floris Bruynooghe
52fa58a3ce
No need for jsonrpc to do this manually
2023-03-19 09:36:03 +00:00
Floris Bruynooghe
32a7e5ed82
Remove requirement for stopping io for imex
2023-03-19 09:36:03 +00:00
Floris Bruynooghe
097113f01e
fixup paused flag use
2023-03-19 09:36:03 +00:00
Floris Bruynooghe
1d42e4743f
Allow pausing IO scheduler from inside core
...
To handle backups the UIs have to make sure they do stop the IO
scheduler and also don't accidentally restart it while working on it.
Since they have to call start_io from a bunch of locations this can be
a bit difficult to manage.
This introduces a mechanism for the core to pause IO for some time,
which is used by the imex function. It interacts well with other
calls to dc_start_io() and dc_stop_io() making sure that when resumed
the scheduler will be running or not as the latest calls to them.
This was a little more invasive then hoped due to the scheduler. The
additional abstraction of the scheduler on the context seems a nice
improvement though.
2023-03-19 09:36:03 +00:00
dependabot[bot]
5ecdea47db
cargo: bump axum from 0.6.9 to 0.6.11
...
Bumps [axum](https://github.com/tokio-rs/axum ) from 0.6.9 to 0.6.11.
- [Release notes](https://github.com/tokio-rs/axum/releases )
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.6.9...axum-v0.6.11 )
---
updated-dependencies:
- dependency-name: axum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-19 09:35:20 +00:00
dependabot[bot]
5b92b6355e
Merge pull request #4168 from deltachat/dependabot/cargo/fuzz/libsqlite3-sys-0.25.2
2023-03-19 09:24:18 +00:00
link2xt
5eb7206b2d
Format documentation comment for sync_qr_code_token_deletion
2023-03-19 00:10:45 +00:00
link2xt
a566fd6301
Upgrade async-smtp to 0.9.0
...
async-smtp does not implement read buffering anymore
and expects library user to implement it.
To implement read buffer, we wrap streams into BufStream
instead of BufWriter.
2023-03-18 21:26:39 +00:00
link2xt
3eadc86217
Update Rust in coredeps docker image to 1.68.0
2023-03-18 21:08:40 +00:00
dependabot[bot]
0a65081db0
Bump libsqlite3-sys from 0.24.2 to 0.25.2 in /fuzz
...
Bumps [libsqlite3-sys](https://github.com/rusqlite/rusqlite ) from 0.24.2 to 0.25.2.
- [Release notes](https://github.com/rusqlite/rusqlite/releases )
- [Changelog](https://github.com/rusqlite/rusqlite/blob/master/Changelog.md )
- [Commits](https://github.com/rusqlite/rusqlite/compare/libsqlite3-sys-0.24.2...v0.25.2 )
---
updated-dependencies:
- dependency-name: libsqlite3-sys
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-18 19:31:46 +00:00
link2xt
dd57854ee3
Increase Minimum Supported Rust Version to 1.64
...
It is required for clap_lex v0.3.2
and async_zip 0.0.11.
2023-03-18 19:30:11 +00:00
link2xt
b83b9db712
repl: print errors with causes
2023-03-18 14:37:50 +00:00
dignifiedquire
a59e72e7d8
update iroh
2023-03-17 23:41:36 +01:00
dignifiedquire
fd358617f5
feat: implement more detailed progress on sending
2023-03-17 23:37:00 +01:00
link2xt
b26a351786
Switch quinn to the main branch
...
It has Android fixes merged
2023-03-17 22:26:42 +00:00
link2xt
a32a3b8cca
Construct HashMaps in provider database from array
...
This saves 450 lines according to `cargo llvm-lines --release`.
2023-03-17 18:30:37 +00:00
dignifiedquire
575b43d9a0
Merge remote-tracking branch 'origin/master' into flub/send-backup
2023-03-17 15:53:40 +01:00
Friedel Ziegelmayer
6c5654f584
fix: do not delete columns
...
This requires currently too much memory, crashing on larger instances
2023-03-17 15:35:08 +01:00
link2xt
0a5542a698
Log transfer rate on success
2023-03-17 10:45:43 +00:00
dignifiedquire
518bd19e96
fix: do not block transfer on db import
2023-03-17 11:29:27 +01:00
link2xt
edcc199461
Fix clippy::redundant-async-block warnings
2023-03-17 09:20:34 +00:00
link2xt
961e3ad7e2
Update spin 0.9.5->0.9.6
2023-03-17 00:00:37 +00:00
dignifiedquire
7a49e9401f
fixup clippy & fmt
2023-03-16 17:53:27 +01:00
dignifiedquire
3701936129
Merge remote-tracking branch 'origin/master' into flub/send-backup
2023-03-16 17:50:00 +01:00
dignifiedquire
c02686b56e
update iroh
2023-03-16 17:38:15 +01:00
link2xt
9a7ff9d2b1
Switch quinn to ecn-einval-fallback branch.
2023-03-16 16:25:46 +00:00
link2xt
f024909611
sql: replace empty paramsv![] with empty tuples
2023-03-15 22:20:40 +00:00
link2xt
8db64726ea
sql: expect zero-column results from PRAGMA incremental_vacuum
...
The fact that `PRAGMA incremental_vacuum` may return a zero-column
SQLITE_ROW result is documented in `sqlite3_data_count()` documentation:
<https://www.sqlite.org/c3ref/data_count.html >
Previously successful auto_vacuum worked,
but resulted in a "Failed to run incremental vacuum" log.
2023-03-15 21:15:46 +00:00
link2xt
56f6d6849e
Patch quinn to work on android
2023-03-15 12:45:58 +00:00
link2xt
cdd696db95
Delete expired messages using multiple SQL requests
...
With existing approach of constructing
the SQL query dynamically I get errors like this:
ephemeral.rs:575: update failed: too many SQL variables: Error code 1: SQL error or missing database
In my case it is trying to delete 143658 messages.
This is the result of importing a Desktop backup
and enabling device auto-deletion on the phone.
Current SQLite limit is 32766 variables
as stated in <https://www.sqlite.org/limits.html >.
2023-03-15 12:22:27 +00:00
link2xt
cbc18ee5a4
Log connection errors
2023-03-14 18:49:14 +00:00
iequidoo
6b67f8bcfd
Support non-persistent configuration with DELTACHAT_* env #3986
...
This way we can test some recently added config options that we don't want to expose in UI like
DeleteToTrash or SignUnencrypted. Note that persistent config options like DeleteToTrash should
remain anyway because they allow fine-grained (per-account) control. Having them matters for tests
also.
2023-03-14 12:57:06 -03:00
dignifiedquire
14521cfc2d
improve address handling
2023-03-14 15:38:28 +01:00
link2xt
6fbcf67190
python: revert ruff C4 -> C40 change
...
It is an error in ruff 0.0.255, will be fixed in the next version:
a8c1915e2e
2023-03-14 09:37:03 +00:00
link2xt
73e7ee5c13
Build armv7 deltachat-rpc-server binaries without NDK
2023-03-13 23:09:25 +00:00
link2xt
90d2333818
python: update for latest ruff 0.0.255
2023-03-13 22:31:50 +00:00
link2xt
8d80aea5c8
Reduce the scope of unsafe blocks in FFI
...
Spawn tasks from safe functions to ensure there is no use-after-free.
2023-03-13 16:17:40 +00:00
link2xt
8936e9a416
Add dc_configure, dc_imex and dc_jsonrpc_request() fixes to changelog
2023-03-13 16:17:40 +00:00
link2xt
0afd3d595f
Fix potential use-after-free in dc_jsonrpc_request()
2023-03-13 16:17:40 +00:00
link2xt
474faefca8
Increase dc_context_t reference count during dc_imex()
2023-03-13 16:17:40 +00:00
link2xt
30fef395b4
Increase dc_context_t reference count during dc_configure()
...
This fixes use-after-free in case dc_context_unref() is called
while the background process spawned by dc_configure() is still
running.
Corresponding regression test in Python can be run with
`pytest tests/test_1_online.py::test_configure_unref`.
2023-03-13 16:17:40 +00:00
link2xt
5805f99acd
Test calling dc_context_unref() during dc_configure()
...
dc_configure() spawns a background configuration process.
It should increase the number of context references
so even if we unref the context, it is not dropped
until the end of the configuration process.
Currently running the test
with `pytest tests/test_1_online.py::test_configure_unref`
results in segmentation fault.
2023-03-13 16:17:40 +00:00
dignifiedquire
5e4807b7ac
update patched default-net
2023-03-13 12:51:54 +01:00
B. Petersen
11ca698139
allow generated html being rendered in dark mode
...
`<meta name="color-scheme" content="light dark" />` is a hint to the browsers
that the page can be rendered in light as well as in dark mode
and that the browser can apply corresponding defaults.
as we do not add css colors on our own,
this is sufficient for letting generated html messasge being rendered
in dark mode.
cmp. https://drafts.csswg.org/css-color-adjust/#color-scheme-prop
closes #4146
2023-03-13 11:22:06 +01:00
B. Petersen
b14e59c5f3
"full message view" not needed because of footers
...
standard footers meanwhile go the "contact status",
so they are no longer a reason to trigger "full message view".
this was already discussed when the HTML view was introduced at #2125
however, forgotten to change when the "contact status" was added at #2218
this pr will result in a cleaner chat view
with less "Show Full Message..." buttons
and will also save some storage
(in fact, i came over that when reviewing #4129 )
2023-03-13 10:57:56 +01:00
link2xt
4d620afdb8
Enable clippy::explicit_into_iter_loop
2023-03-12 14:51:44 +00:00
link2xt
2bd7781276
Enable cloned_instead_of_copied clippy lint
2023-03-12 14:45:46 +00:00
link2xt
a432303576
Remove explicit .iter() and .iter_mut() calls in for loops
2023-03-12 14:06:42 +00:00
Asiel Díaz Benítez
b7e939e4d9
Merge pull request #4132 from deltachat/adb/rpc-server-update-readme
...
update deltachat-rpc-server/README.md
2023-03-12 06:10:56 -04:00
adbenitez
2151a24b7f
update deltachat-rpc-server/README.md
2023-03-11 21:28:46 -05:00
link2xt
4411b883d7
Remove doxygen-dark-theme
2023-03-11 22:15:09 +00:00
B. Petersen
7d3fcd9a3c
restore original Doxygen contrasts
...
the contrast was decreased at
https://github.com/deltachat/deltachat-core-rust/pull/4136 ,
there were also suggestions to fix it there,
but it was probably just forgotten :)
this pr increases the contrast
between code background and code font again to the level it was before
and also to what similar themes are doing.
2023-03-11 19:09:21 +01:00
link2xt
0ac61690cf
Enable all features when running clippy
2023-03-11 12:57:38 +00:00
link2xt
28d9bec0b4
Patch default-net
2023-03-10 17:14:01 +00:00
link2xt
a853b8283a
Upgrade to Rust 1.68.0
2023-03-10 01:30:57 +00:00
link2xt
6a394a0dc8
fixup: move changelog to unreleased section
2023-03-09 16:42:47 +00:00
Floris Bruynooghe
05e50ea787
Connect to all addresses the provider has
...
This uses a branch directly from iroh repo again
2023-03-09 16:49:34 +01:00
Floris Bruynooghe
02afacf989
clarify docs
2023-03-09 16:12:33 +01:00
Floris Bruynooghe
c7de4f66e7
Bind to 0.0.0.0
2023-03-09 15:34:15 +01:00
link2xt
00791157e2
Drop unused columns
...
We are currently using libsqlite3-sys 0.25.2,
corresponding to SQLcipher 4.5.2
and SQLite 3.39.2.
SQLite supports ALTER TABLE DROP COLUMN since version 3.35.0,
and it has received critical database corruption bugfixes in 3.35.5.
There have been no fixes to it between SQLite 3.36.0 and 3.41.0,
so it appears stable now.
2023-03-09 14:29:39 +00:00
link2xt
9e03f26992
deltachat-ffi: print causes for all errors
2023-03-09 11:36:14 +00:00
link2xt
de391155b1
Do not prepare the message explicitly in the test context
...
Explicit `prepare_msg` corresponding to `dc_prepare_msg`
is intended only for the case where the message is prepared
before the file is ready. It is not indented for calling
right before send_msg and requires that file path in the blobdir.
With explicit `prepare_msg` removed
all the tests still pass but there is no requirement
that the file is put into blobdir beforehand.
2023-03-09 09:37:40 +00:00
Sebastian Klähn
db28c1bdc4
Update doxygen for cffi docs ( #4136 )
...
fix styling
2023-03-08 21:35:15 +01:00
link2xt
d71bf1c4be
Fix documentation on enabling REPL logs
...
As `repl` example was moved into `deltachat_repl` crate,
the name of the log target has changed.
2023-03-08 14:03:02 +00:00
Sebastian Klähn
ef1970b742
Also document private items for rust docs ( #4137 )
...
also document private items for rust docs
2023-03-08 14:13:07 +01:00
Asiel Díaz Benítez
4bb131e7e7
Merge pull request #4128 from deltachat/adb/add-golang-to-readme
...
add new golang bindings lib to README.md
2023-03-08 03:12:59 -05:00
Floris Bruynooghe
c9b8c5079b
wording
2023-03-07 15:45:18 +01:00
Floris Bruynooghe
eec5ae96e8
Update docs and fix string allocation
...
The docs say you should always unref the string and NULL is never
returned. The implementation should follow that.
2023-03-07 15:36:33 +01:00
Floris Bruynooghe
4b94eadf5e
typo
2023-03-07 14:40:51 +01:00
Floris Bruynooghe
52a1886937
naming conventions!
...
they're hard
2023-03-07 14:40:01 +01:00
Floris Bruynooghe
9767f51c3d
update .h file too
2023-03-07 14:13:42 +01:00
Floris Bruynooghe
6674b888cc
Merge branch 'master' into flub/send-backup
2023-03-07 12:52:45 +01:00
Floris Bruynooghe
a5e6bd3e8e
Do not require context for non-context methods
...
This follows the ffi style better.
2023-03-07 12:49:42 +01:00
Floris Bruynooghe
b6c24932a7
Apply typos from code review
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2023-03-07 12:23:30 +01:00
link2xt
e39011a43b
Release 1.111.0
2023-03-05 13:26:22 +00:00
adbenitez
8b8dcf61ef
add new golang bindings lib to README.md
2023-03-04 23:14:45 -05:00
link2xt
3df5e6e9d3
Use "dep:" syntax to avoid creating dependency features
...
It is supported since Rust 1.60
2023-03-04 10:24:16 +00:00
link2xt
fe60b2dd2d
Update scripts/anroid-rpc-server.sh
...
Ported changes from deltachat-android/scripts/ndk-make.sh
2023-03-04 09:35:56 +00:00
link2xt
260dbbd36f
Optimize release builds and dependencies for size
2023-03-03 18:43:53 +00:00
link2xt
7e5a8714a0
Add scripts/codespell.sh and spellcheck
2023-03-03 18:40:36 +00:00
iequidoo
627cf20074
Housekeeping: delete the blobs backup dir ( #4104 )
2023-03-03 11:06:41 -03:00
Floris Bruynooghe
d73d56c399
bump testdir for windows bug workaround
2023-03-03 13:13:58 +01:00
Floris Bruynooghe
731e90f0d5
update cargo-deny
2023-03-03 12:53:43 +01:00
Floris Bruynooghe
e0a6c2ef54
Merge branch 'master' into flub/send-backup
2023-03-03 12:46:05 +01:00
Floris Bruynooghe
c38ae31f31
Configure cargo-deny fully
...
This adds more configuration to cargo-deny so that the output is not a
giant list of warnings hiding new entries. Instead the config now
lists the things that would emit warnings. It also adds -Dwarnings to
the CI job so that new warnings will be cleaned up: they can be added
to the config easily to fix the warnings.
2023-03-03 12:37:54 +01:00
Floris Bruynooghe
c5408e0561
Merge branch 'master' into flub/send-backup
2023-03-03 09:48:33 +01:00
Floris Bruynooghe
c1a2df91ac
Fix typo in blob names
...
This is now tested properly too.
2023-03-02 21:53:13 +01:00
Floris Bruynooghe
da85c2412e
fix iterator
2023-03-02 21:48:14 +01:00
Floris Bruynooghe
f5c334a1e4
ci: Make sure clippy script check everything
...
Also disable missing_docs_in_private_items as this is like 300+ errors
currently.
2023-03-02 21:33:20 +01:00
Simon Laux
3453aac27e
jsonrpc: ts bindings: update .npmignore ( #4119 )
...
to remove files from the npm package that is not needed by end users.
#ignore-changelog
2023-03-02 13:57:17 +01:00
Floris Bruynooghe
d108f9b3e3
clippy
2023-03-02 11:47:03 +01:00
link2xt
9c48bf9d13
Upgrade rustyline to 11.0.0
2023-03-02 10:43:29 +00:00
Floris Bruynooghe
e3014a349c
Merge branch 'master' into flub/send-backup
2023-03-02 11:35:17 +01:00
dependabot[bot]
04fa80b3bd
Merge pull request #4120 from deltachat/dependabot/cargo/human-panic-1.1.1
2023-03-02 10:33:08 +00:00
dependabot[bot]
d7c8fc624a
Merge pull request #4121 from deltachat/dependabot/cargo/async-native-tls-0.5.0
2023-03-02 10:32:51 +00:00
Floris Bruynooghe
9d88ef069e
log some more
2023-03-02 11:21:05 +01:00
Floris Bruynooghe
155dff2813
renaming of upstream
2023-03-02 11:18:30 +01:00
Floris Bruynooghe
38d4ea8514
Use std::slice::Iter instead of manually tracking the offset
2023-03-02 11:15:02 +01:00
Floris Bruynooghe
6f24874eb8
Use a RAII guard to remove the db export
2023-03-02 10:58:39 +01:00
Floris Bruynooghe
2d20812652
some typos
2023-03-02 09:39:50 +01:00
dependabot[bot]
e866053070
cargo: bump async-native-tls from 0.4.0 to 0.5.0
...
Bumps [async-native-tls](https://github.com/async-email/async-native-tls ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/async-email/async-native-tls/releases )
- [Commits](https://github.com/async-email/async-native-tls/compare/v0.4.0...v0.5.0 )
---
updated-dependencies:
- dependency-name: async-native-tls
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-03-02 02:32:53 +00:00
dependabot[bot]
81bacf9038
cargo: bump human-panic from 1.1.0 to 1.1.1
...
Bumps [human-panic](https://github.com/rust-cli/human-panic ) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/rust-cli/human-panic/releases )
- [Changelog](https://github.com/rust-cli/human-panic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/human-panic/compare/v1.1.0...v1.1.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 >
2023-03-02 02:32:35 +00:00
link2xt
4e166b1b4a
Run cargo update
2023-03-01 22:42:03 +00:00
Floris Bruynooghe
5762fbb9a7
Allow JSON-RPC to get text of QR code as well
...
Desktop does use this as it allows reading QR codes as text from the
clipboard as well as copying the QR text to the clipboard instead of
showing the QR code.
2023-03-01 11:27:21 +01:00
link2xt
2dc04220b8
Simplify dc_jsonrpc_init
2023-02-28 22:46:24 +00:00
iequidoo
b149df1993
test_{delete,trash}_multiple_messages: Continue waiting for events if not all messages disappeared
2023-02-28 15:05:47 -03:00
iequidoo
e767d84bea
Switch to DEFERRED transactions
...
We do not make all transactions
[IMMEDIATE](https://www.sqlite.org/lang_transaction.html#deferred_immediate_and_exclusive_transactions )
for more parallelism -- at least read transactions can be made DEFERRED to run in parallel
w/o any drawbacks. But if we make write transactions DEFERRED also w/o any external locking,
then they are upgraded from read to write ones on the first write statement. This has some
drawbacks:
- If there are other write transactions, we block the thread and the db connection until
upgraded. Also if some reader comes then, it has to get next, less used connection with a
worse per-connection page cache.
- If a transaction is blocked for more than busy_timeout, it fails with SQLITE_BUSY.
- Configuring busy_timeout is not the best way to manage transaction timeouts, we would
prefer it to be integrated with Rust/tokio asyncs. Moreover, SQLite implements waiting
using sleeps.
- If upon a successful upgrade to a write transaction the db has been modified by another
one, the transaction has to be rolled back and retried. It is an extra work in terms of
CPU/battery.
- Maybe minor, but we lose some fairness in servicing write transactions, i.e. we service
them in the order of the first write statement, not in the order they come.
The only pro of making write transactions DEFERRED w/o the external locking is some
parallelism between them. Also we have an option to make write transactions IMMEDIATE, also
w/o the external locking. But then the most of cons above are still valid. Instead, if we
perform all write transactions under an async mutex, the only cons is losing some
parallelism for write transactions.
2023-02-28 15:05:47 -03:00
Simon Laux
fc019de18c
jsonrpc: add get webxdc blob API getWebxdcBlob ( #4070 )
...
* jsonrpc: add get webxdc blob API `getWebxdcBlob`
* add info about path
* format
2023-02-27 17:46:13 +00:00
link2xt
c79ded1406
Fixes for get_webxdc_blob documentation
2023-02-27 14:36:57 +00:00
link2xt
d1d43e889a
python: add more type annotations
2023-02-27 13:07:35 +00:00
link2xt
7bdf79dee5
python: do not shadow variables to fix pyright warnings
2023-02-27 13:07:35 +00:00
link2xt
a6b2c25d42
Move changelog to the unreleased section and add PR number
2023-02-27 08:26:34 +00:00
Asiel Díaz Benítez
210ec79872
Merge pull request #4097 from deltachat/adb/add-send-msg
...
add more advanced API to send a message
2023-02-27 00:32:18 -05:00
adbenitez
9f81299de0
rename DraftMessage to MessageData
2023-02-26 23:34:15 -05:00
adbenitez
f0a2ca7815
send_msg(): return only msg_id
2023-02-26 22:50:24 -05:00
link2xt
50d83ff063
Remove ResyncFolders job
2023-02-26 22:31:53 +00:00
link2xt
a2f1df052b
Autoformat create-provider-data-rs.py
2023-02-26 21:27:21 +00:00
link2xt
0086232bbb
Rename update-provider-database.py into create-provider-data-rs.py
2023-02-26 21:27:21 +00:00
link2xt
8e9bb8b06e
Check provider database with CI
...
scripts/update-provider-database.sh checks out the provider database
and updates data.rs file,
making it easier to update.
CI uses this script to check that checked in data.rs
corresponds to the provider database repository.
2023-02-26 21:27:21 +00:00
link2xt
7e132b5383
Add cargo-deny config and CI
2023-02-26 20:52:53 +00:00
link2xt
8177070673
Set minimum TLS version to 1.2
2023-02-26 18:48:32 +00:00
B. Petersen
247bf5865d
add countermitm and openpgp4fpr to "standard used"
...
noticed that this is missing
while working on https://github.com/deltachat/invite
2023-02-26 15:55:50 +01:00
Asiel Díaz Benítez
ad3c7136ec
Merge branch 'master' into adb/add-send-msg
2023-02-26 05:14:12 -05:00
adbenitez
79026f93b6
add more advanced API to send a message
2023-02-26 05:13:20 -05:00
link2xt
eace8c5fee
Note that 1.108.0 re-enables SMTP pipelining
2023-02-25 15:02:05 +00:00
B. Petersen
f8e86f4503
make slowest test faster
...
the slowest test was `test_modify_chat_disordered`;
due to several sleep(), it lasts at least 11 seconds.
however, many of the sleep() are not needed and were added
just to get things done that time.
this pr removes 7 superfluous sleeps,
making the test finish in about 3 seconds,
so that this test is no longer the bottleneck when running
`cargo test` on fast machines.
(this is not only useful to safe some seconds -
but also to notice degradations as of
https://github.com/deltachat/deltachat-core-rust/issues/4051#issuecomment-1436995166 )
2023-02-25 15:37:10 +01:00
iequidoo
d1923d68a5
Add a config option to sign all messages with Autocrypt header ( #3986 )
...
Although it does a little for security, it will help to protect from unwanted server-side
modifications and bugs. And now we have a time to test "multipart/signed" messages compatibility
with other MUAs.
2023-02-25 10:30:35 -03:00
iequidoo
89696582ad
mimeparser: Handle headers from the signed part of unencrypted signed message
...
This makes DC compatible with "multipart/signed" messages thus allowing switching to them someday
from the current "multipart/mixed" unencrypted message format.
2023-02-25 10:30:35 -03:00
link2xt
992a6cbfc2
mimeparser: wrap try_decrypt() into block_in_place()
...
try_decrypt() is a CPU-bound task.
When called from async function,
it should be wrapped in tokio::task::spawn_blocking().
Using tokio::task::spawn_blocking() is difficult here
because of &mail, &private_keyring and &public_keyring borrows,
so we should at least use tokio::task::block_in_place()
to avoid blocking the executor.
2023-02-25 11:00:05 +00:00
link2xt
1450bf5483
Remove Job::delay_seconds()
...
It always returned 0 for added jobs.
2023-02-25 02:45:22 +00:00
link2xt
9f804c379c
Remove always zero argument to Job::new()
2023-02-25 02:42:14 +00:00
link2xt
10e8bcb73e
job: remove unused variable
2023-02-25 02:35:08 +00:00
link2xt
7f2ccfb168
job: remove match with a single branch
2023-02-25 02:33:47 +00:00
link2xt
3fc67de35e
Stop saving and loading jobs.param column
2023-02-25 02:33:21 +00:00
link2xt
8f0d07b93c
Make smeared timestamp creation non-async
...
Using atomic operations instead,
so create_smeared_timestamp() can be used in sync functions,
such as SQL transactions.
2023-02-25 01:10:56 +00:00
link2xt
0890b669fa
Move RFC URLs in standards.md to the end
...
Also update Autodiscover URL
2023-02-24 23:47:51 +00:00
link2xt
c02c5ffe2c
Format docs_wheels.yml with prettier
2023-02-24 22:31:04 +00:00
link2xt
064f806d90
Remove UpdateRecentQuota job
2023-02-24 17:49:08 +00:00
link2xt
b6336ce7e9
Add Unreleased changelog section
2023-02-24 17:46:45 +00:00
link2xt
aeadbb35f3
Remove empty API-Changes section
2023-02-24 17:46:35 +00:00
link2xt
45817fcacd
Release 1.110.0
2023-02-24 17:05:10 +00:00
link2xt
c8ce4ce5aa
Switch to "vX.Y.Z" tagging scheme
...
Previously we used tags like "1.109.0" and "py-1.109.0".
Since Python bindings are always released
at the same time as the core,
it is easier to use a single tag for them.
"v" prefix is added to make matching by "v*" easier
in CI and scripts.
2023-02-24 16:48:37 +00:00
Franz Heinzmann (Frando)
75670134d8
chore(jsonrpc): bump yerpc version
2023-02-24 16:40:24 +00:00
Franz Heinzmann (Frando)
e3eb35e160
deltachat-jsonrpc: bump yerpc version in ts client
2023-02-24 16:40:24 +00:00
B. Petersen
08c9deee04
add test for Context::update_contacts_timestamp(), esp. the condition and the update was not covered before
2023-02-24 16:23:33 +01:00
adbenitez
a2e088b415
Compile deltachat-rpc-server for Android
...
Co-Authored-By: link2xt <link2xt@testrun.org >
2023-02-24 15:17:40 +00:00
link2xt
7af1a19491
Do not build more than one deltachat-rpc-server at a time
2023-02-24 15:16:38 +00:00
link2xt
d0a7e5f1b7
Update timestamps in parameters with transactions
...
This avoids accidentally reverting the changes
to the `param` column done by another thread.
2023-02-24 14:39:59 +00:00
link2xt
a82b09bfc2
Move TLS support to net::tls module
2023-02-24 13:23:17 +00:00
link2xt
e9668b3cfa
Cache INSERT statement in receive_imf
...
It reduces iteration time by ~8% in message reception benchmarks
ran by `cargo criterion --bench receive_emails`.
2023-02-24 10:51:55 +00:00
link2xt
bc9e347a80
ci: there are no staging and trying branches
2023-02-24 01:14:00 +00:00
link2xt
b5187661ee
ci: cancel running node.js tests when the branch is updated
...
Do not waste CI time running the tests for previous commit.
2023-02-24 01:13:40 +00:00
link2xt
059c673d00
ci: add workflow to the group
...
Otherwise it cancels other workflows.
2023-02-23 18:50:44 +00:00
link2xt
76514178b6
ci: do not run CI multiple times on the same branch
...
Especially for PRs, if the branch is updated
multiple times, only the last commit should be tested.
2023-02-23 18:45:55 +00:00
gerryfrancis
0d7a3fe552
Fix typo in CHANGELOG.md ( #4086 )
...
Fix typo
2023-02-23 19:05:20 +01:00
link2xt
2cc85e6637
Hide some constants from public crate interface
2023-02-23 14:48:25 +00:00
link2xt
ade3d0d4eb
Add more documentation comments
2023-02-23 12:55:43 +00:00
link2xt
ee81d61988
Fix ruff warnings
2023-02-23 01:31:09 +00:00
link2xt
880ee63fed
Document aarch64-unknown-linux-musl.sh
2023-02-22 20:39:46 +00:00
link2xt
b0f77f7a33
ci: add arch prefix to deltachat-rpc-server binary names
2023-02-22 20:13:27 +00:00
link2xt
cff4a9dce3
ci: cross-compile deltachat-rpc-server for aarch64 Linux
2023-02-22 19:50:42 +00:00
link2xt
5dc20a5b98
ci: link deltachat-rpc-server statically on Linux
2023-02-22 18:56:37 +00:00
Floris Bruynooghe
0e06da22df
fix symbol name
2023-02-22 18:51:17 +01:00
Floris Bruynooghe
5833a9b347
fix doc comments
2023-02-22 18:50:32 +01:00
Floris Bruynooghe
0ef8d57881
Merge branch 'master' into flub/send-backup
2023-02-22 18:15:23 +01:00
link2xt
9e28ee95e5
Document PeerstateChange
2023-02-22 15:10:33 +00:00
Floris Bruynooghe
fc64c33368
Use released version of sendme^Wiroh
...
This switches to a released version. It has been renamed from sendme
to iroh.
2023-02-22 16:05:24 +01:00
Hocuri
7c099c19c8
Re-disable DKIM-checks ( #4076 )
2023-02-22 16:03:20 +01:00
Floris Bruynooghe
1b39be8a42
Merge branch 'master' into flub/send-backup
2023-02-22 15:54:23 +01:00
link2xt
adb5bc77c4
Enable clippy::missing_docs_in_private_items in deltachat-ffi
2023-02-22 14:51:13 +00:00
link2xt
c7b7fbaf78
ci: use minimal profile for rustup
...
Avoid installing unnecessary documentation.
2023-02-22 13:53:02 +00:00
link2xt
42a18d4d0d
Unpin ruff version
...
False positive is fixed in the latest version.
2023-02-22 11:27:37 +00:00
Robert Schütz
d3f4654d4b
python: replace pkg_resources with importlib.metadata
...
Use of pkg_resources is discouraged in favor of importlib.resources,
importlib.metadata, and their backports.
2023-02-21 21:32:12 -08:00
link2xt
999a9550f5
Remove explicit native-tls dependency
2023-02-22 05:09:38 +00:00
link2xt
7f5217fc87
ci: do not try to cross-compile deltachat-rpc-server on i686
...
It does not work because vendored OpenSSL compilation fails
2023-02-22 01:07:31 +00:00
link2xt
df96fbdcef
ci: error if deltachat-rpc-server artifact cannot be uploaded
2023-02-22 00:37:17 +00:00
link2xt
edec80a917
ci: attempt to fix binary path for artifact upload
2023-02-22 00:35:35 +00:00
link2xt
439c57e3ac
ci: fix typo in deltachat-rpc-server.yml
2023-02-22 00:32:30 +00:00
link2xt
7bfff6c87c
ci: disable fail-fast on deltachat-rpc-server.yml builds
2023-02-22 00:11:45 +00:00
link2xt
57f221dcc9
Enable "vendored" feature on "deltachat-jsonrpc" from "deltachat-rpc-server"
2023-02-22 00:04:42 +00:00
link2xt
79212bee13
Add "vendored" feature to deltachat-jsonrpc
2023-02-22 00:03:40 +00:00
link2xt
178e67a262
Add "vendored" feature to deltachat-rpc-server
2023-02-22 00:00:32 +00:00
link2xt
877b3551ae
ci: add --target option when build deltachat-rpc-server
2023-02-21 23:54:20 +00:00
link2xt
a616c69f9a
ci: add missing include to deltachat-rpc-server.yml
2023-02-21 23:40:45 +00:00
link2xt
df1c1addfb
ci: add action to build deltachat-rpc-server
2023-02-21 23:35:53 +00:00
link2xt
45abaff275
Update provider database
2023-02-21 14:41:13 +00:00
iequidoo
15c9efaa95
Update provider/update.py according to the struct Provider changes
2023-02-21 10:53:15 -03:00
link2xt
e86fbf5855
ci: stop using deprecated Ubuntu 18.04
...
GitHub Actions fails running 18.04 jobs currently:
<https://github.com/actions/runner-images/issues/6002 >
2023-02-21 13:10:12 +00:00
bjoern
38a62d92ba
mention speedup of #4065 in CHANGELOG ( #4073 )
...
the speedup of #4065 is larger than measured first
running `cargo test`, first we thought there is only a slight speedup
from 13.5 seconds to 12.5 seconds on a m1pro.
however, there is one test that does 11 seconds of sleep() (test_modify_chat_disordered)
as this test is not run very first, this slows down things overall.
skipping this test,
speedup is from 13.5 seconds to 9.5 seconds -
28% faster - and this is something we should mention in the changelog :)
(this pr does not remove or change the slow test.
i think, due to the number of cores, this is not needed until someone
has a machine where the other tests run in 2 seconds or so)
2023-02-21 13:36:36 +01:00
link2xt
c01a2f2c24
Fix missing imports in deltachat_rpc_client
2023-02-21 12:21:17 +00:00
Hocuri
17acbca576
Correctly clear database cache after import ( #4067 )
2023-02-21 11:23:34 +00:00
link2xt
05a274a5f3
Enable more ruff checks in deltachat-rpc-client
2023-02-21 11:17:10 +00:00
link2xt
f07206bd6c
Pin ruff version in deltachat-rpc-client
...
Latest versions 0.0.248 and 0.0.249 report false positive:
src/deltachat_rpc_client/client.py:105:9: RET503 [*] Missing explicit `return` at the end of function able to return
2023-02-20 19:57:54 +00:00
link2xt
92c7cc40d4
sql: replace .get_conn() interface with .call()
...
.call() interface is safer because it ensures
that blocking operations on SQL connection
are called within tokio::task::block_in_place().
Previously some code called blocking operations
in async context, e.g. add_parts() in receive_imf module.
The underlying implementation of .call()
can later be replaced with an implementation
that does not require block_in_place(),
e.g. a worker pool,
without changing the code using the .call() interface.
2023-02-20 18:54:29 +00:00
Hocuri
710cec1beb
Remove show_emails argument from prefetch_should_download() ( #4064 )
...
IIRC, this was written this way back when we didn't have config caching,
in order to save database accesses by getting the config outside the
for loop.
2023-02-20 18:06:43 +00:00
link2xt
56d10f7c42
Use transaction in update_blocked_mailinglist_contacts
2023-02-20 17:17:59 +00:00
Franz Heinzmann
ef03a33b29
JSON-RPC: Add CommonJS build ( #4062 )
...
add CommonJS build
2023-02-20 18:10:32 +01:00
iequidoo
3b5227c42a
Move strict_tls, max_smtp_rcpt_to from Provider to ProviderOptions
2023-02-20 14:09:27 -03:00
iequidoo
604c4fcb71
Delete messages to the Trash folder for Gmail by default ( #3957 )
...
Gmail archives messages marked as `\Deleted` by default if those messages aren't in the Trash. But
if move them to the Trash instead, they will be auto-deleted in 30 days.
2023-02-20 14:09:27 -03:00
link2xt
4790ad0478
Merge switching SQLite connection pool from FIFO to LIFO
2023-02-20 16:43:19 +00:00
Floris Bruynooghe
a1e19e2c41
Merge branch 'master' into flub/send-backup
2023-02-20 17:39:52 +01:00
link2xt
eaa2ef5a44
sql: start transactions as IMMEDIATE
...
With the introduction of transactions in Contact::add_or_lookup(),
python tests sometimes fail to create contacts with the folowing error:
Cannot create contact: add_or_lookup: database is locked: Error code 5: The database file is locked
`PRAGMA busy_timeout=60000` does not affect
this case as the error is returned before 60 seconds pass.
DEFERRED transactions with write operations need
to be retried from scratch
if they are rolled back
due to a write operation on another connection.
Using IMMEDIATE transactions for writing
is an attempt to fix this problem
without a retry loop.
If we later need DEFERRED transactions,
e.g. for reading a snapshot without locking the database,
we may introduce another function for this.
2023-02-20 15:05:35 +00:00
link2xt
2eeacb0f8a
sql: organize connection pool as a stack rather than a queue
...
When connection pool is organized as a stack,
it always returns most recently used connection.
Because each connection has its own page cache,
using the connection with fresh cache improves performance.
I commented out `oauth2::tests::test_oauth_from_mx`
because it requires network connection,
turned off the Wi-Fi and ran the tests.
Before the change, with a queue:
```
$ hyperfine "cargo test"
Benchmark 1: cargo test
Time (mean ± σ): 56.424 s ± 4.515 s [User: 183.181 s, System: 128.156 s]
Range (min … max): 52.123 s … 68.193 s 10 runs
```
With a stack:
```
$ hyperfine "cargo test"
Benchmark 1: cargo test
Time (mean ± σ): 29.887 s ± 1.377 s [User: 101.226 s, System: 45.573 s]
Range (min … max): 26.591 s … 31.010 s 10 runs
```
On version 1.107.1:
```
$ hyperfine "cargo test"
Benchmark 1: cargo test
Time (mean ± σ): 43.658 s ± 1.079 s [User: 202.582 s, System: 50.723 s]
Range (min … max): 41.531 s … 45.170 s 10 runs
```
2023-02-20 15:00:37 +00:00
Floris Bruynooghe
b920db12c7
Split _wait and _unref
...
This also removes BackupProvider::join in favour of implementing
Future directly. I wondered about implementing a FusedFutre to make
this a little safer but it would introduce a dependency on the futures
crate in deltachat-ffi which did not exist yet, so I didn't do that.
2023-02-20 15:56:05 +01:00
Floris Bruynooghe
73b90eee3e
improve docs
2023-02-20 13:10:29 +01:00
Floris Bruynooghe
4637a28bf6
doc comment
2023-02-20 13:08:43 +01:00
Floris Bruynooghe
d0638c1542
typo
2023-02-20 13:05:11 +01:00
Floris Bruynooghe
788d3125a3
Do not save svg to file, just print qr text
2023-02-20 13:02:16 +01:00
Floris Bruynooghe
3c4ffc3550
Some fixes
2023-02-20 12:58:23 +01:00
link2xt
840497d356
format mergeable.yml
2023-02-20 11:49:59 +00:00
link2xt
0dd87b0bae
ci: format .yml with prettier
2023-02-20 11:48:57 +00:00
Floris Bruynooghe
ada858f439
Improve comments, mostly ffi. and some renames
2023-02-20 12:48:43 +01:00
link2xt
e2151e26ee
ci: pin rustfmt version
2023-02-19 23:40:04 +00:00
link2xt
446214fd7b
sql: use transaction in Contact::add_or_lookup()
2023-02-19 23:16:44 +00:00
link2xt
9389e11007
ffi: log create_contact() errors
2023-02-19 23:16:44 +00:00
link2xt
5bdd49b451
Add Unreleased section to changelog
2023-02-19 21:57:36 +00:00
link2xt
42a7e91f05
python: stop using pytest-rerunfailures
2023-02-19 21:55:28 +00:00
link2xt
44953d6bcc
Release 1.109.0
2023-02-19 21:40:33 +00:00
link2xt
10066b2bc7
sql: use semaphore to limit access to the connection pool
...
This ensures that if multiple connections are returned
to the pool at the same time, waiters get them in the order
they were placed in the queue.
2023-02-19 17:06:25 +00:00
Simon Laux
609fc67f0d
fix websocket server & add ci test for building it ( #4047 )
...
the axum update broke the websocket server, because yerpc still uses a the old 5.9 version.
So I needed to downgrade the dependency until https://github.com/deltachat/yerpc/pull/35 is merged.
I want to retry the kaiOS client experiment, for this I need a working websocket server binary.
2023-02-19 14:57:00 +01:00
Hocuri
641d102aba
Add dc_msg_set_subject() C FFI ( #4057 )
2023-02-19 13:42:39 +00:00
link2xt
f65e1c1587
Sort dependencies in Cargo.toml
2023-02-19 13:18:58 +00:00
link2xt
626ec5e793
Document the meaning of empty Message.subject
2023-02-19 13:05:39 +00:00
link2xt
85517abf58
Derive Debug for Pool
2023-02-19 02:26:26 +00:00
link2xt
75f65b06e8
Run VACUUM on the same connection as sqlcipher_export
...
Otherwise export_and_import_backup test fails due to SQLITE_SCHEMA error.
2023-02-19 02:26:26 +00:00
link2xt
f2b05ccc29
Reimplement connection pool on top of crossbeam
2023-02-19 02:26:26 +00:00
link2xt
e88f21c010
Remove try_many_times r2d2 bug workaround
2023-02-19 02:26:26 +00:00
link2xt
ed8e2c4818
Replace r2d2 with an own connection pool
...
New connection pool does not use threads
and does not remove idle connections
or create new connections at runtime.
2023-02-19 02:26:26 +00:00
link2xt
48fee4fc92
python: replace "while 1" with "while True"
...
This makes pyright recognize that the function never returns implicitly.
2023-02-18 11:31:07 +00:00
link2xt
7586bcf45e
Update rusqlite to 0.28
2023-02-17 14:48:33 +00:00
link2xt
870527de1e
Remove r2d2_sqlite dependency
2023-02-17 11:06:17 +00:00
link2xt
a34aeb240a
Increase database timeout to 60 seconds
2023-02-16 18:37:47 +00:00
link2xt
6ee165fddc
python: type annotations for testplugin.py
2023-02-16 17:48:29 +00:00
Floris Bruynooghe
f2570945c6
Don't reimplement qr::format_backup
2023-02-16 18:18:18 +01:00
Floris Bruynooghe
8072f78058
Do not emit ImexEvent From BlobDirIter
...
We no longer need that in the transfer case, that would give very
weird results. This also means there is nothing imex-specific about
this anymore so move it to blobs.rs
2023-02-16 18:05:09 +01:00
Floris Bruynooghe
8ae0ee5a67
Merge branch 'master' into flub/send-backup
2023-02-16 17:19:31 +01:00
Floris Bruynooghe
a75d2b1c80
Create a blocking call for jsonrpc
2023-02-16 17:15:54 +01:00
Floris Bruynooghe
c48c2af7a1
Allow retrieval of backup QR on context
...
This enables being able to get the QR code without needing to have
access to the BackupProvider itself. This is useful for the JSON-RPC
server.
2023-02-16 16:49:20 +01:00
Floris Bruynooghe
490a14c5ef
Remove the need for a directory for db export
...
Plus on import use the context directory. We can actually write there
just fine.
2023-02-16 16:06:41 +01:00
link2xt
c9db41a7f6
python: build Python 3.11 wheels
2023-02-16 14:36:23 +00:00
Floris Bruynooghe
dcce6ef50b
Some docs
2023-02-16 15:19:44 +01:00
Floris Bruynooghe
7cf0820d2b
diff
2023-02-16 14:56:18 +01:00
Floris Bruynooghe
0bae3caaff
dear CI masters: i regret every trying to be clever
2023-02-16 14:55:24 +01:00
Floris Bruynooghe
bca0b256c9
goodness ci?
2023-02-16 14:52:05 +01:00
Floris Bruynooghe
a53d30c459
fixed another bug, try main again
2023-02-16 14:49:48 +01:00
Floris Bruynooghe
7a9f497aa7
why can't i see this action now?
2023-02-16 14:49:04 +01:00
link2xt
7a6bfae93b
Fix typo
2023-02-16 11:42:59 +00:00
Floris Bruynooghe
f9f9bc3efb
yaml
2023-02-16 09:10:47 +01:00
Floris Bruynooghe
904990bf91
ugh, yaml syntax
2023-02-16 09:08:14 +01:00
Floris Bruynooghe
b2266ffca1
make the have a valid on spec at least so gh doesn't complain too much
2023-02-16 09:06:40 +01:00
Floris Bruynooghe
bb9a3d4b8e
more bug hunting: disable most ci, point to branch
2023-02-16 09:00:27 +01:00
link2xt
ae19c9b331
Add more documentation
2023-02-15 21:56:33 +00:00
link2xt
7d2cca8633
sql: enable auto_vacuum on all connections
2023-02-15 18:59:47 +00:00
link2xt
c52b48b0f5
sql: update version first in migration transactions
...
In execute_migration transaction first update the version, and only
then execute the rest of the migration. This ensures that transaction
is immediately recognized as write transaction and there is no need
to promote it from read transaction to write transaction later, e.g.
in the case of "DROP TABLE IF EXISTS" that is a read only operation if
the table does not exist. Promoting a read transaction to write
transaction may result in an error if database is locked.
2023-02-15 18:58:44 +00:00
link2xt
893794f4e7
accounts: retry filesystem operations in migrate_account()
2023-02-15 18:57:37 +00:00
link2xt
032da4fb1a
python: add py.typed file
...
It marks the package as supporting typing according to PEP 561 <https://peps.python.org/pep-0561/ >
Also remove zip-safe option from setuptools configuration for deltachat-rpc-client.
It is deprecated in setuptools and not used for wheel package format according to <https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html >
2023-02-15 18:56:34 +00:00
Simon Laux
0de5125de8
jsonrpc: get_messages now returns a map with MessageLoadResult instead of failing completely if one of the requested messages could not be loaded. ( #4038 )
...
* jsonrpc: `get_messages` now returns a map with `MessageLoadResult`
instead of failing completely if one of the requested messages could not be loaded.
* add pr number to changelog
* format errors with causes instead of debug output
also for chatlistitemfetchresult
2023-02-15 18:46:34 +00:00
link2xt
cd3f1fe874
python: autoformat with black
2023-02-15 17:15:43 +00:00
link2xt
4f68e94fb3
python: use f-strings instead of percent-encoding
2023-02-15 16:33:05 +00:00
link2xt
b3ecbbc8b3
python: do not import print function in tests
2023-02-15 16:32:19 +00:00
link2xt
01653a881a
python: do not import print function
2023-02-15 16:28:16 +00:00
link2xt
e021a59b87
python: do not inherit from object
2023-02-15 16:27:34 +00:00
Floris Bruynooghe
e565e19b42
fix msrv in sendme
2023-02-15 16:01:39 +01:00
Floris Bruynooghe
41319c85c7
patch in previous revision of sendme
...
main broke rust 1.63 support :'(
2023-02-15 15:12:14 +01:00
Floris Bruynooghe
daf56804a5
use correct branch
2023-02-15 14:57:26 +01:00
Floris Bruynooghe
6f7a43804d
Add changelog
2023-02-15 14:48:17 +01:00
Floris Bruynooghe
0ca76d36ef
Merge branch 'master' into flub/send-backup
2023-02-15 14:46:57 +01:00
Floris Bruynooghe
ec5789997a
back to master
2023-02-15 14:45:52 +01:00
Floris Bruynooghe
7a0d61bbb0
hey
2023-02-15 13:50:39 +01:00
link2xt
243f28f8a5
python: use dataclasses to reduce boilerplate
2023-02-15 12:35:52 +00:00
link2xt
78577594d0
deltachat-rpc-server: spawn request handlers
2023-02-15 12:19:03 +00:00
link2xt
d3e2f38da0
deltachat-jsonrpc: fix "prettier" arguments
...
**.ts finds .ts files only in the current directory and no *.js files.
2023-02-15 11:18:58 +00:00
link2xt
05f0fe0a88
Derive Default where possible
2023-02-14 21:33:02 +00:00
link2xt
e11d7c0444
Remove unnecessary .into_iter()
2023-02-14 21:04:29 +00:00
Floris Bruynooghe
1c2461974d
better way
2023-02-14 18:29:15 +01:00
Floris Bruynooghe
2a754744fe
char, not chat
2023-02-14 18:03:39 +01:00
Floris Bruynooghe
b413593c43
hi
2023-02-14 17:39:58 +01:00
Floris Bruynooghe
c73edd7e21
oh
2023-02-14 17:20:25 +01:00
Floris Bruynooghe
a34a69d8e4
yes, ci fun
2023-02-14 17:15:52 +01:00
Floris Bruynooghe
020a9d33f6
new sendme for lower msrv
2023-02-14 15:49:21 +01:00
Floris Bruynooghe
19f6f89312
no let else :(
2023-02-14 13:29:55 +01:00
Floris Bruynooghe
d56e05a11a
fixup doc links
2023-02-14 13:27:15 +01:00
Floris Bruynooghe
c379a4e5a7
use ProgressEmitter from sendme
2023-02-14 13:19:43 +01:00
Floris Bruynooghe
44c1efe4e4
Add jsonrpc support
2023-02-14 13:05:54 +01:00
Floris Bruynooghe
ff0d675082
Make getting backup use the ongoing process
2023-02-14 12:19:40 +01:00
Floris Bruynooghe
e1087b4145
translate the string for qr code
2023-02-14 12:07:02 +01:00
link2xt
a203cde400
Remove TestHeader from non-test builds
2023-02-14 11:00:04 +00:00
link2xt
00c14dd9f6
Move changelog entry to unreleased section
2023-02-14 10:58:43 +00:00
link2xt
71d9716117
Remove MimeMessage::from_bytes()
...
It was not used anywhere except the tests.
2023-02-14 10:57:57 +00:00
link2xt
2e4f63a290
Add Unreleased changelog section
2023-02-14 01:54:22 +00:00
link2xt
9dee725895
Fix header levels for 1.108.0 changelog
2023-02-14 01:53:57 +00:00
link2xt
267263dab7
Release 1.108.0
2023-02-13 21:15:34 +00:00
link2xt
1d81457f38
Remove unused ConfiguredE2EEEnabled key
...
`e2ee_enabled` is always used without `configured_` prefix.
2023-02-13 21:14:47 +00:00
link2xt
0885cad089
Add deltachat-repl to scripts/set_core_version.py
2023-02-13 20:32:25 +00:00
iequidoo
19d7632be0
Show non-deltachat emails by default for new installations
2023-02-13 14:48:53 -03:00
Floris Bruynooghe
323535584b
implement ffi and use public sendme
2023-02-13 18:25:12 +01:00
Floris Bruynooghe
852adbe514
bits left over from master merge
2023-02-13 15:45:38 +01:00
link2xt
2a5fa9a0d3
Documentation improvements
2023-02-13 14:01:24 +00:00
Floris Bruynooghe
4c78553d90
Merge branch 'master' into flub/send-backup
2023-02-13 11:25:51 +01:00
link2xt
bb702a9342
Remove outdated comment
2023-02-13 10:20:41 +00:00
link2xt
6c8368fa23
jsonrpc: add API to check if the message is sent by a bot
...
Co-Authored-By: Asiel Díaz Benítez <asieldbenitez@gmail.com >
2023-02-12 18:53:26 +00:00
link2xt
1c875209f7
python: create test accounts in parallel
2023-02-12 18:50:01 +00:00
link2xt
82da09760c
ci: use --workspace instead of deprecated --all flag
2023-02-12 16:38:09 +00:00
link2xt
ef44aa0bd0
ci: there are no staging and trying branches
2023-02-12 16:14:10 +00:00
link2xt
af5a3235fd
python: save references to asyncio tasks to avoid GC
...
Otherwise the task may be garbage collected
and cancelled.
See <https://docs.python.org/3/library/asyncio-task.html#asyncio.create_task > for reference.
2023-02-12 15:13:54 +00:00
link2xt
07c510c178
Remove bitflags from get_chat_msgs() interface
...
get_chat_msgs() function is split into new get_chat_msgs() without flags
and get_chat_msgs_ex() which accepts booleans instead of bitflags.
FFI call dc_get_chat_msgs() is still using bitflags for compatibility.
JSON-RPC calls get_message_ids() and get_message_list_items()
accept booleans instead of bitflags now.
2023-02-12 15:11:04 +00:00
link2xt
c367bb63d1
ci: name run_clippy job
2023-02-12 12:19:15 +00:00
link2xt
819d658531
ci: don't use unmaintained actions-rs/toolchain
...
Also fix clippy version to prevent new clippy releases from breaking CI.
clippy version has to be updated manually now.
2023-02-12 11:45:27 +00:00
Asiel Díaz Benítez
48f098482e
Merge pull request #4023 from deltachat/adb/issue-2266
...
capture unexpected exceptions in EventThread
2023-02-11 22:00:02 -05:00
link2xt
1a49bc85b8
Add scripts/clippy.sh
...
The script makes it easier to manually check REPL and benchmark code
with clippy without the need to copy-paste all the flags.
2023-02-11 16:07:52 +00:00
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
6a30c0a997
Fix code style with black
2023-02-11 09:21:25 +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
adbenitez
3e8687e464
capture unexpected exceptions in EventThread
2023-02-10 14:43:32 -05:00
Floris Bruynooghe
a31ae5297a
Add to repl example
2023-02-10 18:35:47 +01:00
Floris Bruynooghe
e7792a0c65
clippy
2023-02-10 18:27:03 +01:00
Floris Bruynooghe
3c32de1859
Generate a QR code
2023-02-10 18:16:01 +01:00
Floris Bruynooghe
6a3fe3db92
fixup doc comments
2023-02-10 14:15:39 +01:00
Floris Bruynooghe
ac048c154d
Add progress for provider
...
Fix progress for getter. Maths. It's hard.
Add test for progress.
2023-02-10 13:54:50 +01:00
link2xt
c9b2ad4ffa
Prefer TLS over STARTTLS during autoconfiguration
2023-02-10 11:28:11 +00:00
Floris Bruynooghe
3f51a8ffc2
Some more doc comments
2023-02-10 10:48:10 +01:00
Floris Bruynooghe
2129b2b7a0
Add a ton of code for receiver-side progress
2023-02-09 18:09:16 +01: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
Floris Bruynooghe
3734fc25a7
update callback to take collection by ref
2023-02-09 10:02:18 +01: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
dependabot[bot]
48722a22c9
Merge pull request #4012 from deltachat/dependabot/cargo/fuzz/tokio-1.25.0
2023-02-08 12:24:35 +00:00
dependabot[bot]
a8f018a208
Bump tokio from 1.24.1 to 1.25.0 in /fuzz
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.24.1 to 1.25.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.24.1...tokio-1.25.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-08 00:12:52 +00:00
Floris Bruynooghe
05ddc13054
Use name prefixes so the db can not be spoofed by a blob
2023-02-07 18:21:46 +01:00
Floris Bruynooghe
716504b833
do not pull in sendme cli deps
2023-02-07 17:20:35 +01:00
Floris Bruynooghe
187861c3b2
Make stuff work. With test!
2023-02-07 17:18:34 +01:00
Hocuri
fa70d8da09
Re-enable DKIM-checks ( #3935 )
...
Re-enable keychange-denying when the From address is wrong
Reverts #3728
Closes #3735
Reopens #3700
2023-02-07 17:07:43 +01:00
Floris Bruynooghe
0b075ac762
Stop after a transfer happened.
2023-02-06 14:58:08 +01:00
link2xt
cd293e6f49
Update async-smtp to 0.8
2023-02-03 11:36:58 +00:00
Floris Bruynooghe
a6c889ed5e
Clean up files on errors
2023-02-02 18:11:12 +01:00
Floris Bruynooghe
ca1533b0e4
delete device messages
2023-02-02 17:47:41 +01:00
Floris Bruynooghe
3267596a30
handle the database
2023-02-02 17:43:12 +01:00
Floris Bruynooghe
5f29b93970
Start of get support and create new module.
2023-02-02 17:15:23 +01:00
dependabot[bot]
d178c4a91a
Merge pull request #4008 from deltachat/dependabot/cargo/toml-0.7.1
2023-02-02 08:30:53 +00:00
dependabot[bot]
ff63ce0630
cargo: bump toml from 0.7.0 to 0.7.1
...
Bumps [toml](https://github.com/toml-rs/toml ) from 0.7.0 to 0.7.1.
- [Release notes](https://github.com/toml-rs/toml/releases )
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.7.0...toml-v0.7.1 )
---
updated-dependencies:
- dependency-name: toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-01 23:13:38 +00:00
dependabot[bot]
757b77786a
Merge pull request #4009 from deltachat/dependabot/cargo/human-panic-1.1.0
2023-02-01 23:12:20 +00:00
dependabot[bot]
7a78449950
Merge pull request #4010 from deltachat/dependabot/cargo/uuid-1.3.0
2023-02-01 23:11:57 +00:00
dependabot[bot]
7b44b26e9e
cargo: bump uuid from 1.2.2 to 1.3.0
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.2.2...1.3.0 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-01 21:02:05 +00:00
dependabot[bot]
3f5da7357f
cargo: bump human-panic from 1.0.3 to 1.1.0
...
Bumps [human-panic](https://github.com/rust-cli/human-panic ) from 1.0.3 to 1.1.0.
- [Release notes](https://github.com/rust-cli/human-panic/releases )
- [Changelog](https://github.com/rust-cli/human-panic/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/human-panic/compare/v1.0.3...v1.1.0 )
---
updated-dependencies:
- dependency-name: human-panic
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-01 21:01:40 +00:00
Floris Bruynooghe
2a6a21c33a
handle the ongoing process correctly
2023-02-01 17:53:23 +01:00
dependabot[bot]
8ac972856c
Merge pull request #4001 from deltachat/dependabot/cargo/rustyline-10.1.1
2023-02-01 16:50:01 +00:00
dependabot[bot]
1f49fcc777
cargo: bump rustyline from 10.0.0 to 10.1.1
...
Bumps [rustyline](https://github.com/kkawakam/rustyline ) from 10.0.0 to 10.1.1.
- [Release notes](https://github.com/kkawakam/rustyline/releases )
- [Changelog](https://github.com/kkawakam/rustyline/blob/master/History.md )
- [Commits](https://github.com/kkawakam/rustyline/compare/v10.0.0...v10.1.1 )
---
updated-dependencies:
- dependency-name: rustyline
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-01 16:16:27 +00:00
link2xt
f2f5bfd17c
Fix python file code style
...
New version of `black` complains otherwise.
2023-02-01 16:10:08 +00:00
Floris Bruynooghe
059af398eb
Allow decoding the QR code
2023-02-01 17:06:07 +01:00
Floris Bruynooghe
6044e5961b
Send and receive backup over network using QR code
...
This adds functionality to send and receive a backup over the network
using a QR code.
The sender or provider prepares the backup, sets up a server that
waits for clients. It provides a ticket in the form of a QR code
which contains connection and authentication information.
The receiver uses the QR code to connect to the provider and fetches
backup, restoring it locally.
2023-02-01 16:45:09 +01: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
dependabot[bot]
1e71d8dcc8
Merge pull request #3997 from deltachat/dependabot/cargo/toml-0.7.0
2023-01-31 14:40:19 +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
Floris Bruynooghe
76893df5bd
Remove the nightly PGP feature
...
This was to test pgp early on, but that's not deltachat's business.
If needed the PGP project can always do this with patching.
2023-01-31 11:54:48 +01:00
Asiel Díaz Benítez
c8453e2c81
Merge pull request #4002 from deltachat/adb/rpc-server-add-readme
...
add deltachat-rpc-server/README.md
2023-01-31 05:39:48 -05:00
dependabot[bot]
8ab4a4b82d
Merge pull request #3993 from deltachat/dependabot/cargo/yerpc-0.4.0
2023-01-31 10:30:16 +00:00
adbenitez
e6fe814ada
add deltachat-rpc-server/README.md
2023-01-31 05:08:59 -05:00
link2xt
e171a69240
Do not specify _send message type
2023-01-31 09:35:41 +00:00
dependabot[bot]
55cb11da07
cargo: bump yerpc from 0.3.1 to 0.4.0
...
Bumps [yerpc](https://github.com/Frando/yerpc ) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/Frando/yerpc/releases )
- [Commits](https://github.com/Frando/yerpc/commits/v0.4.0 )
---
updated-dependencies:
- dependency-name: yerpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-31 00:43:21 +00:00
dependabot[bot]
3104edba0f
Merge pull request #3996 from deltachat/dependabot/cargo/axum-0.6.4
2023-01-31 00:42:32 +00:00
dependabot[bot]
3878389f2b
Merge pull request #3999 from deltachat/dependabot/cargo/futures-0.3.26
2023-01-31 00:42:05 +00:00
dependabot[bot]
356a064dd1
cargo: bump axum from 0.6.1 to 0.6.4
...
Bumps [axum](https://github.com/tokio-rs/axum ) from 0.6.1 to 0.6.4.
- [Release notes](https://github.com/tokio-rs/axum/releases )
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.6.1...axum-v0.6.4 )
---
updated-dependencies:
- dependency-name: axum
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-30 22:48:33 +00:00
dependabot[bot]
a0ba866d5b
cargo: bump futures from 0.3.25 to 0.3.26
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.25 to 0.3.26.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.25...0.3.26 )
---
updated-dependencies:
- dependency-name: futures
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-30 22:48:32 +00:00
dependabot[bot]
ede63cd6be
Merge pull request #3994 from deltachat/dependabot/cargo/reqwest-0.11.14
2023-01-30 22:47:04 +00:00
dependabot[bot]
9311d1fe44
Merge pull request #3998 from deltachat/dependabot/cargo/tokio-1.25.0
2023-01-30 22:46:26 +00:00
dependabot[bot]
11bfa2a813
Merge pull request #3995 from deltachat/dependabot/cargo/regex-1.7.1
2023-01-30 22:44:56 +00:00
dependabot[bot]
05d6bde362
cargo: bump tokio from 1.24.1 to 1.25.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.24.1 to 1.25.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.24.1...tokio-1.25.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-30 18:55:10 +00:00
dependabot[bot]
afcbbb3538
cargo: bump toml from 0.5.10 to 0.7.0
...
Bumps [toml](https://github.com/toml-rs/toml ) from 0.5.10 to 0.7.0.
- [Release notes](https://github.com/toml-rs/toml/releases )
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.5.10...toml-v0.7.0 )
---
updated-dependencies:
- dependency-name: toml
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-30 18:55:01 +00:00
dependabot[bot]
8fd117ee8c
cargo: bump regex from 1.7.0 to 1.7.1
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.7.0...1.7.1 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-30 18:54:40 +00:00
dependabot[bot]
d031e1a7e9
cargo: bump reqwest from 0.11.13 to 0.11.14
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.13 to 0.11.14.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.13...v0.11.14 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-30 18:54:31 +00:00
missytake
e83fa8840b
python bindings account setup: remove deviation from default config
2023-01-30 17:46:13 +01: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
dependabot[bot]
8c0296ca67
Merge pull request #3971 from deltachat/dependabot/cargo/bumpalo-3.12.0
2023-01-27 14:59:33 +00:00
dependabot[bot]
7ef094325d
cargo: bump bumpalo from 3.10.0 to 3.12.0
...
Bumps [bumpalo](https://github.com/fitzgen/bumpalo ) from 3.10.0 to 3.12.0.
- [Release notes](https://github.com/fitzgen/bumpalo/releases )
- [Changelog](https://github.com/fitzgen/bumpalo/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fitzgen/bumpalo/compare/3.10.0...3.12.0 )
---
updated-dependencies:
- dependency-name: bumpalo
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-27 14:28:32 +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
iequidoo
4c5ed3df2c
Add a test for verified groups with multiple devices on a joining side ( #3836 )
...
There was the following bug:
- Bob has two devices, the second is offline.
- Alice creates a verified group and sends a QR invitation to Bob.
- Bob joins the group.
- Bob's second devices goes online, but sees a contact request instead of the verified group.
- The "member added" message is not a system message but a plain text message.
- Sending a message fails as the key is missing -- message info says "proper enc-key for <Alice>
missing, cannot encrypt".
2023-01-25 20:28:49 -03: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
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
Sebastian Klähn
6067622c19
fix node readme ( #3974 )
...
fix node readme
2023-01-23 12:36:41 +01: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
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
57d7df530b
Add a test that a new verified member is seen on the second device going online ( #3836 )
...
- Alice has two devices, the second is offline.
- Alice creates a verified group and sends a QR invitation to Bob.
- Bob joins the group and sends a message there. Alice sees it.
- Alice's second devices goes online, but doesn't see Bob in the group.
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
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
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
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
iequidoo
6d9d31cad1
Add timeouts to HTTP requests ( #3908 )
2023-01-11 14:29:49 -03: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
Hocuri
68cd8dbc3e
Only send IncomingMsgBunch if there are more than 0 new messages ( #3941 )
2023-01-10 13:18:40 +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
Hocuri
8d119713bc
Print chats when a test failed ( #3937 )
...
* Print chats after a test failed again
E.g.
```
========== Chats of bob: ==========
Single#Chat#10: alice@example.org [alice@example.org ]
--------------------------------------------------------------------------------
Msg#10: (Contact#Contact#10): hellooo [FRESH]
Msg#11: (Contact#Contact#10): hellooo without mailing list [FRESH]
--------------------------------------------------------------------------------
========== Chats of alice: ==========
Single#Chat#10: bob@example.net [bob@example.net ]
--------------------------------------------------------------------------------
Msg#10: Me (Contact#Contact#Self): hellooo √
Msg#11: Me (Contact#Contact#Self): hellooo without mailing list √
--------------------------------------------------------------------------------
```
I found this very useful sometimes, so, let's try to re-introduce it (it
was removed in #3449 )
* Add failing test for TestContext::drop()
* Do not panic in TestContext::drop() if runtime is dropped
Co-authored-by: link2xt <link2xt@testrun.org >
2023-01-09 22:46:32 +01:00
Simon Laux
07f2e28eca
fix: only send contact changed event for recently seen if it is relevant ( #3938 )
...
(no events for contacts that are already offline again)
This dramatically speeds up replay after backup import on desktop.
2023-01-09 21:12:33 +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
dependabot[bot]
7e673fee90
Merge pull request #3926 from deltachat/dependabot/cargo/fuzz/tokio-1.24.1
2023-01-08 09:52:30 +00:00
Simon Laux
847611aed4
improve error of node tests ( #3928 )
...
remove unused imports
and fail without revealing the token
2023-01-07 23:37:54 +01:00
dependabot[bot]
15674111b4
Bump tokio from 1.23.0 to 1.24.1 in /fuzz
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.23.0 to 1.24.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.23.0...tokio-1.24.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-07 16:39:18 +00:00
dependabot[bot]
1b2feeb99c
Merge pull request #3901 from deltachat/dependabot/cargo/serde_json-1.0.91
2023-01-07 16:38:19 +00:00
dependabot[bot]
f2f211908d
cargo: bump serde_json from 1.0.89 to 1.0.91
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.89 to 1.0.91.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.89...v1.0.91 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-07 15:58:34 +00:00
dependabot[bot]
ac9e3c6260
Merge pull request #3927 from deltachat/dependabot/cargo/tokio-1.23.1
2023-01-07 15:57:24 +00:00
link2xt
58ba107d01
Resultify Message::get_filebytes()
2023-01-07 01:00:30 +00:00
Simon Laux
087b4289e5
jsonrpc: add fresh message count to the archive-link chatlistitem variant ( #3920 )
...
this is a followup to #3918
I went with option "C" from my comment:
https://github.com/deltachat/deltachat-core-rust/pull/3918#issuecomment-1371224339
- Archive link is (still) very different from a normal chat, so most of the options would be empty / not relevant
- avatar path is not needed as desktop renders it differently anyway,
it's not really a chat like saved messages or device messages where it made more sense
for the core to supply the icon, vs. using the svg directly.
- translating the string in the coreas stock-string is more annoying than doing it from the ui, especially when
this special pseudo chat has different rendering anyway so also no need to provide a name property
2023-01-07 00:34:47 +01:00
dependabot[bot]
3df5f6110c
cargo: bump tokio from 1.23.0 to 1.23.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.23.0 to 1.23.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.23.0...tokio-1.23.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-06 23:10:29 +00:00
dependabot[bot]
6efb2a2054
Merge pull request #3894 from deltachat/dependabot/cargo/base64-0.20.0
2023-01-06 23:09:16 +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
bjoern
eba96eb904
mark all archived read ( #3919 )
...
* let marknoticed_chat() work for DC_CHAT_ID_ARCHIVED_LINK
* fix test_util::get_last_msg() - the first position may be the archive-link if 'adding specials' is allowed
* add a test for the archived-link message counter
* update CHANGELOG
2023-01-06 11:22:30 +01: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
link2xt
754c7324f5
Print more anyhow errors with their causes
2023-01-05 21:21:42 +00:00
link2xt
2b4e32d2cf
Remove unused KeyType from DcKey trait
...
It always equals Self.
2023-01-05 21:20:15 +00:00
dependabot[bot]
9ed933f835
Merge pull request #3893 from deltachat/dependabot/cargo/quick-xml-0.27.1
2023-01-05 18:06:51 +00:00
dependabot[bot]
c4b3579c60
Merge pull request #3898 from deltachat/dependabot/cargo/serde-1.0.152
2023-01-05 18:06:31 +00:00
bjoern
c5d1802346
"archive" consistency and improvements ( #3918 )
...
* move 'archived link' betweeen pinned and normal cahts or above normal chats
* add icon for 'archived chats' link
* let get_fresh_msg_cnt() work for DC_CHAT_ID_ARCHIVED_LINK
* move 'archived link' topmost
* use less noticeable archived-icon
* slightly smaller archived icon
* update CHANGELOG
2023-01-05 10:31:47 +01:00
dependabot[bot]
d873f88b56
cargo: bump serde from 1.0.148 to 1.0.152
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.148 to 1.0.152.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.148...v1.0.152 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-05 00:32:24 +00:00
dependabot[bot]
17781066a2
Merge pull request #3899 from deltachat/dependabot/cargo/toml-0.5.10
2023-01-05 00:26:55 +00:00
dependabot[bot]
ac0fbaad21
cargo: bump quick-xml from 0.26.0 to 0.27.1
...
Bumps [quick-xml](https://github.com/tafia/quick-xml ) from 0.26.0 to 0.27.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.26.0...v0.27.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 >
2023-01-04 23:51:59 +00:00
dependabot[bot]
8ac7f639d8
cargo: bump toml from 0.5.9 to 0.5.10
...
Bumps [toml](https://github.com/toml-rs/toml ) from 0.5.9 to 0.5.10.
- [Release notes](https://github.com/toml-rs/toml/releases )
- [Commits](https://github.com/toml-rs/toml/commits/toml-v0.5.10 )
---
updated-dependencies:
- dependency-name: toml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-04 23:50:21 +00:00
dependabot[bot]
3ac1d30a3a
Merge pull request #3903 from deltachat/dependabot/cargo/once_cell-1.17.0
2023-01-04 23:49:26 +00:00
dependabot[bot]
1f420777af
cargo: bump once_cell from 1.16.0 to 1.17.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.16.0...v1.17.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-04 14:38:48 +00:00
link2xt
37a212ddc4
ci: remove failing actions-rs/toolchain calls
...
It fails because there is no `rust-toolchain` file anymore.
ubuntu-latest already has cargo installed, there is no need
to reintall it.
2023-01-04 13:35:11 +00:00
link2xt
138e62e1ef
Improve error handling of existing messages fetch and never retry
...
There are at least two user reports that fetching existing messages
sometimes results in infinite loop of retrying it. Account is working
if set up from the backup, but never starts working if set up
from scratch.
This change improves error reporting, but also sets FetchedExistingMsgs
before actually trying to do it. This way if the operation fails,
connection is reestablished, but fetching existing messages is not
retried again over and over.
2023-01-03 18:57:45 +00:00
link2xt
5b12784589
ci: update rust toolchain for repl.exe builds
2023-01-03 15:45:08 +00:00
link2xt
c9ab9d59c2
Adapt the comment, there is no more rust-toolchain
2023-01-03 13:54:23 +00:00
link2xt
ac15b3a5af
Remove rust-toolchain file
...
Any Rust toolchain above MSRV should be usable.
2023-01-03 13:52:57 +00:00
link2xt
468356b120
Trigger reconnection when failing to fetch existing messages
2023-01-03 13:50:37 +00:00
link2xt
f0a28b9168
Log the error before triggering reconnect
...
This way "Dropping an IMAP connection" message appears
after the cause for connection drop.
2023-01-03 12:08:24 +00:00
link2xt
c8f0c6b5f6
Add more IMAP logs
2023-01-03 12:06:27 +00:00
dependabot[bot]
e653531934
cargo: bump base64 from 0.13.1 to 0.20.0
...
Bumps [base64](https://github.com/marshallpierce/rust-base64 ) from 0.13.1 to 0.20.0.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases )
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.13.1...v0.20.0 )
---
updated-dependencies:
- dependency-name: base64
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-02 22:36:56 +00:00
dependabot[bot]
3444c2aadd
Merge pull request #3900 from deltachat/dependabot/cargo/backtrace-0.3.67
2023-01-02 22:32:35 +00:00
link2xt
7aa7548a51
Changelog
2023-01-02 22:11:09 +00:00
link2xt
5b3596987b
Test that STARTTLS connection works
2023-01-02 22:11:09 +00:00
link2xt
1e5c90ed65
Fix STARTTLS connection
2023-01-02 22:11:09 +00:00
link2xt
f694d2e150
Format configure() logs with error causes
2023-01-02 22:11:09 +00:00
dependabot[bot]
9738d53a82
Merge pull request #3902 from deltachat/dependabot/cargo/libc-0.2.139
2023-01-02 21:43:52 +00:00
dependabot[bot]
e1d9dac70c
Merge pull request #3905 from deltachat/dependabot/cargo/quote-1.0.23
2023-01-02 14:18:49 +00:00
dependabot[bot]
e6324e3a19
cargo: bump libc from 0.2.137 to 0.2.139
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.137 to 0.2.139.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.137...0.2.139 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-02 13:44:38 +00:00
dependabot[bot]
4489db76c9
cargo: bump quote from 1.0.21 to 1.0.23
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.21 to 1.0.23.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.21...1.0.23 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-02 13:43:57 +00:00
dependabot[bot]
67ffada4b3
Merge pull request #3904 from deltachat/dependabot/cargo/mailparse-0.14.0
2023-01-02 13:41:12 +00:00
link2xt
9aaf5cf914
Disable Nagle's algorithm for TCP connections
2023-01-02 11:15:21 +00:00
link2xt
08af7419af
Format configuration error with causes
2023-01-02 11:15:21 +00:00
link2xt
035b711ee3
Buffer IMAP client writes
...
async-imap does not do its own buffering, but calls flush() after
sending each command. Using BufWriter reduces the number of write()
system calls used to send a single command.
Note that BufWriter is set up on top of TLS streams, because
we can't guarantee that TLS libraries flush the stream before
waiting for response.
2023-01-02 11:15:21 +00:00
dependabot[bot]
5ad25dedf8
Merge pull request #3896 from deltachat/dependabot/cargo/humansize-2.1.3
2023-01-01 23:28:03 +00:00
dependabot[bot]
de47aa8466
cargo: bump mailparse from 0.13.8 to 0.14.0
...
Bumps [mailparse](https://github.com/staktrace/mailparse ) from 0.13.8 to 0.14.0.
- [Release notes](https://github.com/staktrace/mailparse/releases )
- [Commits](https://github.com/staktrace/mailparse/compare/v0.13.8...v0.14.0 )
---
updated-dependencies:
- dependency-name: mailparse
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-01 23:24:38 +00:00
dependabot[bot]
9a78bd6e3f
Merge pull request #3891 from deltachat/dependabot/cargo/num_cpus-1.15.0
2023-01-01 23:23:38 +00:00
dependabot[bot]
08cbb66a55
Merge pull request #3897 from deltachat/dependabot/cargo/tokio-1.23.0
2023-01-01 23:23:05 +00:00
dependabot[bot]
824cf93494
Merge pull request #3892 from deltachat/dependabot/cargo/anyhow-1.0.68
2023-01-01 23:20:32 +00:00
dependabot[bot]
00d2f2e7b4
Merge pull request #3895 from deltachat/dependabot/cargo/syn-1.0.107
2023-01-01 23:20:06 +00:00
dependabot[bot]
968ad2859e
Merge pull request #3890 from deltachat/dependabot/cargo/thiserror-1.0.38
2023-01-01 23:19:48 +00:00
dependabot[bot]
11ca12e43c
cargo: bump backtrace from 0.3.66 to 0.3.67
...
Bumps [backtrace](https://github.com/rust-lang/backtrace-rs ) from 0.3.66 to 0.3.67.
- [Release notes](https://github.com/rust-lang/backtrace-rs/releases )
- [Commits](https://github.com/rust-lang/backtrace-rs/compare/0.3.66...0.3.67 )
---
updated-dependencies:
- dependency-name: backtrace
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-01 21:02:53 +00:00
dependabot[bot]
15fad5476e
cargo: bump tokio from 1.22.0 to 1.23.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.22.0 to 1.23.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.22.0...tokio-1.23.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-01 21:02:20 +00:00
dependabot[bot]
4e468fdf24
cargo: bump humansize from 2.1.2 to 2.1.3
...
Bumps [humansize](https://github.com/LeopoldArkham/humansize ) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/LeopoldArkham/humansize/releases )
- [Changelog](https://github.com/LeopoldArkham/humansize/blob/master/changelog.md )
- [Commits](https://github.com/LeopoldArkham/humansize/commits )
---
updated-dependencies:
- dependency-name: humansize
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-01 21:02:06 +00:00
dependabot[bot]
cb4b9fce30
cargo: bump syn from 1.0.105 to 1.0.107
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.105 to 1.0.107.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.105...1.0.107 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-01 21:01:55 +00:00
dependabot[bot]
a562348dfa
cargo: bump anyhow from 1.0.66 to 1.0.68
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.66 to 1.0.68.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.66...1.0.68 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-01 21:01:22 +00:00
dependabot[bot]
bcef1c7a76
cargo: bump num_cpus from 1.14.0 to 1.15.0
...
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus ) from 1.14.0 to 1.15.0.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases )
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.14.0...v1.15.0 )
---
updated-dependencies:
- dependency-name: num_cpus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-01 21:01:13 +00:00
dependabot[bot]
4bbb83826c
cargo: bump thiserror from 1.0.37 to 1.0.38
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.37 to 1.0.38.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.37...1.0.38 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-01 21:01:06 +00:00
link2xt
b9dbf1873d
node: do not truncate assertion errors
2023-01-01 21:20:36 +03:00
link2xt
45462fb47e
Fix uncaught exception in node JSON-RPC tests
...
Events don't have an `id`, so promises[response.id] does
not exist for them.
This currently prints a DEP0168 [1] deprecation warning,
but will likely return an error in the future.
[1] https://nodejs.org/api/all.html#all_deprecations_dep0168-unhandled-exception-in-node-api-callbacks
2022-12-31 11:50:21 +00:00
bjoern
bf4ad692df
use u32 as id as done elsewhere ( #3882 )
...
this will avoid some incompatibilities and castingss in UI.
2022-12-30 19:53:44 +01:00
Rafael Diniz
4e943d52e4
Add mappings for some file types to Viewtype / MIME type
...
Namely: ppt, pptx, xls, heif, heic, avif, txt.
But use Viewtype::File for medias without uniform support on all platforms.
2022-12-29 08:37:31 -03:00
link2xt
7082f9f882
Fix fuzzing module warnings
2022-12-28 19:01:48 +00:00
link2xt
4a982fe632
Add fuzzing tests
2022-12-28 16:23:19 +00:00
link2xt
1e351bd05f
Add documentation to simplify.rs
2022-12-28 15:09:20 +00:00
dependabot[bot]
f0d5bfd42f
Merge pull request #3722 from deltachat/dependabot/cargo/quick-xml-0.26.0
2022-12-27 17:36:11 +00:00
link2xt
256ef7c5ec
Add missing documentation for location streaming
2022-12-27 17:31:24 +00:00
link2xt
6e63555bc8
Add missing documentation for the download state
2022-12-27 17:30:39 +00:00
dependabot[bot]
5432e108a1
cargo: bump quick-xml from 0.23.0 to 0.26.0
...
Bumps [quick-xml](https://github.com/tafia/quick-xml ) from 0.23.0 to 0.26.0.
- [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.23.0...v0.26.0 )
---
updated-dependencies:
- dependency-name: quick-xml
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-27 14:01:33 -03:00
link2xt
3fcd17e6a5
Add missing documentation for Summary constructor
2022-12-27 12:02:23 +00: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 )
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
iequidoo
c3a0bb2b77
Fix cargo clippy and doc errors after Rust update to 1.66
2022-12-16 02:46:04 +04:00
link2xt
2cd63234c1
Do not allow missing documentation by default
2022-12-13 23:45:12 +00:00
bjoern
ccd0842df8
do not SELECT * on old tables to fill new ones ( #3842 )
...
* do not `SELECT *` on old tables to fill new ones
the old table may contain deprecrated columns for whatever reason;
as a result the query fails as the statement tries to insert eg.
16 columns into 12 colums
(concrete error for acpeerstate that have several deprecated columns)
* update CHANGELOG
2022-12-13 20:12:29 +01:00
link2xt
2a2db4f526
Remove unused pytest-async plugin
...
We use pytest-asyncio instead
2022-12-13 17:13:19 +00:00
iequidoo
21f1439ad8
Treat attached PGP keys as peer keys with mutual encryption preference ( #3778 )
2022-12-13 04:57:45 +04:00
iequidoo
4cbcd3c606
Revert "mimeparser: assume all Thunderbird users prefer encryption" except for the test ( #3778 )
...
This partially reverts commit b341cfd4d9 .
2022-12-13 04:57:45 +04:00
iequidoo
1f14767fe9
Revert "Fix misplaced info! message" ( #3778 )
...
This reverts commit 08de326930 .
2022-12-13 04:57:45 +04:00
Hocuri
0b53c35523
Add new recipients of MUA emails to the group member list ( #3781 )
2022-12-12 21:46:23 +00:00
link2xt
552a8044b0
Add missing documentation to accounts.rs
2022-12-12 21:35:09 +00:00
link2xt
cc96c436a9
Add empty deltachat-jsonrpc/typescript/generated/ folder
...
Otherwise `cargo test -p deltachat-jsonrpc generate_events_ts_types_definition` fails
if `yerpc` does not create the folder first.
2022-12-12 21:31:57 +00:00
link2xt
585a6f15a6
python: do not use isort 5.11.0
2022-12-12 20:43:28 +00:00
dependabot[bot]
f37e50cc71
Merge pull request #3798 from deltachat/dependabot/cargo/chrono-0.4.23
2022-12-12 15:09:57 +00:00
link2xt
3023d3c358
Don't use deprecated chrono functions
2022-12-11 23:43:00 +00:00
dependabot[bot]
08562b645e
cargo: bump chrono from 0.4.22 to 0.4.23
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.22 to 0.4.23.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.22...v0.4.23 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-11 21:20:36 +00:00
Asiel Díaz Benítez
edb1d2fb9e
Merge pull request #3813 from deltachat/adb/rpc-client-improvements
...
python deltachat-rpc-client improvements
2022-12-10 14:34:23 -05:00
adbenitez
9645101de2
add SystemMessageType and ViewType
2022-12-10 13:44:42 -05:00
adbenitez
c1bbd6e766
fix tests
2022-12-10 13:44:21 -05:00
link2xt
72ca4c2e1f
Changelog
2022-12-10 15:29:02 +00:00
link2xt
bccd79b6be
Set read/write timeouts for IMAP SOCKS5 streams
2022-12-10 15:29:02 +00:00
link2xt
109a27c9ef
Move Socks5Config to a separate module
2022-12-10 15:29:02 +00:00
Hocuri
2fa2ade3ae
use context.get_config_bool() for Config::Bot everywhere ( #3834 )
...
We were already using context.get_config_bool(Config::Bot) in some
places, this unifies this.
Followup for #3831
2022-12-10 15:10:45 +01:00
adbenitez
0a4c8a40ba
solve review comments
2022-12-09 12:52:01 -05:00
adbenitez
c49743d38c
add more tests
2022-12-09 12:52:01 -05:00
adbenitez
a9afc1e6ba
add more high-level methods and event hooking
2022-12-09 12:52:01 -05:00
link2xt
aa6f5fd139
Release 1.103.0
2022-12-09 17:43:03 +00:00
link2xt
519f658c07
Make bots automatically accept mailing list chats
2022-12-09 17:24:21 +00:00
link2xt
f5cb56fd86
Fix deltachat-rpc-server tests for tox 4
2022-12-09 17:23:20 +00:00
link2xt
c830db07ad
Add testenv:.pkg to tox.ini
2022-12-09 17:23:20 +00:00
link2xt
9093702692
ci: upgrade to tox 4.0
2022-12-09 17:23:20 +00:00
link2xt
edd58b4b7a
imap: disable read timeout during IDLE
...
Otherwise IDLE restarts every 30 seconds.
2022-12-09 11:06:34 +00:00
link2xt
72432d65ba
imap: add connect() timeouts
2022-12-08 21:50:03 +00:00
Hocuri
eb611a2855
Make the IMAP_TIMEOUT type-safe
2022-12-08 17:17:33 +00:00
link2xt
8aa73ed6ae
Set read/write timeouts for IMAP sockets
2022-12-08 17:16:32 +00:00
link2xt
1224222984
ci: remove dependency on actions-rs/cargo
...
It is unmaintained and throws many warnings about using deprecated
Node and GitHub Actions commands.
2022-12-08 18:04:41 +01:00
link2xt
3360c6aa96
Downgrade tox to version 3
...
Our CI pipeline currently does not work with tox 4.0.
2022-12-08 15:38:28 +00:00
holger krekel
bfddd3fc69
fix typo
2022-12-07 09:44:54 +01:00
link2xt
35cd81a75f
python: do not pass NULL to ffi.gc if the context can't be created
2022-12-07 09:44:54 +01:00
link2xt
f11fceb63a
Move IMAP session state into imap::session::Session
...
IMAP capabilities and selected folder are IMAP session,
not IMAP client property.
Moving most operations into IMAP session structure
removes the need to constantly check whether IMAP session exists
and reduces number of invalid states, e.g. when a folder is selected but
there is no connection.
Capabilities are determined immediately after logging in,
so there is no need for `capabilities_determined` flag anymore.
Capabilities of the server are always known if there is a session.
`should_reconnect` flag and `disconnect()` function are removed: we
drop the session on error. Even though RFC 3501 says that a client
SHOULD NOT close the connection without a LOGOUT, it is more reliable
to always just drop the connection, especially after an error.
2022-12-06 19:38:41 +00:00
link2xt
f14a28db54
Remove autogenerated typescript files
2022-12-06 19:25:04 +00:00
link2xt
cacc01bac0
Add IMAP server ID to the context info only when it is known
2022-12-06 16:01:26 +00:00
Hocuri
fc386f4fa1
Completely disable Autocrypt & Authres-checking for mailing lists ( #3765 )
...
* Because both only make problems with mailing lists, it's easiest to just disable them. If we want, we can make them work properly with mailing lists one day and re-enable them, but this needs some further thoughts.
Part of #3701
* Use load_from_db() in more tests
* clippy
* Changelog
* Downgrade warning to info, improve message
* Use lifetimes instead of cloning
2022-12-05 19:00:56 +00:00
link2xt
3743aaa16e
Refactor fetch_many_msgs and add more logging
2022-12-05 12:54:40 +00:00
dependabot[bot]
22b4640b31
Merge pull request #3627 from deltachat/dependabot/cargo/criterion-0.4.0
2022-12-04 20:15:18 +00:00
dependabot[bot]
1dcda4989d
cargo: bump criterion from 0.3.6 to 0.4.0
...
Bumps [criterion](https://github.com/bheisler/criterion.rs ) from 0.3.6 to 0.4.0.
- [Release notes](https://github.com/bheisler/criterion.rs/releases )
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.3.6...0.4.0 )
---
updated-dependencies:
- dependency-name: criterion
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-04 18:53:49 +00:00
dependabot[bot]
e59768167a
Merge pull request #3801 from deltachat/dependabot/cargo/axum-0.6.1
2022-12-04 18:52:07 +00:00
link2xt
7e5becb5e5
Log the reason when the message cannot be sent to the chat
2022-12-04 18:51:14 +00:00
link2xt
b4f348ccea
Merge async JSON-RPC client
...
PR: https://github.com/deltachat/deltachat-core-rust/pull/3734
2022-12-04 21:02:50 +03:00
dependabot[bot]
7a0dd24681
cargo: bump axum from 0.5.17 to 0.6.1
...
Bumps [axum](https://github.com/tokio-rs/axum ) from 0.5.17 to 0.6.1.
- [Release notes](https://github.com/tokio-rs/axum/releases )
- [Changelog](https://github.com/tokio-rs/axum/blob/main/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/axum/compare/axum-v0.5.17...axum-v0.6.1 )
---
updated-dependencies:
- dependency-name: axum
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-04 15:29:42 +00:00
dependabot[bot]
e5ae82252f
Merge pull request #3797 from deltachat/dependabot/cargo/env_logger-0.10.0
2022-12-04 15:28:07 +00:00
dependabot[bot]
49c45d1007
Merge pull request #3799 from deltachat/dependabot/cargo/image-0.24.5
2022-12-04 15:27:44 +00:00
link2xt
5502bff986
Make _args and _kwargs private in Rpc
2022-12-04 14:03:59 +00:00
link2xt
ee19789cac
Make _rpc private
2022-12-04 14:03:43 +00:00
link2xt
bad5a1de55
Ignore .tox everywhere, not only in python/
2022-12-04 13:57:38 +00:00
link2xt
3cdbe213a3
python: rename Deltachat class into DeltaChat
2022-12-04 13:56:53 +00:00
dependabot[bot]
3b5b1bf877
cargo: bump env_logger from 0.9.1 to 0.10.0
...
Bumps [env_logger](https://github.com/rust-cli/env_logger ) from 0.9.1 to 0.10.0.
- [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.9.1...v0.10.0 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-04 13:51:18 +00:00
dependabot[bot]
bcd9229ffe
cargo: bump image from 0.24.4 to 0.24.5
...
Bumps [image](https://github.com/image-rs/image ) from 0.24.4 to 0.24.5.
- [Release notes](https://github.com/image-rs/image/releases )
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/compare/v0.24.4...v0.24.5 )
---
updated-dependencies:
- dependency-name: image
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-04 13:43:02 +00:00
link2xt
4df588668a
Bump MSRV to 1.61.0
...
This is required by `image` crate.
Also update current Rust version to 1.65.0.
2022-12-04 12:24:17 +00:00
iequidoo
de96500c1a
Add a test on reactions after a reordering MOVE to DeltaChat folder ( #3756 )
2022-12-04 04:40:11 +04:00
iequidoo
9b881cdd19
Fetch messages in the order of their INTERNALDATE ( #3756 )
...
When a batch of messages is moved from Inbox to DeltaChat folder with a single MOVE command, their
UIDs may be reordered (e.g. Gmail is known for that) which leads to that messages are processed by
receive_imf in the wrong order. But the INTERNALDATE attribute is preserved during a MOVE according
to RFC3501. So, use it for sorting fetched messages.
2022-12-04 04:40:11 +04:00
link2xt
2ccf39800d
Remove start_rpc_server() and make Rpc a context manager
...
Rpc now has a start() method.
This way it is possible to use Rpc from IPython without calling __aenter__()
2022-12-04 00:02:32 +00:00
link2xt
5a3065344e
Properly terminate Rpc and remove sleep() hack
2022-12-03 23:30:50 +00:00
link2xt
98b6b5e3f6
Update instructions on using ipython
2022-12-03 18:37:02 +00:00
dependabot[bot]
4d81fa6df5
Merge pull request #3795 from deltachat/dependabot/cargo/num_cpus-1.14.0
2022-12-03 17:47:28 +00:00
dependabot[bot]
8e8582e953
Merge pull request #3791 from deltachat/dependabot/cargo/serde-1.0.148
2022-12-03 17:02:47 +00:00
link2xt
7f4c05e88f
ci: do not use deprecated set-output
...
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-12-03 13:54:11 +00:00
link2xt
20e63659a1
CI: update GitHub Actions to avoid deprecation warnings
2022-12-03 13:51:57 +00:00
dependabot[bot]
c5af69db2b
cargo: bump serde from 1.0.147 to 1.0.148
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.147 to 1.0.148.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.147...v1.0.148 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-03 13:25:10 +00:00
dependabot[bot]
030241d1c3
Merge pull request #3804 from deltachat/dependabot/cargo/tagger-4.3.4
2022-12-03 13:23:20 +00:00
dependabot[bot]
4f01c43a93
Merge pull request #3796 from deltachat/dependabot/cargo/serde_json-1.0.89
2022-12-03 13:19:51 +00:00
dependabot[bot]
ab94471e91
Merge pull request #3794 from deltachat/dependabot/cargo/uuid-1.2.2
2022-12-03 00:36:55 +00:00
dependabot[bot]
140aa68811
cargo: bump serde_json from 1.0.87 to 1.0.89
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.87 to 1.0.89.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.87...v1.0.89 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-03 00:13:28 +00:00
dependabot[bot]
d9ef38e370
Merge pull request #3803 from deltachat/dependabot/cargo/tokio-1.22.0
2022-12-03 00:11:39 +00:00
dependabot[bot]
acf66116cd
Merge pull request #3805 from deltachat/dependabot/cargo/syn-1.0.105
2022-12-03 00:10:17 +00:00
dependabot[bot]
8e69125128
Merge pull request #3806 from deltachat/dependabot/cargo/sha-1-0.10.1
2022-12-02 23:06:29 +00:00
dependabot[bot]
7402ca3568
cargo: bump tokio from 1.21.2 to 1.22.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.21.2 to 1.22.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.21.2...tokio-1.22.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-02 18:28:24 +00:00
dependabot[bot]
d7b240f25c
cargo: bump syn from 1.0.103 to 1.0.105
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.103 to 1.0.105.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.103...1.0.105 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-02 17:31:27 +00:00
dependabot[bot]
e5e4d3bed4
cargo: bump tagger from 4.3.3 to 4.3.4
...
Bumps [tagger](https://github.com/tiby312/tagger ) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/tiby312/tagger/releases )
- [Commits](https://github.com/tiby312/tagger/commits )
---
updated-dependencies:
- dependency-name: tagger
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-02 17:31:25 +00:00
dependabot[bot]
1a59302749
Merge pull request #3793 from deltachat/dependabot/cargo/async-channel-1.8.0
2022-12-02 17:29:30 +00:00
dependabot[bot]
f0a5bbedb4
cargo: bump async-channel from 1.7.1 to 1.8.0
...
Bumps [async-channel](https://github.com/smol-rs/async-channel ) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/smol-rs/async-channel/releases )
- [Changelog](https://github.com/smol-rs/async-channel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/smol-rs/async-channel/compare/v1.7.1...v1.8.0 )
---
updated-dependencies:
- dependency-name: async-channel
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-02 15:15:40 +00:00
dependabot[bot]
139665b3d6
Merge pull request #3792 from deltachat/dependabot/cargo/typescript-type-def-0.5.5
2022-12-02 15:13:42 +00:00
dependabot[bot]
ca23d59148
Merge pull request #3802 from deltachat/dependabot/cargo/regex-1.7.0
2022-12-02 15:13:09 +00:00
dependabot[bot]
1635f00a62
Merge pull request #3800 from deltachat/dependabot/cargo/reqwest-0.11.13
2022-12-02 15:11:17 +00:00
adbenitez
29a4404257
enably type-checking in tests
2022-12-01 20:33:05 -05:00
adbenitez
24db29f526
Merge remote-tracking branch 'upstream/link2xt/async-jsonrpc-client' into adb/async-jsonrpc-client
2022-12-01 20:32:36 -05:00
dependabot[bot]
e27b64274f
cargo: bump sha-1 from 0.10.0 to 0.10.1
...
Bumps [sha-1](https://github.com/RustCrypto/hashes ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha-1-v0.10.0...md2-v0.10.1 )
---
updated-dependencies:
- dependency-name: sha-1
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:04:08 +00:00
dependabot[bot]
46721bcf46
cargo: bump regex from 1.6.0 to 1.7.0
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.6.0...1.7.0 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:03:25 +00:00
dependabot[bot]
80cefdd1d5
cargo: bump reqwest from 0.11.12 to 0.11.13
...
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.12 to 0.11.13.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.12...v0.11.13 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:03:06 +00:00
dependabot[bot]
9972f4da48
cargo: bump num_cpus from 1.13.1 to 1.14.0
...
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus ) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases )
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.13.1...v1.14.0 )
---
updated-dependencies:
- dependency-name: num_cpus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:02:25 +00:00
dependabot[bot]
1ab5401501
cargo: bump uuid from 1.2.1 to 1.2.2
...
Bumps [uuid](https://github.com/uuid-rs/uuid ) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/uuid-rs/uuid/releases )
- [Commits](https://github.com/uuid-rs/uuid/compare/1.2.1...1.2.2 )
---
updated-dependencies:
- dependency-name: uuid
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:02:20 +00:00
dependabot[bot]
0b60cc8341
cargo: bump typescript-type-def from 0.5.4 to 0.5.5
...
Bumps [typescript-type-def](https://github.com/dbeckwith/rust-typescript-type-def ) from 0.5.4 to 0.5.5.
- [Release notes](https://github.com/dbeckwith/rust-typescript-type-def/releases )
- [Changelog](https://github.com/dbeckwith/rust-typescript-type-def/blob/master/CHANGELOG.md )
- [Commits](https://github.com/dbeckwith/rust-typescript-type-def/compare/v0.5.4...v0.5.5 )
---
updated-dependencies:
- dependency-name: typescript-type-def
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-12-01 21:01:55 +00:00
link2xt
85b4746516
Turn start_rpc_server into a context manager
2022-12-01 16:36:36 +00:00
adbenitez
d17ac9c83c
add start_rpc_server() doc string
2022-12-01 03:34:43 -05:00
adbenitez
e6ff513aac
add support for PEP 561
2022-12-01 03:15:25 -05:00
adbenitez
ffbfeab977
add pytest plugin
2022-12-01 03:09:23 -05:00
adbenitez
09db062958
fix bug in Rpc.__getattr__()
2022-12-01 02:36:55 -05:00
adbenitez
ab7732d9ae
fix type hint in rpc.py
2022-12-01 02:26:50 -05:00
adbenitez
46594ec707
improve typing hints
2022-12-01 00:37:45 -05:00
adbenitez
18426561e3
fix bug in chat.get_encryption_info()
2022-12-01 00:14:07 -05:00
adbenitez
aeb7e3a9e1
fix some linter warnings
2022-11-30 23:56:50 -05:00
adbenitez
a77c46be20
fix bug in account.py: arguments declared as optional but not default value was given
2022-11-30 23:42:08 -05:00
adbenitez
a4be2cddf2
remove unused code in rpc.py
2022-11-30 23:11:50 -05:00
adbenitez
240b335181
fix bugs in account.secure_join() and chat.get_fresh_message_count()
2022-11-30 22:36:49 -05:00
link2xt
53d6807e8d
Simplify process_messages() in echo bot
2022-11-30 22:45:03 +00:00
link2xt
db38cc8891
Add get_fresh_messages_in_arrival_order() call
2022-11-30 22:43:05 +00:00
link2xt
4e2aeceeec
Do not reverse the list of fresh messages
...
Both reversed and original order do not make much sense
for the bot. Ideally bots should have their own key
to get the list of fresh messages in the order of IDs.
2022-11-30 22:38:25 +00:00
link2xt
9b04a04568
Add async python client for Delta Chat core JSON-RPC
2022-11-30 20:21:59 +00:00
link2xt
f2c97bda66
jsonrpc: add message errors to MessageObject
2022-11-30 20:35:36 +01:00
Hocuri
6c4d919828
Add members to chats in a single sql transation ( #3780 )
...
This esp. speeds up receive_imf a bit when we recreate the member list (recreate_member_list == true).
It's a preparation for https://github.com/deltachat/deltachat-core-rust/issues/3768 , which will be a one-line-fix, but recreate the member list more often, so that we want to optimize this case a bit.
It also adds a benchmark for this case. It's not that easy to make the benchmark non-flaky, but by closing all other programs and locking the CPU to 1.5GHz it worked. It is consistently a few percent faster than ./without-optim:
```
Receive messages/Receive 100 Chat-Group-Member-{Added|Removed} messages
time: [52.257 ms 52.569 ms 52.941 ms]
change: [-3.5301% -2.6181% -1.6697%] (p = 0.00 < 0.05)
Performance has improved.
Found 7 outliers among 100 measurements (7.00%)
4 (4.00%) high mild
3 (3.00%) high severe
```
2022-11-29 19:37:56 +00:00
iequidoo
f6a502a8e3
Remove the remaining AsRef<str> ( #3669 )
...
Using &str instead of AsRef is better for compile times, binary size and code complexity.
2022-11-28 17:02:05 -03:00
missytake
e5be023e4b
document provider pull
2022-11-28 18:03:32 +01:00
link2xt
47743bdcfa
Update humansize to version 2
2022-11-28 15:50:45 +00:00
link2xt
b0962363c2
Merge branch 'link2xt/peerstate-to-save-simplify'
2022-11-27 17:11:19 +00:00
link2xt
8855ef72bc
Clippy fix
2022-11-27 17:10:46 +00:00
link2xt
264727a414
Changelog
2022-11-27 17:10:46 +00:00
link2xt
98c16ddc4d
Remove Peerstate.to_save
2022-11-27 17:10:46 +00:00
link2xt
c7691fbebe
Use UPSERT when saving peerstates
...
This way there is no need to distinguish between creating
and updating peerstate.
2022-11-27 17:10:46 +00:00
link2xt
62f92d5b28
Add UNIQUE constraint to acpeerstates table
2022-11-27 17:10:46 +00:00
link2xt
2ae9165bfb
Remove different states of ToSave in peerstate
2022-11-27 17:10:46 +00:00
link2xt
08de326930
Fix misplaced info! message
2022-11-27 10:03:47 +00:00
link2xt
b341cfd4d9
mimeparser: assume all Thunderbird users prefer encryption
...
Co-Authored-By: missytake <missytake@systemli.org >
2022-11-24 19:20:56 +00:00
link2xt
a76b018900
Move changelog entry to the correct section
2022-11-24 11:23:36 +00:00
iequidoo
9783da5d8e
receive_imf: trim() "Chat-Group-Name{,-Changed}:" headers content ( #3650 )
...
It's a w/a for "Space added before long group names after MIME serialization/deserialization"
issue. DC itself never creates group names with leading/trailing whitespace, so it can be safely
removed. On the sender side there's no trim() because group names anyway go through
improve_single_line_input(). And I believe we should send the exact name we have in our db. Also
there's no check for leading/trailing whitespace because there may be existing user databases with
group names having such whitespaces.
2022-11-24 08:18:36 -03:00
link2xt
6f0985dcaa
Changelog
2022-11-23 22:38:12 +00:00
iequidoo
0b44886b62
Add a test for bug "Partially downloaded messages are received out of order" ( #3688 )
...
+ add Message.download_state property.
2022-11-23 23:51:50 +04:00
iequidoo
36991b5c8a
Add Python API to send reactions ( #3762 )
2022-11-23 23:51:50 +04:00
link2xt
afb7f89722
Do not try to redownload the message in case of any error
...
Since switch to async we don't have spurious "database is busy"
errors anymore. Since an error is irrecoverable in most cases,
we can skip the message. The cost of this is we may
accidentally skip a correct message if I/O fails, but
the advantage is that we are guaranteed to never confuse
irrecoverable error with recoverable one and get stuck in
infinite loop redownloading the same message over and over.
2022-11-23 17:56:56 +00:00