holger krekel
aba066b4d1
only do monthly dependabot updates ( #3199 )
...
* only do monthly dependabot updates
* increase dependabot pr limit from 10 to 50 (due to only monthly interval, 10 seems to be too low)
Co-authored-by: B. Petersen <r10s@b44t.com >
2022-04-10 12:38:27 +02:00
Hocuri
2562c726e6
Do ephemeral deletion in async task background loop ( #3194 )
...
* Do ephemeral deletion in background loop
1. in start_io start ephemeral async task, in stop_io cancel ephemeral async task
2. start ephemeral async task which loops like this:
- wait until next time a message deletion is needed or an interrupt occurs (see 3.)
- perform delete_expired_messages including sending MSGS_CHANGED events
3. on new messages (incoming or outgoing) with ephemeral timer:
- interrupt ephemeral async task
* Changelog
* Fix and improve test
* no return value needed
* address @link2xt review comments
* slight normalization: have only one place where we wait for interrupt_receiver
* simplify sql statement -- and don't exit the ephemeral_task if there is an sql problem but rather wait
* Remove now-unused `ephemeral_task` JoinHandle
The JoinHandle is now inside the Scheduler.
* fix clippy
* Revert accidental move of the line
* Add log
Co-authored-by: holger krekel <holger@merlinux.eu >
Co-authored-by: link2xt <link2xt@testrun.org >
2022-04-10 12:22:47 +02:00
bjoern
6e3ec71c10
show an error when a webxdc is written for a newer (future) api ( #3206 )
...
* add min_api to manifest.toml, define WEBXDC_API_VERSION
* return an error instead of index.html if the webxdc requires a newer api
* add a test with an webxdc requiring a newer api
* update CHANGELOG
2022-04-10 12:16:28 +02:00
Hocuri
2932c1ed35
Configure: Try "imap.*"/"smtp.*"/"mail.*" first ( #3207 )
...
* Configure: Try "imap.*"/"smtp.*"/"mail.*" first
Fix half of #3158 .
Try "imap.ex.org"/"smtp.ex.org" and "mail.ex.org" first because if a server exists
under this address, it's likely the correct one.
Try "ex.org" last because if it's wrong and the server is configured to
not answer at all, configuration may be stuck for several minutes.
* Changelog
* Add test
2022-04-10 12:16:00 +02:00
Asiel Díaz Benítez
149b31a960
Merge pull request #3187 from deltachat/adb/issue-2557
...
Send setup-changed messages only in the chats we share with the peer
2022-04-09 19:43:51 -04:00
adbenitez
f1d09e4127
apply rustfmt
2022-04-09 19:15:48 -04:00
Asiel Díaz Benítez
10bdbc95cd
Update src/peerstate.rs
...
Co-authored-by: bjoern <r10s@b44t.com >
2022-04-09 18:23:14 -04:00
link2xt
26c38070ec
Disable unused async-smtp transports
...
By default file and sendmail transports are enabled,
but deltachat does not use them.
2022-04-09 11:36:32 +00:00
link2xt
494a7f1db9
Update to Rust 1.60
...
It re-enables incremental compilation.
2022-04-09 09:10:51 +00:00
holger krekel
bba721654b
update deps for 1.30 release series
2022-04-08 13:08:19 +02:00
Hocuri
36a17b0592
oops
2022-04-08 10:54:45 +02:00
Hocuri
b7294d46cf
Changelog
2022-04-08 10:54:45 +02:00
Hocuri
d8977b5046
Drop unused table backup_blobs in migration
...
Today, we solved an issue with holger's phone that he couldn't export
his account anymore because during the `VACUUM` the Android system
killed the app because of OOM. The solution was to drop the table
`backup_blobs`, so let's automatically do this in migration
This table was used back in the olden days when we backuped by exporting
the dbfile and then putting all blobs into it. During import, the
`backup_blobs` table should have been dropped, seems like this didn't
work here.
2022-04-08 10:54:45 +02:00
dependabot[bot]
963bb7f7cf
cargo: bump syn from 1.0.90 to 1.0.91
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.90 to 1.0.91.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.90...1.0.91 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-07 11:41:57 +02:00
Hocuri
7d3a08599e
Changelog
2022-04-06 17:51:01 +02:00
Hocuri
345a4bc504
Give setup-changed messages the same timestamp as the previous message ( #3188 )
2022-04-06 17:05:44 +02:00
dependabot[bot]
7bfdf2e2f5
Merge pull request #3189 from deltachat/dependabot/cargo/zip-0.6.2
2022-04-05 08:27:49 +00:00
dependabot[bot]
d9ac5d88e9
cargo: bump zip from 0.6.1 to 0.6.2
...
Bumps [zip](https://github.com/zip-rs/zip ) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/zip-rs/zip/releases )
- [Commits](https://github.com/zip-rs/zip/commits )
---
updated-dependencies:
- dependency-name: zip
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-04 21:13:27 +00:00
bjoern
2cf11bb2ea
muted chats stay archived ( #3184 )
...
* do not unarchive muted chats on sending/receving messages
* add a test for unarchive muted chats
* update CHANGELOG
* improve test_unarchive_if_muted
2022-04-04 11:02:36 +02:00
adbenitez
e29d008914
send setup-changed messages only in the chats we share with the peer, do not create contact request
2022-04-04 01:05:49 -04:00
link2xt
de91063fbe
scheduler: add comment about fake-idle timeout
2022-04-03 19:30:56 +00:00
link2xt
3d95272707
smtp: retry message sending automatically if loop is not interrupted
2022-04-03 18:55:29 +00:00
Floris Bruynooghe
3c20d0902e
Add explicit tests for special ContactId values
...
Turns out some FFI users don't use the constants. Scary.
2022-04-03 20:35:09 +02:00
Floris Bruynooghe
f2c1e5c6e5
Replace some ContactId::new() calls with constants
2022-04-03 20:35:09 +02:00
Floris Bruynooghe
feb354725a
Make ContactId::LAST_SPECIAL private
...
Also remove the Ord implementations, this makes ContactId more opaque
by no longer letting people deal with the fact this is ordered.
2022-04-03 20:35:09 +02:00
Floris Bruynooghe
35c0434dc7
Move ContactId constants to struct.
...
This makes the APIs much more Rust-like and keep contact IDs clearer
and in one place.
2022-04-03 20:35:09 +02:00
Hocuri
918ee47c79
Consider outgoing messages to just one receiver as "private message" ( #3177 )
2022-04-03 19:19:10 +02:00
link2xt
a8ab7c9c04
smtp: do not try to use stale connections
...
Previously first try used an old connection and. If using stale
connection, an immediate retry was performed using a new connection.
Now if connection is stale, it is closed immediately without trying to
use it.
This should reduce the delay in cases when old connection is unusable.
2022-04-03 13:11:27 +00:00
link2xt
332892b468
ephemeral: clear more fields in delete_expired_messages
...
These fields are cleared in other places,
but in the case of delete_device_after setting
only txt column was cleared previously.
2022-04-02 17:10:09 +00:00
link2xt
6392300311
job: remove unnecessary anyhow::Error import
2022-04-02 17:06:22 +00:00
Floris Bruynooghe
16d201faca
Re-enable custom Display for ContactId
...
Caught another case of using Display instead of ToSql, now all tests
pass again.
2022-04-02 17:19:00 +02:00
dependabot[bot]
ea0cf67f98
cargo: bump zip from 0.6.0 to 0.6.1
...
Bumps [zip](https://github.com/zip-rs/zip ) from 0.6.0 to 0.6.1.
- [Release notes](https://github.com/zip-rs/zip/releases )
- [Commits](https://github.com/zip-rs/zip/commits )
---
updated-dependencies:
- dependency-name: zip
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-02 16:09:44 +02:00
holger krekel
612132b7c8
move invariant out of loop, less LOC and 1.5% faster
2022-04-01 14:33:57 +02:00
holger krekel
26470c6047
apply hocuri's niceifcation
2022-04-01 14:33:57 +02:00
holger krekel
93d3522f67
stylistic changes
2022-04-01 14:33:57 +02:00
holger krekel
c6d901d799
first iteration of faster sorting
2022-04-01 14:33:57 +02:00
B. Petersen
4880f9ff32
improve repl message search
...
- allow spaces in queries
- show query and scope below result
2022-04-01 11:46:26 +02:00
holger krekel
aaa42a3412
feedback if missing env var
2022-03-31 17:05:33 +02:00
holger krekel
3e5e852e20
1.30 is imminent so i think it makes sense to do a cargo-update now for all deps, to detect issues as early as possible before releases go to stores.
2022-03-31 16:53:38 +02:00
holger krekel
0a3f44bd73
housekeeping cleanup: factor out remove-unused-files logic
2022-03-31 16:45:58 +02:00
holger krekel
d4fed5f5f7
add chatlist loading benchmark
2022-03-31 16:45:45 +02:00
dependabot[bot]
dce7b90fc2
cargo: bump native-tls from 0.2.8 to 0.2.10
...
Bumps [native-tls](https://github.com/sfackler/rust-native-tls ) from 0.2.8 to 0.2.10.
- [Release notes](https://github.com/sfackler/rust-native-tls/releases )
- [Changelog](https://github.com/sfackler/rust-native-tls/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sfackler/rust-native-tls/compare/v0.2.8...v0.2.10 )
---
updated-dependencies:
- dependency-name: native-tls
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-30 20:15:21 +02:00
dependabot[bot]
4f94bdff3f
Merge pull request #3160 from deltachat/dependabot/cargo/async-trait-0.1.53
2022-03-29 13:44:16 +00:00
dependabot[bot]
ce1f2a6fd4
Merge pull request #3162 from deltachat/dependabot/cargo/quote-1.0.17
2022-03-29 13:43:22 +00:00
dependabot[bot]
da292bb9b2
cargo: bump quote from 1.0.16 to 1.0.17
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.16 to 1.0.17.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.16...1.0.17 )
---
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-29 08:07:43 +00:00
dependabot[bot]
326a75d0e8
Merge pull request #3161 from deltachat/dependabot/cargo/syn-1.0.90
2022-03-29 08:05:58 +00:00
dependabot[bot]
e47860bc2e
cargo: bump syn from 1.0.89 to 1.0.90
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.89 to 1.0.90.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.89...1.0.90 )
---
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-28 21:14:00 +00:00
dependabot[bot]
6212151562
cargo: bump async-trait from 0.1.52 to 0.1.53
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.52 to 0.1.53.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.52...0.1.53 )
---
updated-dependencies:
- dependency-name: async-trait
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-28 21:13:49 +00:00
link2xt
8c2b9f9901
Do not overwrite better_msg if apply_group_changes returns None
2022-03-27 11:23:45 +00:00
link2xt
e9a733a789
Pass better message around instead of mutating mimeparser
...
This change is aimed at decoupling parsing and
add_parts() stages to eventually separate parsing
from database changes and pipeline message parsing and
decryption.
2022-03-27 11:23:45 +00:00