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
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
dignifiedquire
baff13ecab
fix warnings and bugs, noticed on nightly
2020-06-17 19:27:27 +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
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
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
Alexander Krotov
f7c7f414ed
refactor: remove .unwrap() from Peerstate.has_verified_key()
2020-06-15 00:47:25 +03:00
Hocuri
15b30ceed1
check for sender mailer-daemon as link2xt proposed
2020-06-13 17:29:38 +02:00
Hocuri
45b871f76d
Look at From instead of Subject and ContentType in prefetch_should_download.
2020-06-13 14:18:16 +02:00
Hocuri
9f1112833f
let prefetch_should_download() check if it might be an ndn
2020-06-13 12:06:30 +02:00
B. Petersen
fc88bff32f
make clippy happy
2020-06-13 10:18:18 +02:00
Hocuri
bbf049e95b
string
2020-06-13 10:18:18 +02:00
Hocuri
52dfa9b536
Renaming, comment
2020-06-13 10:18:18 +02:00
Hocuri
1fe85dfb3c
more functional
2020-06-13 10:18:17 +02:00
Hocuri
27ff1c4a75
check in heuristically_parse_ndn() that rfc724_mid_exists() so that we do not ignore emails because we erreneously thought that it was an ndn
2020-06-13 10:18:17 +02:00
Hocuri
adf4035775
rename reports
2020-06-13 10:18:17 +02:00
Hocuri
990c80cedf
lots of small fixes from the reviews
2020-06-13 10:18:17 +02:00
Hocuri
8ebce0c861
warn instead of error
2020-06-13 10:18:16 +02:00
Hocuri
ffb6a84b1f
Warn instead of error
2020-06-13 10:18:16 +02:00
Hocuri
8938cb2573
clippy
2020-06-13 10:18:16 +02:00
Hocuri
7997e7dde4
remove println
2020-06-13 10:18:15 +02:00
Hocuri
20ad98d168
typo
2020-06-13 10:18:15 +02:00
Hocuri
c827c9d209
Add yahoo test
2020-06-13 10:18:15 +02:00
Hocuri
bde97b20e9
Repair getting x-failed-recipients header, all tests passing now
2020-06-13 10:18:15 +02:00
Hocuri
777df24c75
Make the gmx test pass
2020-06-13 10:18:14 +02:00
Hocuri
e1711855cc
Make the posteo test pass
2020-06-13 10:18:14 +02:00
Hocuri
3899d70b3c
I hate SQL
2020-06-13 10:18:14 +02:00
Hocuri
e7aee5b4f4
add gmx and posteo tests
2020-06-13 10:18:14 +02:00
Hocuri
bd2a7a3d40
Correct failed recipient
2020-06-13 10:18:13 +02:00