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
adbenitez
f94d7d9ea5
add tests
2022-06-10 02:30:37 -04:00
Asiel Díaz Benítez
8eb04de748
Merge pull request #3411 from deltachat/adb/tweak-isort-config
...
move isort configuration to pyproject.toml
2022-06-09 05:08:54 -04:00
adbenitez
521d14a6e0
avoid exceptions when messages/contacts/chats are compared with None
2022-06-09 05:00:02 -04:00
adbenitez
e334b781fb
move isort configuration to pyproject.toml instead of passing it in command line usage in tox.ini, this allows isort usage with editors to pick the right configuration without manually tweaking it in the editors
2022-06-09 04:24:28 -04:00
bjoern
d286872782
force a reason when calling set_msg_failed() ( #3410 )
...
* force a reason when calling `set_msg_failed()`
the string is displayed to the user,
so even _some_ context as "NDN without further details"
is better than an empty string.
* make clippy happy
* add CHANGELOG entry
2022-06-08 21:25:34 +02:00
B. Petersen
db28349703
better definition of target group
2022-06-07 09:51:53 +02:00
B. Petersen
e8ff020543
add recent webxdc findings and reword example section
2022-06-07 09:51:53 +02:00
B. Petersen
3a971315dc
bump version to 1.86.0
py-1.86.0
1.86.0
2022-06-06 12:08:49 +02:00
B. Petersen
a37a38c79a
update changelog for 1.86.0
2022-06-06 12:08:49 +02:00
snan
b8cadaf8e6
Fix small typo
...
s/Changlog/Changelog/
2022-06-06 12:01:35 +02:00
link2xt
05abaa8461
Remove unused extern crates
2022-06-04 22:58:46 +00:00
link2xt
13e724c8ea
Remove unused error module
2022-06-04 20:55:07 +00:00
link2xt
0a51db3005
Enable clippy::unused_async lint
2022-06-04 17:46:17 +00:00
Asiel Díaz Benítez
4f02c811a3
update python API ( #3394 )
2022-06-04 18:12:38 +02:00
Simon Laux
0d1d1a25da
node: remove npx from build script, ( #3396 )
...
* node: remove `npx` from build script,
this broke flathub build
* add pr number to changelog
2022-06-04 17:03:03 +02:00
bjoern
cd27c143c3
update provider database ( #3399 )
...
ran `./src/provider/update.py ../provider-db/_providers/ > src/provider/data.rs`
2022-06-04 16:43:56 +02:00