holger krekel
c3d909c818
add a test that contacts are properly created and fix ordering in dc_receive_imf to pass the test
2019-12-19 16:53:55 +01:00
holger krekel
000479d55e
never block on interrupt_inbox_idle
2019-12-19 12:06:01 +01:00
Alexander Krotov
7ef22f2940
fix(smtp): reduce SMTP I/O timeout to 30 seconds
...
15 minute timeout was used because it applied to the whole send()
operation. Now timeout applies to each I/O operation, such as read()
or write(), so it can be made much shorter. In particular, this timeout
applies to read() call right after connection to plain or STARTTLS server,
in which case it is not reasonable to wait 15 minutes to receive one
line of data.
The timeout is triggered only if no progress is made within 30 seconds. It
likely indicates a network failure anyway.
2019-12-19 06:55:19 +01:00
Alexander Krotov
a242fcfd2c
refactor(dehtml): remove Result unwrap in dehtml_starttag_cb()
2019-12-18 23:24:43 +03:00
Alexander Krotov
73c21ae0a9
refactor: enable clippy::unreadable_literal
2019-12-18 23:23:38 +03:00
dignifiedquire
2398454838
feat(smtp): update to use async-smtp based timeouts
2019-12-18 03:08:59 +03:00
holger krekel
2c0f847d3e
remove too verbose logging for received messages
2019-12-16 23:12:17 +01:00
holger krekel
7d5e95f013
thread-name seems to be unnamed all the time so it's use is currently theoretic
2019-12-16 23:12:17 +01:00
Alexander Krotov
9000342de8
Get rid of unnecessary "async move" and ".await"
2019-12-16 18:02:50 +01:00
holger krekel
61b47aa0de
try doing an smtp-send timeout
2019-12-16 18:02:50 +01:00
Alexander Krotov
f81f3fb060
Do not panic on failure to read IMAP server greeting
2019-12-16 13:19:34 +01:00
Floris Bruynooghe
d7f345eef8
Add the thread id and name to info and warn log output
2019-12-16 13:11:44 +01:00
Alexander Krotov
e3031462c1
Replace expect() in select_with_uidvalidity with an Error
2019-12-16 14:44:52 +03:00
holger krekel
2bf9fd6cbc
revert printing file/lineno in Error-messages as these are typically user-visible
...
For info and warn it's fine
2019-12-16 03:17:08 +03:00
Floris Bruynooghe
19e716b522
Add filename and line no to log entries
...
This is done for all logging calls, also those which call error! which
is normally directly shown to the user.
2019-12-16 00:33:57 +01:00
Alexander Krotov
1ee15942cc
Simplify simplify.rs
...
* Remove Simplify structure.
* Match for lines starting with 5 markers, not consisting of exactly 5 markers.
This is a regression from C to Rust conversion, see
2bb1c280d5/src/dc_simplify.c (L154)
* Add tests.
2019-12-16 02:31:38 +03:00
B. Petersen
435f734d60
adapt tests for new avatar recoding
2019-12-15 23:12:37 +01:00
B. Petersen
a5f949c4e2
recode group- and user-avatar to 192x192 pixel
2019-12-15 23:12:37 +01:00
Alexander Krotov
a0645dc713
Resultify dc_create_folder and don't ignore its errors
2019-12-16 00:49:51 +03:00
holger krekel
09c7ab1ee6
avoid addrparse to panic() and refactor according code a little with test.
2019-12-15 21:54:20 +01:00
holger krekel
4bacae3711
fix #1037 and simplify mdn-report related code and state
2019-12-15 22:18:34 +03:00
Alexander Krotov
8d3e536582
Do not panic on SystemTimeDifference
2019-12-15 19:56:13 +01:00
Alexander Krotov
697cc0a79b
Make needs_encryption a bool
2019-12-15 19:55:49 +01:00
Alexander Krotov
a34ed5c02a
Make recalc_fingerprints a bool
2019-12-15 19:55:49 +01:00
Alexander Krotov
256bb01606
Make prepend_subject a bool
2019-12-15 19:55:49 +01:00
Alexander Krotov
1de535363d
Move parse_message_id from wrapmime.rs to imap/mod.rs
2019-12-15 19:13:49 +03:00
Alexander Krotov
24d9011939
Move get_autocrypt_mime from wrapmime.rs to e2ee.rs
2019-12-15 19:13:49 +03:00
Alexander Krotov
e7351b1bb8
Restore constant and remove parenthesis
2019-12-15 16:43:12 +03:00
Alexander Krotov
b3ee89c6e5
Documentation improvements
2019-12-15 16:15:09 +03:00
Alexander Krotov
3f49492ccf
cargo fmt
2019-12-14 22:28:15 +01:00
Alexander Krotov
ad700b45d0
Make Imap.connect() async
2019-12-14 22:25:33 +01:00
Alexander Krotov
74923b4575
Enable clippy::type_complexity error
2019-12-14 22:00:38 +01:00
Alexander Krotov
ccca1b0bea
Do not format! SQL queries
2019-12-14 18:16:54 +00:00
Alexander Krotov
558466d506
Revert "Enable clippy::unreadable_literal error"
...
This reverts commit b424ef9ebb .
2019-12-14 15:55:33 +00:00
Alexander Krotov
b424ef9ebb
Enable clippy::unreadable_literal error
2019-12-14 15:20:58 +00:00
Alexander Krotov
69f5fd86a4
Allow clippy::needless_range_loop only in simplify_plain_text
2019-12-14 15:20:58 +00:00
Alexander Krotov
f9ba9ae912
Enable clippy::large_enum_variant error
2019-12-14 15:20:58 +00:00
Alexander Krotov
b33fec6236
Enable clippy::block_in_if_condition_stmt error
2019-12-14 15:20:58 +00:00
B. Petersen
95fbc904d1
go to correct step so that param_autoconfig is actually used
2019-12-14 00:12:14 +01:00
B. Petersen
ce37a8dda2
use provider-database only if the user did not enter a server/port/whatever manually; this allows the user to override erroneous choices
2019-12-14 00:12:14 +01:00
holger krekel
e0499c9552
add preliminary support for offline-autoconfigure for nauta
2019-12-14 00:12:14 +01:00
Simon Laux
4825f2510f
Merge pull request #1016 from deltachat/fix_displayname
...
fix displayname to use authname when availible
2019-12-13 13:21:03 +01:00
Alexander Krotov
66adfa074b
Do not cache gossiped_timestamp
2019-12-13 12:51:44 +01:00
Alexander Krotov
9d201eb9c6
Add get_gossiped_timestamp
2019-12-13 12:51:44 +01:00
Alexander Krotov
789fc0a7e0
Resultify set_gossiped_timestamp
2019-12-13 12:51:44 +01:00
Alexander Krotov
9e309132f8
Only add gossip headers if chat has more than one peer
2019-12-13 12:51:44 +01:00
Alexander Krotov
88923173c2
Set is_gossiped to true when Autocrypt-Gossip header is added
2019-12-13 12:51:44 +01:00
Simon Laux
7b55863418
switch priority order
2019-12-13 11:58:21 +01:00
Simon Laux
38d5fad4e5
fix displayname to use authname when availible
2019-12-13 11:58:08 +01:00
Alexander Krotov
ccc190f991
Switch to native_tls
2019-12-13 11:03:46 +01:00