Alexander Krotov
c08a1adc9b
Deprecate AcceptInvalidHostnames option
...
Rustls does not offer a documented way to accept valid certificates with
invalid hostnames. Implementation of certificate verification in Rustls
does not have a public API and reimplementing it is error-prone.
2019-12-08 20:54:04 +01:00
Alexander Krotov
cd951ad396
Improve IMAP idle timeout error handling
...
Return proper cause and avoid matching on nested Result
2019-12-08 20:50:27 +01:00
holger krekel
33793d878b
address @link2xt comment on done/async
2019-12-08 01:13:00 +01:00
holger krekel
357955015d
[wip] initial detection of idle done() not working
2019-12-08 01:13:00 +01:00
holger krekel
d6d94adab0
remove encrypted attr from mimeparser.
2019-12-08 00:47:46 +01:00
holger krekel
099cc9f727
remove subject attribute
2019-12-08 00:47:46 +01:00
holger krekel
61f8d6f171
remove is_send_by_messenger attr from mimeparser
2019-12-08 00:47:46 +01:00
Alexander Krotov
a7af4685f1
Log IMAP certificate checks configuration
2019-12-08 00:31:22 +01:00
Alexander Krotov
2cebed4f77
Move dc_array.rs to deltachat-ffi package
2019-12-08 00:30:43 +01:00
holger krekel
86ace1a4af
- test and fix receiving text/html attachment in multipart/mixed situations
...
They are now preserved as attachment, instead of diving into parsing-html
and simplifying.
- adapt mime-debugging
2019-12-07 22:56:54 +01:00
holger krekel
1abdf62045
passes test but needs cleanup
2019-12-07 22:56:54 +01:00
holger krekel
9e2a96675d
try fix incoming text/html in multipart/mixed
2019-12-07 22:56:54 +01:00
Alexander Krotov
f32876708a
Update outdated comment
...
MIME wrapping is now done by the email crate, which implements RFC5322
2019-12-07 21:35:42 +01:00
Alexander Krotov
84e0e7e020
aheader.rs: do not generate lines longer than 78 characters
2019-12-07 21:35:42 +01:00
Alexander Krotov
38cddff6e9
Move keydata= wrapping from key.rs to aheader.rs
2019-12-07 21:35:42 +01:00
Alexander Krotov
f1aba8115b
Use Option<EncryptPreference>.unwrap_or_default in aheader.rs
2019-12-07 07:58:53 +01:00
Alexander Krotov
6c275c30a7
Do not include "prefer-encrypt=nopreference;" in Autocrypt header
...
Specification
https://autocrypt.org/level1.html#the-autocrypt-header
says that prefer-encrypt attribute can only occur with the value `mutual`.
2019-12-06 20:01:34 +03:00
Alexander Krotov
91f1d793e9
Test that internal "prefer-encrypt=reset" value is not parsed from header
...
This is a test for bugfix e8f2f7b24e
2019-12-06 14:23:45 +01:00
Alexander Krotov
cddfd04a7f
Turn rawkey from function into a constant
2019-12-06 14:23:45 +01:00
Alexander Krotov
7fa94c33bf
cargo fmt
2019-12-06 10:35:02 +01:00
Alexander Krotov
30dd20dc7b
Make Imap.fetch() async
2019-12-06 10:35:02 +01:00
Alexander Krotov
339c0d3dc7
Remove unnecessary use of failure::Fail
2019-12-06 10:34:34 +01:00
Alexander Krotov
2304d63bb3
Simplify dc_get_filesuffix_lc
2019-12-06 09:45:24 +01:00
Alexander Krotov
351383dfa4
Split IMAP idle functions into imap::idle submodule
...
Also introduce Imap.can_idle() to avoid having to match on IdleAbilityMissing error
2019-12-06 08:59:22 +01:00
holger krekel
a0517478e3
adding auto-copy-blob logic when preparing a message
2019-12-06 00:27:22 +01:00
holger krekel
174bc017ad
make setup_handle_if_needed async, call it ahead of select_folder and fetch_new_messages (renamed from fetch_from_single_folder), and be more eager triggering reconnect on error conditions
2019-12-05 21:47:32 +01:00
holger krekel
212848409f
use encoded-words crate, which friedel ported from python
2019-12-05 19:29:12 +01:00
holger krekel
e45ee0eb81
try fix filename encoding bug -- fails in one test
2019-12-05 19:29:12 +01:00
dignifiedquire
3b8e37de58
switch to quoted-printable, which is already used by mailparse
2019-12-05 19:29:12 +01:00
holger krekel
c2e8cc9bd6
use rfc2047 crate from @valodim and remove dc_strencode.rs completely
2019-12-05 19:29:12 +01:00
holger krekel
ec81d29580
fix multi-line subject encoding and introduce MIME debugging env var
2019-12-05 19:29:12 +01:00
jikstra
c4de0f3b17
Apply remaining requested changes
2019-12-05 18:57:19 +01:00
jikstra
36bd502292
cargo fmt
2019-12-05 18:57:19 +01:00
jikstra
6d30ccfc63
Move to json_serde, add tests and implement missing python api
2019-12-05 18:57:19 +01:00
jikstra
1b79f513a3
Implement more json key/value pairs
2019-12-05 18:57:19 +01:00
holger krekel
74825a0f57
working example
2019-12-05 18:57:19 +01:00
holger krekel
2a081aac2b
fix grpid extraction from In-Reply-To and References headers
2019-12-05 01:18:53 +01:00
holger krekel
9b10f31fb3
more cleanups
2019-12-05 00:56:09 +01:00
holger krekel
63ad7b8d34
make to_ids const in some places, and simplify returns from create_or_lookup_adhoc_group
2019-12-05 00:56:09 +01:00
holger krekel
86baaab2e9
get rid of unsafe and indirect return values for create_or_lookup.*group
2019-12-05 00:56:09 +01:00
dignifiedquire
609b5588fa
fix(mimefactory): only send Autocrypt-Gossip headers on encrypted messages
2019-12-04 13:58:33 +01:00
Alexander Krotov
d950a58613
Improve documentation
2019-12-04 10:15:40 +01:00
holger krekel
d09989a4ed
fix implementation of Autocrypt to encrypt if answering to an encrypted message.
...
Previously, if any of a chat's peers set prefer_encrypt to false
(i.e. "e2ee_enabled=0" in the config, a misnomer btw) then a
previously encrypted chat would drop to cleartext easily.
2019-12-04 08:57:42 +01:00
holger krekel
6999a4e3a9
streamline decrypt/encrypt logging
2019-12-04 08:57:42 +01:00
Alexander Krotov
069541f374
Create select_folder::Error
2019-12-04 06:13:24 +01:00
Alexander Krotov
49b9b28c99
Move select_folder to a separate submodule
2019-12-04 06:13:24 +01:00
B. Petersen
b274482125
add welcome-image created by @Simon-Laux
2019-12-04 06:11:42 +01:00
B. Petersen
b766a55b0a
in set_chat_name(), bind value to sql using ?-operator, add a test to check the name is really changed
2019-12-04 06:11:01 +01:00
B. Petersen
b8057b7ddb
remove >1y old file path migration which is now uneeded and has potential issues
2019-12-04 06:11:01 +01:00
B. Petersen
98266f47d6
bind value to sql using ?-operator
2019-12-04 06:11:01 +01:00