Simon Laux
53f8274c6f
fix get_provider_info docs
2022-06-25 23:36:39 +02:00
Simon Laux
65b242aa5c
use node 16 in ci
...
use `npm i` instead of `npm ci`
try fix ci script
and fix a doc comment
2022-06-25 23:36:39 +02:00
Simon Laux
bb6d7767b5
fix clippy
2022-06-25 23:36:39 +02:00
Simon Laux
227a75a5f7
get target dir from cargo
2022-06-25 23:36:39 +02:00
Simon Laux
8fb46d0b56
integrate json-rpc repo
...
https://github.com/deltachat/deltachat-jsonrpc
2022-06-25 23:36:39 +02:00
link2xt
0291094c62
Install tox into arm64 coredeps image
...
fixup for 0d1afe0938
2022-06-25 21:35:24 +00:00
Simon Laux
6220724bf4
rm async from generate constants
2022-06-25 23:32:47 +02:00
Simon Laux
102f6d9719
Update node/README.md
...
Co-authored-by: Robert Schütz <delta@dotlambda.de >
2022-06-25 23:32:47 +02:00
Simon Laux
aad94f12c1
node: add git installation info to readme
2022-06-25 23:32:47 +02:00
Simon Laux
065ef7ab38
make sure to also generate constants again in npm package build
...
(in case there are new constants that were forgotten to be updated before core tagging)
2022-06-25 23:32:47 +02:00
Simon Laux
008e78a022
node: remove split2 dependency
2022-06-25 23:32:47 +02:00
link2xt
548335082b
Use AUDITWHEEL_PLAT variable
...
manylinux images set AUDITWHEEL_PLAT variable
which is used as a default --plat value by auditwheel.
2022-06-25 21:13:07 +00:00
link2xt
a36885e886
node: fix typo in test name
2022-06-25 19:15:00 +00:00
link2xt
0d1afe0938
Simplify arm64 coredeps
...
Similar to parent x86_64 commit.
2022-06-25 18:46:22 +00:00
link2xt
7969249d89
Simplify x86_64 coredeps dockerfile
...
Don't build our own Perl and OpenSSL.
manylinux container already has recent Perl and we use vendored OpenSSL.
2022-06-25 18:18:29 +00:00
link2xt
52fc973ead
scripts/run_all.sh cleanup
...
There is no need to add symlinks to /bin,
/usr/local/bin containing all python versions
is already in the PATH of manylinux container.
2022-06-25 16:59:00 +00:00
link2xt
96f53f5cd2
ci: replace vito/oci-build-task with concourse/oci-build-task
...
It has been moved to https://github.com/concourse/oci-build-task
2022-06-25 16:56:39 +00:00
link2xt
f234bc19a1
node: stop IO on unref only if we own event loop
...
Otherwise unrefing context stops its IO even
when we use account manager, e.g. in desktop client.
2022-06-24 23:30:07 +00:00
bjoern
fcdf766769
forward_msgs(): add a test, refine docs ( #3446 )
...
* improve dc_forward_msgs() documentation
* test that forwarded info-messages lose their info-state
2022-06-24 14:46:06 +02:00
link2xt
525b04e69e
Format message lines starting with > as quotes
...
This makes quotes created by user display properly in other MUAs like
Thunderbird and not start with space in MUAs that don't support format=flowed.
To distinguish user-created quotes from top-quote inserted by Delta
Chat, a newline is inserted if there is no top-quote and the first
line starts with ">".
Nested quotes are not supported, e.g. line starting with "> >" will
start with ">" on the next line if wrapped.
2022-06-21 00:28:33 +00:00
link2xt
377fa01e98
Report imex and configure success/failure after freeing ongoing
...
Otherwise it's possible that library user (e.g. test)
tries to start another ongoing process when previous one is
not freed yet.
2022-06-20 23:10:08 +00:00
bjoern
7ce291fac5
do not use ratelimiter for bots ( #3439 )
...
* do not use ratelimiter for bots
i tried some other approaches as having optional ratelimiter
or handle `can_send()` for bots differently,
but all that results in _far_ more code and/or indirections -
esp. as the "bot" config can change and is also persisted -
and the ratelimiter is created
at a point where the database is not yet available ...
of course, all that could be refactored as well,
but this two-liner also does the job :)
* update CHANGELOG
2022-06-20 16:16:26 +02:00
link2xt
b88042a902
python: display configuration failure error
...
When configure fails, display error comment in pytest failure message.
2022-06-20 12:39:39 +00:00
link2xt
dc29ede6e3
restore pytest-rerunfailures
2022-06-20 11:52:59 +00:00
link2xt
becbb03d80
python: don't use devnull@testrun.org in test_add_remove_member_remote_events()
...
Otherwise testrun.org refuses to send the message at all,
because it knows devnull@testrun.org does not exist,
and the message doesn't reach ac2.
2022-06-19 17:09:02 +00:00
link2xt
bc604d4c24
Do not rerun python and node tests, exit on failure
2022-06-18 01:38:31 +00:00
link2xt
10f3ad6122
configure: emit errors via DC_EVENT_CONFIGURE_PROGRESS
...
Node test expects progress to report either success or error
eventually.
Also update the error text expected by node test.
2022-06-17 21:58:41 +00:00
link2xt
0ed3480258
Construct event channel outside of Context
...
This allows account manager to construct a single event channel and
inject it into all created contexts instead of aggregating events from
separate event emitters.
2022-06-11 15:52:55 +00:00
Floris Bruynooghe
8033966a70
Validate and simplify LoginParam struct
...
This makes sure that under normal circumstances the LoginParam struct
is always fully validated, ensure future use does not have to be
careful with this.
The brittle handling of `server_flags` is also abstraced away from
users of it and is now handled entirely internally, as the flags is
really only a boolean a lot of the flag parsing complexity is removed.
The OAuth2 flag is moved into the ServerLoginParam struct as it really
belongs in there.
2022-06-16 18:14:23 +02:00
link2xt
2361042ede
Disable unused chrono crate features
2022-06-13 21:54:43 +00:00
link2xt
f1ded231ed
node: break the loop if dc_accounts_get_next_event() returns NULL
2022-06-13 20:01:22 +00:00
link2xt
fa54e8a8ac
node: increase event handler queue size to 1000
...
Previously used value of 1 leads to deadlocks during tests shutdown.
2022-06-13 20:01:22 +00:00
link2xt
252ef4dbfb
accounts: interrupt event loop from Accounts.stop_io()
...
This allows to interrupt event loop via dc_accounts_stop_io() even if
there are no accounts.
2022-06-13 20:00:40 +00:00
link2xt
d2d788662a
node: wait for event loop to stop before freeing objects
...
This prevents segfaults during shutdown.
2022-06-13 19:59:33 +00:00
Simon Laux
82454243fa
Update webxdc-dev-reference.md
2022-06-13 15:34:52 +02:00
link2xt
d947479a60
Add SimplifiedText structure
...
Return structure from `simplify` instead of 5-tuple.
2022-06-12 21:08:32 +00:00
link2xt
8a4e07c83e
Replace Freenode references with Libera Chat
2022-06-12 19:09:29 +00:00
link2xt
776a3ecd1f
mimefactory: use async_std instead of std
...
Read files asynchronously to avoid blocking threads.
2022-06-12 18:38:10 +00:00
Hocuri
1ae67c4549
test_utils.rs improvements from my AEAP PR ( #3401 )
2022-06-12 19:29:22 +02:00
link2xt
7b369c9107
Remove unused DCC_IMAP_DEBUG variable
2022-06-12 12:41:05 +00:00
link2xt
1823ee04ee
Remove msgs_mdns references to deleted messages during housekeeping
2022-06-12 12:38:29 +00:00
link2xt
5c0447ee29
Replace BlobError type with anyhow
2022-06-12 00:25:20 +00:00
link2xt
29eb2cc68a
Remove rustfmt.toml
...
It contains wrong Rust edition 2018.
Without configuration rustfmt will look into Cargo.toml
and correctly detect current edition.
2022-06-11 20:43:42 +00:00
link2xt
1a171ad494
Run Python 3 instead of Python 3.7 from run-python-test.sh
...
User does not necessarily have python3.7 installed,
current version is 3.10.
2022-06-11 20:39:03 +00:00
link2xt
c0a17df344
Limit rate of MDNs
...
New ratelimiter module counts number of sent messages and calculates
the time until more messages can be sent.
Rate limiter is currently applied only to MDNs. Other messages are
sent without rate limiting even if quota is exceeded, but MDNs are not
sent until ratelimiter allows sending again.
2022-06-11 19:47:04 +00:00
link2xt
e993b37f1e
python: autoformat setup.py and install_python_bindings.py
2022-06-11 15:35:30 +00:00
Asiel Díaz Benítez
e280ca9db8
Merge pull request #3416 from deltachat/adb/add-missing-message-api
...
add missing Message API
2022-06-10 22:35:41 -04:00
bjoern
78f9383332
bubble up errors from update_param() and some related functions ( #3415 )
...
* bubble up errors from update_param() and some related functions
* log bubbled-up error in ffi
2022-06-10 16:41:20 +02:00
adbenitez
a96a4362cd
add missing Message API
2022-06-10 07:57:17 -04:00
Asiel Díaz Benítez
1fb6d1b59d
Merge pull request #3412 from deltachat/adb/allow-comparing-with-none
...
avoid exceptions when messages/contacts/chats are compared with None
2022-06-10 03:21:41 -04:00