B. Petersen
31a5811241
bump version to 1.38
1.38.0
2020-06-20 19:16:07 +02:00
B. Petersen
cd1f5bf229
update changelog for 1.38
2020-06-20 19:09:33 +02:00
bjoern
632fc19f41
Merge pull request #1645 from deltachat/correct-seen
...
give correct "fresh" flag to calc_sort_timestamp()
2020-06-20 19:05:34 +02:00
B. Petersen
7ad95ea165
give correct "fresh" flag to calc_sort_timestamp()
...
for "fresh" messages, calc_sort_timestamp() makes sure,
the sorting timestamp is not less than the last-non-fresh message.
this commit fixes the "fresh" state we give to calc_sort_timestamp(),
it just uses the message-state we've already calculated.
the old assumption, that unseen messages are always fresh
is wrong as this "seen" flag just comes from an imap-flag
that is not set for self-sent messages.
therefore, in a multi-device-setup, things are totally messed up.
(the bug was probably in there since a long time,
however did not came to light until the async-move)
2020-06-20 18:36:09 +02:00
Floris Bruynooghe
9d7b756ddb
Unify some testing interfaces
...
This tidies up our testing tools a little bit. We had several
functions which through various changes ended up doing the same and
some more which did very similar stuff, so I merged them to have
things simpler. Also moved towards methods on the TestContext struct
while cleaning this up anyway, seems like this structure is going to
stay around for a bit anyway.
The intersting change is in `test_utils.rs`, everything else is just
updating callers. A few tests used example.org which I moved to
example.com to be able to re-use more configuration of the test
context.
2020-06-20 14:37:41 +02:00
bjoern
73412db267
Merge pull request #1644 from deltachat/stop-time-in-repl
...
print time needed to build chatlist in repl tool
2020-06-20 13:07:50 +02:00
B. Petersen
059a7bcd7f
print time needed to build chatlist in repl tool
...
the chatlist is the most complicated list to get from sql
and is also the most used list,
so it makes sense to keep an eye on the timing of that.
2020-06-20 00:56:43 +02:00
bjoern
3e47564b2f
Merge pull request #1643 from deltachat/prep-1.37
...
prepare 1.37
2020-06-19 21:54:04 +02:00
B. Petersen
d8be0cdf35
bump version to 1.37
1.37.0
2020-06-19 21:32:47 +02:00
B. Petersen
26a44b6d32
update changelog for 1.37
2020-06-19 21:31:34 +02:00
bjoern
12eacaae36
Merge pull request #1641 from deltachat/oauth2-provider-db
...
get Oauth2-information from provider-db
2020-06-19 21:13:36 +02:00
B. Petersen
2d8148a1a3
make use of new oauth2-authorizer information in the provider-db
2020-06-19 17:06:31 +02:00
B. Petersen
916007ed2d
run update.py
2020-06-19 16:38:03 +02:00
B. Petersen
b91b88e11b
let update.py add information of oauth2-authorizer
2020-06-19 16:37:43 +02:00
bjoern
b6c0f44608
Merge pull request #1635 from deltachat/fix-chatlist-hidden
...
fix getting last message for chatlist, avoid empty summaries
2020-06-19 13:36:08 +02:00
Alexander Krotov
2a623541d7
configure/mod.rs: forbid indexing and slicing
2020-06-19 14:24:53 +03:00
Alexander Krotov
0007e93e80
scheduler: forbid indexing and slicing
2020-06-19 14:24:53 +03:00
Alexander Krotov
c655fd8a64
contact: forbid indexing and slicing
2020-06-19 14:24:53 +03:00
Alexander Krotov
ad531876fd
contact: simplify name normalization
...
This removes one indexing operation and reduces surprises when comma
means something other than first name and last name separator.
2020-06-19 14:24:53 +03:00
Alexander Krotov
53bee68acb
smtp/mod.rs: forbid indexing and slicing
2020-06-19 00:56:01 +03:00
Alexander Krotov
b5400cf551
Refactor imap/mod.rs to avoid indexing
...
Also replace assert! with debug_assert!
2020-06-19 00:56:01 +03:00
B. Petersen
491af1b583
fix getting last message for chatlist
...
the last message shown in a chatlist
is the one with the largets timestamp that is not hidden.
in the past, we calcualted the last timestamp using a subquery
and uses that timestamp to finally get the message.
this may fail when there are two messages with the same max. timestamp.
with this fix, we return the id from the subquery and use that
(the subquery already filters by hidden etc.)
in practise, by time-smearing,
usually delta-chat avoids messages from the same device
having the same timestamp - however, this may not be true for multi-device
and/or read-receipts.
i have not seen this error all the years, however, it happens with
the async move several times - maybe because things are just sent faster
and things become more probabe.
2020-06-18 14:46:04 +02:00
bjoern
5b1d06cb28
Merge pull request #1634 from deltachat/typo-faild
...
fix typo
2020-06-18 03:02:23 +02:00
B. Petersen
7df5195d77
fix typo
2020-06-18 00:31:40 +02:00
dignifiedquire
baff13ecab
fix warnings and bugs, noticed on nightly
1.36.0
2020-06-17 19:27:27 +02:00
bjoern
a7bf05bebb
Merge pull request #1629 from deltachat/prep-1.36
...
prepare 1.36
2020-06-17 16:06:21 +02:00
B. Petersen
aa9b5da1c0
bump version to 1.36
2020-06-17 15:45:38 +02:00
B. Petersen
dfd705f9c6
update changelog for 1.36.0
2020-06-17 15:45:37 +02:00
bjoern
472c0bcea5
Merge pull request #1631 from deltachat/fix-securejoin
...
s/fingerprint/fingerprint.hex()/
2020-06-17 15:45:11 +02:00
Hocuri
8c2af132c8
Sync heuristically_parse_ndn() and maybe_ndn in prefetch_should_download()
2020-06-17 12:42:40 +02:00
Hocuri
79145576ab
s/fingerprint/fingerpring.hex()/
2020-06-17 11:08:38 +02:00
Hocuri
8ca55b0f60
clippy
2020-06-17 10:58:27 +02:00
Hocuri
74cb4ca1cd
Check for mime_parser.has_chat_version() instead of is_dc_message != MessengerMessage::No and avoid passing is_dc_message around, this will save us output &mut argument and simplify the logic.
2020-06-17 10:58:27 +02:00
Hocuri
351e5dc6f3
Add Python test
2020-06-17 10:58:27 +02:00
Hocuri
4eee4a08e7
Mark read receipts as read
2020-06-17 10:58:27 +02:00
Maykel Moya
b5fa0f8924
Add support for G Suite domains
...
Do a lookup based on domain's MX servers. G Suite domains are expected
to have at least 'aspmx.l.google.com' listed in MXs.
See https://support.google.com/a/answer/140034
fixes #1425
2020-06-17 11:50:46 +03:00
Alexander Krotov
baba91c054
pgp: refactor and document pk_decrypt()
...
Avoid unnecessary indexing, decompress only once and check if the message
is Signed before trying to verify it.
2020-06-17 11:48:29 +03:00
Hocuri
40c9c2752b
Parse ndns from Tiscali
2020-06-17 10:39:05 +02:00
bjoern
f4a1a526f5
Merge pull request #1628 from deltachat/lto
...
Re-enable lto=true for release builds
2020-06-16 22:58:54 +02:00
Alexander Krotov
7d80179ed1
Re-enable lto=true for release builds
2020-06-16 23:12:07 +03:00
bjoern
71080ed6d5
Merge pull request #1620 from deltachat/update-docs
...
update docs
2020-06-16 18:41:00 +02:00
bjoern
44037dd711
Update deltachat-ffi/deltachat.h
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2020-06-15 23:36:22 +02:00
B. Petersen
bc275d8670
update docs
2020-06-15 23:36:22 +02:00
Hocuri
eb29f9c4c1
Parse testrun NDNs
2020-06-15 16:20:23 +02:00
bjoern
6340b278d9
Merge pull request #1619 from deltachat/rotate-images
...
respect image orientation from exif on recoding
2020-06-15 11:37:31 +02:00
B. Petersen
519e1c1cd0
warn about unused orientation values, add a comment about the orientation values
2020-06-15 02:18:48 +02:00
B. Petersen
d2320394ca
convert exif orientation to desired pixel rotation
2020-06-15 01:13:37 +02:00
B. Petersen
9307f2d49f
rotate image pixels, prototype a function to get exif data
2020-06-15 01:13:37 +02:00
B. Petersen
7362941245
add kamadak-exif crate
2020-06-15 00:32:13 +02:00
Alexander Krotov
f7c7f414ed
refactor: remove .unwrap() from Peerstate.has_verified_key()
2020-06-15 00:47:25 +03:00