Floris Bruynooghe
b2fe723570
Do not read whole webxdc file into memory
...
This seems not only wasteful but genuinly has the risk someone makes
their device useless by accidentally adding a huge file.
This also re-structures the checks a little: The if-conditions are
flattened out and cheap checks are done before more expensive ones.
2022-03-28 14:48:55 +02:00
link2xt
33ba8dabe0
Increase python test timeout
2022-03-27 08:48:43 +00:00
link2xt
0842e54f52
Add ephemeral_timestamp index for msgs table
...
This reduced get_chat_msgs() benchmark time from 400ms to 170ms.
2022-03-26 20:19:49 +00:00
link2xt
08d34e41c6
Return results from add_parts() via structure
...
Replaced mutable out parameters with explicit return of structure.
Also moved all decisions about emitted events out of add_parts(). Chat
ID is removed from created_db_entries as it is the same for all parts.
2022-03-26 16:38:08 +00:00
Hocuri
e93c9f74c9
Add get_chat_msgs benchmark ( #3151 )
2022-03-26 15:18:27 +01:00
bjoern
1ab81256e9
remove usued repl command 'event' ( #3153 )
...
no need to re-implement that unless there is actually some need.
2022-03-25 15:53:51 +01:00
dependabot[bot]
cb19de57bb
Merge pull request #3144 from deltachat/dependabot/cargo/zip-0.6.0
2022-03-23 10:26:36 +00:00
dependabot[bot]
e678e7df8f
Merge pull request #3146 from deltachat/dependabot/cargo/log-0.4.16
2022-03-23 10:22:21 +00:00
bjoern
8487eefe46
config_cache fixes ( #3145 )
...
* add simple backup export/import test
this test fails on current master
until the context is recrated.
* avoid config_cache races
adds needed SQL-statements to config_cache locking.
otherwise, another thread may alter the database
eg. between SELECT and the config_cache update -
resulting in the wrong value being written to config_cache.
* also update config_cache on initializing tables
VERSION_CFG is also set later, however,
not doing it here will result in bugs when we change DBVERSION at some point.
as this alters only VERSION_CFG and that is executed sequentially anyway,
race conditions between SQL and config_cache
seems not to be an issue in this case.
* clear config_cache after backup import
import replaces the whole database,
so config_cache needs to be invalidated as well.
we do that before import,
so in case a backup is imported only partly,
the cache does not add additional problems.
* update CHANGELOG
2022-03-22 22:46:29 +01:00
dependabot[bot]
86da1aa429
Merge pull request #3147 from deltachat/dependabot/cargo/async-std-1.11.0
2022-03-22 21:37:45 +00:00
dependabot[bot]
48b580b59e
cargo: bump async-std from 1.10.0 to 1.11.0
...
Bumps [async-std](https://github.com/async-rs/async-std ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/async-rs/async-std/releases )
- [Changelog](https://github.com/async-rs/async-std/blob/master/CHANGELOG.md )
- [Commits](https://github.com/async-rs/async-std/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: async-std
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-22 21:15:44 +00:00
dependabot[bot]
8b568d796e
cargo: bump log from 0.4.14 to 0.4.16
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.14 to 0.4.16.
- [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/commits )
---
updated-dependencies:
- dependency-name: log
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-22 21:15:36 +00:00
dependabot[bot]
4b5af85094
cargo: bump zip from 0.5.13 to 0.6.0
...
Bumps [zip](https://github.com/zip-rs/zip ) from 0.5.13 to 0.6.0.
- [Release notes](https://github.com/zip-rs/zip/releases )
- [Commits](https://github.com/zip-rs/zip/commits/v0.6 )
---
updated-dependencies:
- dependency-name: zip
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-21 21:16:26 +00:00
B. Petersen
8d0be06f45
log file size on backup import
...
due to an bug from Apple copying files from/to iPhones
(cmp. https://support.delta.chat/t/import-backup-to-ios/1628/7 )
it may easily happen that one gets corrupted/partly backups.
such imports usually fail with some error,
however, for debugging it is nice to have the concrete file size in the log.
2022-03-21 22:09:22 +01:00
link2xt
26ae8accd4
Automatically unblock chats with outgoing messages
2022-03-20 18:03:10 +00:00
Hocuri
321e3e27de
Introduce config caching ( #3131 )
...
* Introduce config caching
* Changelog
* Update CHANGELOG.md
Co-authored-by: bjoern <r10s@b44t.com >
* Cache a value after reading it
Co-authored-by: bjoern <r10s@b44t.com >
2022-03-21 10:13:43 +00:00
link2xt
7d26968bb3
Try to start ephemeral timers only if some message has nonzero timer
2022-03-20 18:12:01 +00:00
link2xt
83464a882e
Optimize markseen_msgs
...
Use a single SELECT statement for all messages
and start ephemeral timers for all messages at once.
2022-03-20 14:57:14 +00:00
Hocuri
1e94ad25e1
Use repeat_vars() more ( #3133 )
2022-03-20 15:23:11 +01:00
link2xt
a3ba19db96
Resultify delete_poi_location()
2022-03-19 17:29:54 +00:00
link2xt
d9e9c849e1
imap: do not delete duplicates
...
Currently if user moves the message into some other folder and then
moves the message back, the message is considered duplicate even
though previous copy was already deleted. This is a common problem
reported by users at least twice.
Keeping duplicates does no harm except for additional storage usage.
If the message is later deleted by the user, all the copies on the
server will be deleted. anyway.
2022-03-19 15:51:17 +00:00
dependabot[bot]
c162c23d9e
Merge pull request #3135 from deltachat/dependabot/cargo/tagger-4.3.3
2022-03-18 23:22:23 +00:00
dependabot[bot]
90fd1c300f
Merge pull request #3136 from deltachat/dependabot/cargo/quote-1.0.16
2022-03-18 23:21:09 +00:00
dependabot[bot]
902a9cc812
Merge pull request #3137 from deltachat/dependabot/cargo/libc-0.2.121
2022-03-18 23:20:24 +00:00
dependabot[bot]
c51e1805fa
cargo: bump libc from 0.2.120 to 0.2.121
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.120 to 0.2.121.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.120...0.2.121 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-18 21:10:46 +00:00
dependabot[bot]
7a2b9e85e7
cargo: bump quote from 1.0.15 to 1.0.16
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.15 to 1.0.16.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.15...1.0.16 )
---
updated-dependencies:
- dependency-name: quote
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-18 21:10:40 +00:00
dependabot[bot]
547c40cd52
cargo: bump tagger from 4.3.1 to 4.3.3
...
Bumps [tagger](https://github.com/tiby312/tagger ) from 4.3.1 to 4.3.3.
- [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-03-18 21:10:30 +00:00
Floris Bruynooghe
e2d631097d
Fix master by reverting ContactId Display impl ( #3134 )
...
Actual fix needs more investigation, it's not obvious.
2022-03-17 19:29:18 +01:00
Floris Bruynooghe
cc55be0b0a
Customise Display impl of ContactId
...
This brings the Display of ContactId in line with those of ChatId etc,
which is a bit clearer is logs and such places.
It also updates an SQL query to rely on the ToSql impl of ContactId
rather than it's Display when building the query.
2022-03-16 22:41:14 +01:00
dependabot[bot]
64927190bd
Merge pull request #3132 from deltachat/dependabot/cargo/syn-1.0.89
2022-03-16 21:39:21 +00:00
dependabot[bot]
24515126fe
cargo: bump syn from 1.0.88 to 1.0.89
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.88 to 1.0.89.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.88...1.0.89 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-16 21:14:45 +00:00
Hocuri
7a56a93028
Fix long filenames containing dots ( #3098 )
2022-03-16 20:41:24 +01:00
Hocuri
ea7fc3a171
Benchmark dc_receive_imf() ( #3128 )
...
Don't count the account creation in the receive emails benchmark
Use Criterion's async support
See https://bheisler.github.io/criterion.rs/book/user_guide/benchmarking_async.html
2022-03-16 20:30:33 +01:00
dependabot[bot]
ae36a26045
cargo: bump image from 0.23.14 to 0.24.1
...
Bumps [image](https://github.com/image-rs/image ) from 0.23.14 to 0.24.1.
- [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-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-16 13:10:24 +01:00
dependabot[bot]
d6c9f5c64b
cargo: bump textwrap from 0.14.2 to 0.15.0
...
Bumps [textwrap](https://github.com/mgeisler/textwrap ) from 0.14.2 to 0.15.0.
- [Release notes](https://github.com/mgeisler/textwrap/releases )
- [Changelog](https://github.com/mgeisler/textwrap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mgeisler/textwrap/compare/0.14.2...0.15.0 )
---
updated-dependencies:
- dependency-name: textwrap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-16 11:23:12 +01:00
dependabot[bot]
c4f4f4295b
cargo: bump async-std-resolver from 0.20.4 to 0.21.1
...
Bumps [async-std-resolver](https://github.com/bluejekyll/trust-dns ) from 0.20.4 to 0.21.1.
- [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.20.4...v0.21.1 )
---
updated-dependencies:
- dependency-name: async-std-resolver
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-16 10:59:56 +01:00
link2xt
a997322efb
Update MSRV to 1.56 and current version to 1.59
...
This is needed to support Rust 2021 edition required by the latest versions of `ed25519` and `image` crates.
2022-03-16 10:56:16 +01:00
dependabot[bot]
799688af76
cargo: bump libc from 0.2.119 to 0.2.120
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.119 to 0.2.120.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.119...0.2.120 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-16 10:55:58 +01:00
dependabot[bot]
260e95d027
cargo: bump syn from 1.0.86 to 1.0.88
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.86 to 1.0.88.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.86...1.0.88 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-16 10:55:20 +01:00
Floris Bruynooghe
f9ee70aa2e
Minor cleanup of Viewtype
...
Provide checking for attachment as a method and move it to the message
module. The method is a lot easier to read and have correct
expectations about.
2022-03-16 10:46:58 +01:00
Hocuri
50f13cb84b
Set X-Microsoft-Original-Message-ID on outgoing emails for amazonaws ( #3077 )
2022-03-13 14:39:49 +01:00
dependabot[bot]
fc7e08bb49
Merge pull request #3087 from deltachat/dependabot/cargo/strum-0.24.0
2022-03-13 11:44:29 +00:00
dependabot[bot]
06ed3e5dfd
cargo: bump strum from 0.23.0 to 0.24.0
...
Bumps [strum](https://github.com/Peternator7/strum ) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [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 >
2022-03-13 10:50:20 +00:00
dependabot[bot]
4d792ad57b
Merge pull request #3089 from deltachat/dependabot/cargo/strum_macros-0.24.0
2022-03-13 10:48:56 +00:00
dependabot[bot]
4fa78bfca0
Merge pull request #3114 from deltachat/dependabot/cargo/once_cell-1.10.0
2022-03-13 10:29:47 +00:00
link2xt
2012833cb3
Fix lint
2022-03-12 20:07:00 +00:00
link2xt
e48eef7e32
Start ephemeral timer when seen status is synchronized via imap
2022-03-12 19:28:31 +00:00
bjoern
74ac9c3a92
fix docs: dc_markseen_msgs() is typically called when scrolling through message list, not chat list. ( #3120 )
2022-03-12 13:45:22 +01:00
Hocuri
a907d789d6
Assign replies from different address to two-member-groups ( #3119 )
...
Holger had a case where he wrote with someone using a classing MUA.
He opened a two-member-group with this person (which also allowed him to
set the subject).
At some point the other person replied from a different email address.
What he expected: This reply should be sorted into the two-member-group.
What happened: This reply was sorted into the 1:1 chat.
---
I had added the line && chat_contacts.contains(&from_id) months ago when I wrote
this code because it seemed vaguely sensible but without any real
reason. So, let's remove it and see if it creates other problems -
my gut feeling is no.
2022-03-12 10:47:58 +00:00
dependabot[bot]
fc46c0b49c
Merge pull request #3121 from deltachat/dependabot/cargo/tagger-4.3.1
2022-03-12 10:36:51 +00:00