dependabot[bot]
2c2fad6f28
Merge pull request #2391 from deltachat/dependabot/cargo/kamadak-exif-0.5.4
2021-05-01 16:37:21 +00:00
link2xt
60b4f3f21a
chat: use anyhow::Result to avoid repeating , Error>
2021-05-01 19:29:17 +03:00
dependabot[bot]
c128e54896
cargo: bump kamadak-exif from 0.5.3 to 0.5.4
...
Bumps [kamadak-exif](https://github.com/kamadak/exif-rs ) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/kamadak/exif-rs/releases )
- [Commits](https://github.com/kamadak/exif-rs/compare/0.5.3...0.5.4 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-01 16:12:17 +00:00
link2xt
0ea6f72624
github: add Dependabot configuration
...
Configuration file is documented at https://docs.github.com/en/code-security/supply-chain-security/enabling-and-disabling-version-updates
2021-05-01 19:10:51 +03:00
link2xt
855b6b18fd
contact: synchronize status between devices
...
This feature is similar to existing avatar synchronization.
Whenever encrypted BCC-to-self copy of chat message is received, status
setting is updated with the signature of the message.
2021-05-01 19:08:06 +03:00
link2xt
abac35c872
Make it possible to disable bundled SQLite
...
Also disable it in CMakeLists.txt which is used to install libdeltachat
system-wide.
2021-05-01 19:07:25 +03:00
link2xt
17ad4e99ee
Update rusqlite from 0.24 to 0.25
2021-05-01 19:07:25 +03:00
link2xt
c5aef03008
Update changelog
2021-05-01 17:05:18 +03:00
link2xt
c7f2a43654
Update changelog
2021-05-01 15:27:08 +03:00
Simon Laux
19176d9d47
add "Forwarded:" to summary2,
...
this affects notifications and the chatlist
2021-05-01 15:08:27 +03:00
link2xt
db1a7023eb
scripts: remove old/run-python.sh
...
It is replaced by scripts/run_all.sh
2021-05-01 15:04:07 +03:00
link2xt
ae31b5895b
Remove old/gh-actions-rust.yml
2021-05-01 14:54:59 +03:00
link2xt
35b6dd797d
tox.ini: pin breathe version
...
Python 3.5 compatibility is broken in the latest version.
2021-05-01 14:45:19 +03:00
link2xt
1d708de82f
docker-coredeps: update to manylinux2014
...
Rust does not work on manylinux2010 due to old GNU C Library.
We have been using manylinux2014 on CI machine already, but this change
was never commited.
2021-05-01 14:20:37 +03:00
B. Petersen
f7139331e7
test that the correct headers are moved
2021-05-01 07:40:56 +03:00
link2xt
131651cc02
base64-encode avatar into the hidden header
2021-05-01 07:40:56 +03:00
link2xt
bba437523a
Process Chat-User-Avatar headers with embedded base64 images
2021-05-01 07:40:56 +03:00
link2xt
f76bc44cdc
mimeparser: parse hidden headers
2021-05-01 07:40:56 +03:00
link2xt
f6eb169c60
mimefactory: implement hidden headers
2021-05-01 07:40:56 +03:00
link2xt
e15ec2eb7a
mimefactory: create MessageHeaders structure
2021-05-01 07:40:56 +03:00
link2xt
b3b46688fc
Better comments for protected_headers and unprotected_headers
...
Make it clear that protected_headers are protected only
opportunistically and will go into IMF header section if the message
is not encrypted.
2021-05-01 07:40:56 +03:00
link2xt
9faf4a5fa7
python: remove unused imports
2021-04-30 10:56:27 +03:00
Robert Schütz
628c30f130
python: fix build against system library
2021-04-30 10:35:42 +03:00
B. Petersen
f40b557454
add tests for marknoticed_chat(), markseen_msgs() and get_state()
2021-04-26 23:15:26 +02:00
B. Petersen
e1b9e8f2c9
stop more times in repl tool
2021-04-26 23:15:26 +02:00
B. Petersen
65c17cfea2
dc_markseen_msgs() should not handle deaddrop
...
messages are marked as 'noticed' already when the chat is opened
as all UIs call dc_marknoticed_chat();
also marking messages as 'noticed' when dc_markseen_msgs() is called
is not needed therefore - but stands in the way of further improvements
for the deaddrop, eg. UI may let the user decide when the deaddrop
can be removed from chatlist ('All done' button or so)
2021-04-26 23:15:26 +02:00
B. Petersen
39d3a594af
let dc_marknoticed_chat() also handle the virtual deaddrop chat
2021-04-26 23:15:26 +02:00
link2xt
949e671d9c
ci: fail on cargo check warnings
2021-04-26 01:11:32 +03:00
link2xt
eef51f064a
sql: set PRAGMA synchronous=normal
...
It was set in `sqlx` code, but not in `rusqlite` mode.
synchronous=FULL makes benchmark that write to the database a lot slower.
2021-04-25 23:44:16 +03:00
B. Petersen
143c5e6249
re-add test_db_reopen() for rusqlite
...
so that we do not forget about that test
and the issues we had with that :)
2021-04-25 22:33:14 +03:00
link2xt
8610b0c945
sql: switch from sqlx to rusqlite
2021-04-25 22:33:14 +03:00
link2xt
d179dced4e
Get rid of mod.rs files.
...
Since Rust 2018 [1] it is no longer required to move module code to
`mod.rs` when submodules are added. This eliminates common problem of
having multiple buffers named `mod.rs` in editor.
[1] https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html#no-more-modrs
2021-04-23 22:45:45 +03:00
link2xt
1dc055fb66
cargo update -p sqlx
2021-04-23 00:00:00 +00:00
Hocuri
819775ac39
Revert "More logging for "core spams imap events""
...
This reverts commit 5394327bf6 .
2021-04-23 09:15:15 +02:00
Hocuri
a1ef32170d
Make logging less verbose
2021-04-22 18:03:37 +02:00
Hocuri
a4486d8c30
Fix #2335 (delete job flooding) ( #2372 )
...
* Fix #2335 (delete job flooding)
The problem was:
- You are offline, and an ephemeral message is due to delete.
- load_imap_deletion_job() is called and returns a deletion job for it.
- The job fails because, well, we are offline.
- The job is saved into the database.
- load_imap_deletion_job() is called again, and so on.
* Add test
2021-04-22 16:37:22 +02:00
link2xt
7bdae8b2c5
README.md: replace shields.io with official CircleCI badge
...
Also remove appveyor, it is not used anymore.
2021-04-21 07:23:48 +03:00
link2xt
75999c5d5a
test_account.py: fix syntax error on python 3.5
...
It was introduced in 553d3936a9
2021-04-21 02:49:20 +03:00
B. Petersen
34ffa4e7ea
add a test to check LIMIT on global searches
2021-04-20 13:51:49 +02:00
B. Petersen
3f1623eab1
LIMIT global search
2021-04-20 13:51:49 +02:00
link2xt
99373774aa
search_msgs: do not match contact names
...
ct.name was insufficient, as authname, overridden name and email address
fallback were not taken into account.
Dropping this condition increases performance by 25% according to the
benchmark.
Also add a test for search_msgs.
2021-04-20 12:21:04 +02:00
link2xt
acd51a7058
Sort global message search result only by ID
...
It reduces the time by ~20% according to `search_msgs` benchmark.
Sorting by IDs is sufficient for global search as IDs increase in the
order of message reception.
2021-04-20 00:35:21 +03:00
B. Petersen
61bf0b208c
add some tests for constants
2021-04-19 23:09:27 +03:00
link2xt
efd0314872
dc_receive_imf: remove unnecessary check for empty folder name
...
This check dates back to C core, where it checked for NULL, not empty string.
2021-04-19 23:09:17 +03:00
link2xt
ef89bc64c9
Add search_msgs benchmark
2021-04-19 23:09:00 +03:00
link2xt
6d4ec75a7b
Benchmark reading contact list
2021-04-19 23:09:00 +03:00
link2xt
8af47de5a4
Benchmark adding 500 contacts from address book
2021-04-19 23:09:00 +03:00
link2xt
c7345c16f8
README: update CI status badges
2021-04-19 01:23:59 +03:00
link2xt
a4b14c6b98
ci: update configs to use scripts from scripts/ directory
2021-04-18 21:57:04 +03:00
link2xt
321354531d
Move set_core_version.py into scripts/
...
Also make it executable.
2021-04-18 21:57:04 +03:00