link2xt
d6c24eb9f6
Make Accounts::background_fetch() not return Result
2024-01-31 14:04:03 +01:00
link2xt
f7fd1ef2bf
Emit DC_EVENT_ACCOUNTS_BACKGROUND_FETCH_DONE even on timeout
...
Otherwise if there is a timeout,
UI will wait for DC_EVENT_ACCOUNTS_BACKGROUND_FETCH_DONE forever.
2024-01-31 14:04:03 +01:00
link2xt
af7bf5bd2b
s/forgeting/forgetting/
2024-01-31 14:04:03 +01:00
link2xt
ea666f1098
Hide background_fetch_without_timeout from public API
2024-01-31 14:04:03 +01:00
Simon Laux
5bb80f94c7
Apply suggestions from code review
...
Co-authored-by: bjoern <r10s@b44t.com >
2024-01-31 14:04:03 +01:00
link2xt
2f29c56a36
fix: do not log error if watched folder is not configured
...
This may happen if Sent folder does not exist
but configuration option to watch it is enabled.
2024-01-31 14:04:03 +01:00
Simon Laux
de86b8a96e
rename event also in core
2024-01-31 14:04:03 +01:00
Simon Laux
060c9c8aa1
cargo fmt
2024-01-31 14:04:03 +01:00
Simon Laux
727428a965
rename event and mention event in method documentation
2024-01-31 14:04:03 +01:00
Simon Laux
df455bbcf5
BackgroundFetchCompletedForAllAccounts event
2024-01-31 14:04:03 +01:00
Simon Laux
946eea4c9e
add rate limit for quota check in background fetch (12h for now)
2024-01-31 14:04:03 +01:00
Simon Laux
5cbc87369e
rename cffi function
2024-01-31 14:04:03 +01:00
Simon Laux
5cdd5e0564
Apply suggestions from code review
...
Co-authored-by: link2xt <link2xt@testrun.org >
2024-01-31 14:04:03 +01:00
Simon Laux
f493d6bb40
don't hold write lock in cffi (this blocked events)
2024-01-31 14:04:03 +01:00
Simon Laux
8e073b9c3e
log time that the function took
2024-01-31 14:04:03 +01:00
Simon Laux
ea2a692d18
fix iOS build issue
2024-01-31 14:04:03 +01:00
Simon Laux
1b7c5be9c5
Test server has no sentbox folder
2024-01-31 14:04:03 +01:00
Simon Laux
f7903df805
api: cffi: add dc_accounts_background_fetch_with_timeout
2024-01-31 14:04:03 +01:00
Simon Laux
d2c61dc90e
api: jsonrpc: add background_fetch_for_all_accounts
2024-01-31 14:04:03 +01:00
Simon Laux
7b68098785
feat: add background fetch method
2024-01-31 14:04:03 +01:00
Simon Laux
48f2ea717e
refactor: move convert folder meaning logic in own method
...
also unify the error handling for the cases where it can go wrong.
2024-01-31 14:04:03 +01:00
link2xt
cb3f03fd39
feat: add support for IMAP METADATA
2024-01-31 04:16:04 +00:00
iequidoo
06f1fe18d6
fix: Delete resent messages on receiver side ( #5155 )
...
If a Delta Chat message has the Message-ID already existing in the db, but a greater "Date", it's a
resent message that can be deleted. Messages having the same "Date" mustn't be deleted because they
can be already seen messages moved back to INBOX. Also don't delete messages having lesser "Date" to
avoid deleting both messages in a multi-device setting.
2024-01-30 22:01:45 -03:00
iequidoo
1dbf924c6a
feat: chat::resend_msgs: Guarantee strictly increasing time in the Date header
...
Use `create_smeared_timestamp()` for this. This allows to dedup messages on the receiver -- if it
sees the same Message-ID, but a different timestamp, then it's a resent message that can be deleted.
2024-01-30 22:01:45 -03:00
link2xt
3f6814f421
chore: remove unnecessary exception from deny.toml
2024-01-30 20:27:07 +00:00
link2xt
782828ac4f
chore(deps): update imap-proto
2024-01-30 20:12:07 +00:00
iequidoo
bd3759d55e
test: test_import_export_online_all: Send the message to the existing address to avoid errors ( #5220 )
2024-01-29 20:34:03 -03:00
iequidoo
672993e69e
feat: qr::check_qr(): Accept i.delta.chat invite links ( #5217 )
...
Accepts invite links with `https://i.delta.chat[/]#FINGERPRINT&a=ADDR[&OPTIONAL_PARAMS] `
scheme. Only `i.delta.chat` domain is supported now not to intersect with the common HTTPS scheme.
2024-01-28 20:33:56 -03:00
iequidoo
987bdaf237
ci: Add/remove necessary newlines to fix Python lint
2024-01-26 14:46:46 -03:00
iequidoo
7cf382a3b8
fix: Treat only "Auto-Submitted: auto-generated" messages as bot-sent ( #5213 )
...
"Auto-Submitted: auto-replied" messages mustn't be considered as sent by either bots or non-bots,
e.g. MDNs have this header value and it's the same for bots and non-bots.
2024-01-26 13:03:19 -03:00
Simon Laux
19dce9ddfa
api!: jsonrpc: device message api now requires Option<MessageData> instead of String for the message ( #5211 )
...
api: jsonrpc: device message api now setting empty device messages to
block adding a message for a specific label
required for https://github.com/deltachat/deltachat-desktop/pull/3639
---------
Co-authored-by: iequidoo <117991069+iequidoo@users.noreply.github.com >
2024-01-25 11:26:11 +01:00
Simon Laux
0afc0dd65a
fix: add tolerance for macOS and iOS changing # to %23
...
fixes #1969
Bug description:
macOS and iOS sometimes replace the # with %23 (uri encode it), we should be able to parse this wrong format too, see issue https://github.com/deltachat/deltachat-core-rust/issues/1969 for more info
2024-01-24 23:58:49 +01:00
link2xt
73d612a07d
feat: do not drop unknown report attachments
...
In particular TLSRPT reports
contain files that may be interesting for admins.
Currently Delta Chat drops the attachment
so message appears as a text message without actual payload.
2024-01-24 16:13:20 +00:00
link2xt
3b1529ef81
chore(release): prepare for 1.133.2
v1.133.2
2024-01-24 01:57:45 +00:00
link2xt
15187c0adb
fix: downgrade OpenSSL from 3.2.0 to 3.1.4
2024-01-24 01:48:23 +00:00
Sebastian Klähn
c5f31c3d03
fix: No new chats for MDNs with alias ( #5196 ) ( #5199 )
...
close #5196
2024-01-22 16:51:37 +01:00
link2xt
2c17e78347
chore(release): prepare for 1.133.1
v1.133.1
2024-01-21 04:18:13 +00:00
Sebastian Klähn
4ee646ce0b
feat(api): Add is_bot to cffi and jsonrpc ( #5197 )
...
@adbenitez wants this feature on Deltalab to display a bot tag.
Other UIs might also want to adopt this feature :)
---------
Co-authored-by: link2xt <link2xt@testrun.org >
2024-01-20 15:00:10 +00:00
B. Petersen
1f7b4a74fa
add missing 'unencrypted message' defines
...
in #5161 , it was forgotten to adapt deltachat.h;
moreover, this PR tweaks some other minor things
2024-01-20 15:00:23 +01:00
Sebastian Klähn
4bc90701cc
feat: Add system message when provider does not allow unencrypted messages ( #5161 ) ( #5195 )
...
close #5161

---------
Co-authored-by: bjoern <r10s@b44t.com >
2024-01-20 11:47:23 +00:00
dependabot[bot]
490deb9347
chore(deps): bump h2 from 0.3.17 to 0.3.24 in /fuzz
...
Bumps [h2](https://github.com/hyperium/h2 ) from 0.3.17 to 0.3.24.
- [Release notes](https://github.com/hyperium/h2/releases )
- [Changelog](https://github.com/hyperium/h2/blob/v0.3.24/CHANGELOG.md )
- [Commits](https://github.com/hyperium/h2/compare/v0.3.17...v0.3.24 )
---
updated-dependencies:
- dependency-name: h2
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-19 23:58:52 +00:00
Sebastian Klähn
28d9484a13
fix(node): run tests with native ESM modules instead of esm ( #5194 )
...
close #5156
---------
Co-authored-by: Septias <scoreplayer2000@gmail.comclear >
2024-01-19 18:09:19 +01:00
link2xt
e67e684ee0
test: wait for joiner success in test_verified_group_[member_added]_recovery
...
If we wait for inviter success,
vg-member-added message may be still in flight
and reach ac2 after device resetup.
Making ac2 wait for joining the group ensures that old
device receives vg-member-added message
and new device will not receive it and fail to decrypt.
Other instances of wait_for_securejoin_inviter_success()
in the same tests are also replaced for reliability.
2024-01-18 17:00:21 +00:00
link2xt
6cfe3e6a97
chore(deps): update h2 0.4.0 -> 0.4.2
2024-01-18 13:40:38 +00:00
Sebastian Klähn
99ac524905
chore(deps): update h2 from 0.3.22 -> 0.3.24
2024-01-18 14:21:58 +01:00
link2xt
2faf7fdb78
fix: BCC-to-self even if server deletion is set to "at once"
2024-01-18 10:20:01 +00:00
link2xt
6a8ea8a083
fix: set message download state to Failure on IMAP errors
...
Previously the message was removed from `download` table,
but message bubble was stuck in InProgress state.
Now download state is updated by the caller,
so it cannot be accidentally skipped.
2024-01-18 10:18:57 +00:00
link2xt
e0e56cd831
chore: update quoted_printable to 0.5
...
And update mailparse to 0.14.1 so there is no duplicate dependency.
2024-01-18 09:35:05 +00:00
missytake
bbc6febb72
test: no timeout in SetupPlugin
2024-01-17 14:20:29 +01:00
missytake
7f7f42d721
test: Ensure that member is added before yielding chat
2024-01-17 14:20:29 +01:00