link2xt
8d3a1e84c3
Remove mvbox_watch option and use mvbox_move instead
2021-12-18 13:55:01 +00:00
link2xt
d009835210
Remove unnecessary getattr
2021-12-18 12:48:40 +00:00
link2xt
83a664ca68
Fix mypy error
2021-12-18 12:47:11 +00:00
link2xt
d98d1857a4
Improve group updates
...
- Check that member modifying the group is in the group themselves.
It is not allowed to readd yourself to the group or remove someone without being in the group themselves.
- Unify code for group member addition and removal.
Removing a member now recreates the group member list from the To: field.
Removed member from the Chat-Group-Member-Removed was in the To: field in previous Delta Chat versions,
so it is excluded explicity. New versions of Delta Chat put removed member in Bcc: instead.
- Apply avatar changes after updating the group member list.
This allows to check that the contact modifying the avatar is actually a group member.
2021-12-18 11:58:32 +00:00
bjoern
cf33db3dcb
do not change the draft's message-id on updates and sending ( #2887 )
...
* store msg-id in msg-object on set_draft(), add a test for that
* test deleting drafts
* keep draft-ids on updating drafts, set draft-state
* do not allow forwarding of drafts
in general, it should be possbile,
however, it is not needed.
drafts and forwarding have lots of cornercases
even when not used in combination :)
* keep draft-ids on preparing and sending
* add comments about keeping msg_id
* early exit when trying to forward drafts
* tweak tests
* get rid of old C to Rust conversion code
* allow soon checking of increation-state, add a test for that
2021-12-12 18:02:12 +01:00
link2xt
dae80cbe35
Recognize MS Exchange read receipts as read receipts
...
They contain X-MSExch-Correlation-Key header, but no
Original-Message-ID, so they cannot be used to find the original
message, but we want to recognize them as MDN nevertheless to assign
them to the trash chat.
2021-12-11 21:44:54 +00:00
link2xt
f8b4ef26b3
Update rustyline
...
The version was locked to 9.0.0 previsouly because Rust 1.56 requirement.
New version 9.1.1 should support 1.56 again.
2021-12-11 18:10:18 +00:00
link2xt
db991453b0
Merge branch 'cargo-update'
2021-12-11 14:48:17 +00:00
link2xt
c11ce4c8d4
Merge detached signature parsing
2021-12-11 14:46:58 +00:00
link2xt
92e300cb9f
cargo update
2021-12-11 12:06:53 +00:00
dependabot[bot]
d210e0bffe
Merge pull request #2872 from deltachat/dependabot/cargo/tagger-3.3.0
2021-12-11 11:58:39 +00:00
link2xt
4d4968f358
Make the code compile with new tagger
2021-12-11 11:36:18 +00:00
dependabot[bot]
8dfede148a
Merge pull request #2871 from deltachat/dependabot/cargo/async-imap-bb73dfc
2021-12-10 23:11:12 +00:00
link2xt
6d125028f5
Validate detached signatures
2021-12-10 22:56:42 +00:00
link2xt
7ff3cf4af0
Accept keyring by reference in pk_decrypt
2021-12-10 22:56:42 +00:00
link2xt
bb3353397d
Use return values instead of out arguments for PGP signatures
2021-12-10 22:56:42 +00:00
link2xt
572260ec29
Test RFC 1847 encapsulation
...
https://datatracker.ietf.org/doc/html/rfc3156#section-6.1
2021-12-10 22:56:42 +00:00
dependabot[bot]
0b1faa0523
Merge pull request #2884 from deltachat/dependabot/cargo/async-trait-0.1.52
2021-12-10 22:52:51 +00:00
bjoern
3b6c3e10d7
update draft docs ( #2886 )
...
* we no longer set a draft on group creation
* remove probably outdated comment
the comment was added at
https://github.com/deltachat/deltachat-core/pull/457
where draft revamping was done half only
and was probably forgotten to being removed later.
at least, i cannot make any sense out of the comment.
2021-12-10 16:33:02 +01:00
dependabot[bot]
d3909a5483
cargo: bump async-trait from 0.1.51 to 0.1.52
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.51 to 0.1.52.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.51...0.1.52 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-10 06:45:56 +00:00
dependabot[bot]
645fd10446
Merge pull request #2874 from deltachat/dependabot/cargo/sha2-0.10.0
2021-12-10 06:44:26 +00:00
dependabot[bot]
ee7e29fb3a
cargo: bump sha2 from 0.9.8 to 0.10.0
...
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.9.8 to 0.10.0.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.9.8...sha2-v0.10.0 )
---
updated-dependencies:
- dependency-name: sha2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-09 22:17:54 +00:00
dependabot[bot]
bdc3a4d24c
Merge pull request #2875 from deltachat/dependabot/cargo/sha-1-0.10.0
2021-12-09 22:08:51 +00:00
dependabot[bot]
88ccda139e
Merge pull request #2882 from deltachat/dependabot/cargo/serde-1.0.131
2021-12-09 22:08:23 +00:00
dependabot[bot]
63e78bae37
Merge pull request #2883 from deltachat/dependabot/cargo/rusqlite-0.26.3
2021-12-09 22:07:54 +00:00
Hocuri
b50f211c28
Fix benchmark compile errors ( #2881 )
...
* Fix benchmark compile errors
* Also check bench code during CI
2021-12-09 22:52:53 +01:00
dependabot[bot]
5efbd9c7f5
cargo: bump rusqlite from 0.26.1 to 0.26.3
...
Bumps [rusqlite](https://github.com/rusqlite/rusqlite ) from 0.26.1 to 0.26.3.
- [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/rusqlite-0.26.1...v0.26.3 )
---
updated-dependencies:
- dependency-name: rusqlite
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-09 21:33:03 +00:00
dependabot[bot]
7f1d2ea11f
cargo: bump serde from 1.0.130 to 1.0.131
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.130 to 1.0.131.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.130...v1.0.131 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-09 21:32:51 +00:00
Hocuri
46eb391a1b
Fix: Make add_parts() not early-exit ( #2879 )
...
Fix #2867
2021-12-09 19:04:32 +01:00
Hocuri
b166cc5bf4
Remove wrong comment in add_parts
2021-12-09 18:58:05 +01:00
link2xt
1d0f6aad95
Add dc_msg_force_plaintext() API for bots ( #2847 )
...
This will allow implementing a special command for download bot to request that it sends back the downloaded file unencrypted.
2021-12-09 11:51:21 +01:00
dependabot[bot]
764aa71770
cargo: bump sha-1 from 0.9.8 to 0.10.0
...
Bumps [sha-1](https://github.com/RustCrypto/hashes ) from 0.9.8 to 0.10.0.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha-1-v0.9.8...md2-v0.10.0 )
---
updated-dependencies:
- dependency-name: sha-1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-08 00:15:03 +00:00
dependabot[bot]
21e9206a77
Merge pull request #2870 from deltachat/dependabot/cargo/mailparse-0.13.7
2021-12-07 06:54:46 +00:00
dependabot[bot]
5f29977c50
cargo: bump tagger from 3.2.1 to 3.3.0
...
Bumps [tagger](https://github.com/tiby312/tagger ) from 3.2.1 to 3.3.0.
- [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-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-06 21:15:13 +00:00
dependabot[bot]
ee4c9bc01e
cargo: bump async-imap from c2e92df to bb73dfc
...
Bumps [async-imap](https://github.com/async-email/async-imap ) from `c2e92df` to `bb73dfc`.
- [Release notes](https://github.com/async-email/async-imap/releases )
- [Commits](c2e92dfd33...bb73dfc203 )
---
updated-dependencies:
- dependency-name: async-imap
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-06 21:15:07 +00:00
dependabot[bot]
4a8259cb12
cargo: bump mailparse from 0.13.6 to 0.13.7
...
Bumps [mailparse](https://github.com/staktrace/mailparse ) from 0.13.6 to 0.13.7.
- [Release notes](https://github.com/staktrace/mailparse/releases )
- [Commits](https://github.com/staktrace/mailparse/compare/v0.13.6...v0.13.7 )
---
updated-dependencies:
- dependency-name: mailparse
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-06 21:14:47 +00:00
Hocuri
a6441d70f0
Mark chat as noticed when receiving an outgoing message ( #2861 )
...
When there is an outgoing message in a chat, mark all older messages in this chat as seen.
Android already has a similar behavior, however, this led to the issue https://github.com/deltachat/deltachat-android/issues/2163 and should be changed back.
--
From the issue description at https://github.com/deltachat/deltachat-android/issues/2163 , I implemented these fixes:
> Core should take care that if the last message in a chat is not fresh|noticed, no messages in the chat can be fresh. [...] Do this [...] in a function that's called at the end of fetch_new_messages(). Then dc_receive_imf() wouldn't get slower by this and we could re-use the same function for migration.
So, I didn't do this inside `dc_receive_imf()` in order not to make it take even longer. This obviously has the downside of higher complexity.
And I think we should implement this:
> On Androd, show the unread badge when unread!=0 again (see deltachat/deltachat-android@618af02 ). Then the user can see that there is a chat with an unread message and click it to get rid of it.
because it shouldn't be the UI's job to decide whether an unread badge is shown, but the core's.
2021-12-06 10:55:50 +00:00
link2xt
01db8d0130
test_utils: fix Alice's address in alice_keypair()
...
The key stored in test-data has @example.org identity.
2021-12-05 09:14:58 +00:00
link2xt
8ad9db5572
mimefactory: refactor generation of the To: field
...
Group all the code responsible for the generation of the To: field
2021-12-04 22:04:47 +00:00
link2xt
607cd23014
Test that removed member is not included in the To: field
2021-12-04 22:04:47 +00:00
link2xt
220758d244
Place removed members into Bcc: instead of To:
...
This way if someone replies to the member deletion messsage from a
classic MUA, they will not reply to the removed member.
2021-12-04 18:51:25 +00:00
link2xt
7ab71bb468
Convert test keys from base64 to ASCII armor
...
ASCII armored keys can be easily generated with `sq key generate` and
used to encrypt and decrypt test messages with `sq` and `gpg` without
converting them to binary using `base64 -d` first.
2021-12-04 19:56:03 +03:00
link2xt
a74377b620
Fix Rust 1.57 compiler and clippy warnings ( #2863 )
...
* Remove unused os_name
* Disable clippy::manual_split_once lint
It's suggestions in stable 1.57 Rust are incorrect: https://github.com/rust-lang/rust-clippy/issues/7889
* Allow unused fields in OAuth2 response
* Fix clippy warning about `select_pk_for_encryption`
2021-12-04 18:56:14 +03:00
dependabot[bot]
c9effa3c06
Merge pull request #2828 from deltachat/dependabot/cargo/strum_macros-0.23.1
2021-12-02 10:10:15 +00:00
dependabot[bot]
8b8102334b
cargo: bump syn from 1.0.81 to 1.0.82 ( #2840 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.81 to 1.0.82.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.81...1.0.82 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-02 11:09:36 +01:00
dependabot[bot]
5dedb86472
Merge pull request #2841 from deltachat/dependabot/cargo/serde_json-1.0.72
2021-12-02 10:05:07 +00:00
dependabot[bot]
d93f77f991
Merge pull request #2851 from deltachat/dependabot/cargo/anyhow-1.0.51
2021-12-02 10:04:10 +00:00
dependabot[bot]
5409bc575e
cargo: bump anyhow from 1.0.48 to 1.0.51
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.48 to 1.0.51.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.48...1.0.51 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-01 20:35:25 +00:00
bjoern
576d31206d
prepare 1.70 ( #2858 )
...
* update changelog for 1.70.0
* bump version to 1.70.0
py-1.70.0
1.70.0
2021-12-01 21:33:39 +01:00
bjoern
86e3297414
execute Chat-Group-Member-Removed even when arrived out of oder ( #2857 )
...
* execute Chat-Group-Member-Removed even when arrived out of oder
* test adding/removing members unordered
2021-12-01 21:06:56 +01:00