Alexander Krotov
ecbc83390e
Add "Configuration failed" stock string
2020-09-12 19:42:41 +03:00
Alexander Krotov
f5b16cf086
Set data2 in ConfigureProgress event
...
For now it is only set on error, but could contain user-readable log
messages in the future.
2020-09-12 19:42:41 +03:00
Alexander Krotov
cdba74a027
configure: add expand_param_vector function
2020-09-12 15:19:45 +03:00
Alexander Krotov
9b741825ef
Attempt IMAP and SMTP configuration in parallel
...
SMTP configurations are tested in a separate async task.
2020-09-05 21:09:47 +03:00
Floris Bruynooghe
ee27c7d9d4
Run clippy on tests and examples
2020-09-05 18:13:16 +02:00
Alexander Krotov
dd682e87db
imap: resultify Imap.connect
2020-08-30 15:04:07 +03:00
Alexander Krotov
4481ab18f5
configure: try multiple servers for each protocol
...
LoginParamNew structure, which contained possible IMAP and SMTP
configurations to try is replaced with uniform vectors of ServerParams
structures. These vectors are initialized from provider database, online
Mozilla or Outlook XML configuration or user entered parameters.
During configuration, vectors of ServerParams are expanded to replace
unknown values with all possible variants, which are tried one by one
until configuration succeeds or all variants for a particular protocol
(IMAP or SMTP) are exhausted.
ServerParams structure is moved into configure submodule, and all
dependencies on it outside of this submodule are removed.
2020-08-27 23:11:25 +03:00
Alexander Krotov
1cb4e41883
auto_mozilla: use match to parse socket types
2020-08-23 22:15:06 +03:00
Alexander Krotov
cbfada3e4a
Implement Default and FromStr for MozConfigTag
2020-08-23 22:15:06 +03:00
Alexander Krotov
c19e35b68d
Parse multiple servers in Mozilla autoconfig
...
Co-Authored-By: Simon Laux <mobile.info@simonlaux.de >
2020-08-23 22:15:06 +03:00
Hocuri
0fc57bdb35
Separate IMAP and SMTP configuration
...
Co-Authored-By: link2xt <ilabdsf@gmail.com >
Co-Authored-By: bjoern <r10s@b44t.com >
2020-08-22 21:29:39 +03:00
Alexander Krotov
061bee382b
Automatic certificate checks for providers from DB
...
When certificate checks setting is Automatic, strict_tls setting
from provider database is applied dynamically in Imap.connect() and
Smtp.connect().
2020-08-16 12:00:00 +03:00
Alexander Krotov
299c70e1cc
configure: add "mail." to smtp_server when configuring SMTP
2020-08-16 02:59:48 +03:00
Alexander Krotov
920753ad50
configure: do not try the same username twice
...
If username does not contain "@", don't try again after removing domain
part.
2020-08-11 22:09:06 +03:00
Alexander Krotov
00c1383419
configure: refactor to try various server domains
...
For IMAP, example.org, imap.example.org and mail.example.org are tried.
For SMTP, example.org, smtp.example.org and mail.example.org are tried.
2020-08-11 22:09:06 +03:00
dignifiedquire
1ae49c1fca
unify events
2020-08-10 10:32:48 +02:00
Alexander Krotov
d1b93f6978
configure: compare mail_port to 143
...
143 is an IMAP, not SMTP port
2020-07-28 00:00:00 +03:00
bjoern
f1b3527ad0
Merge pull request #1613 from deltachat/warn-wrong-pw
...
Show a better toast and a notification when the password is wrong (because it was changed on the server)
2020-07-13 13:12:31 +02:00
Alexander Krotov
18e4abc1df
Remove some and deny new indexing and slicing
2020-07-11 21:43:02 +03:00
Hocuri
b50410ab15
Fix #1687
2020-07-11 17:38:48 +02:00
Hocuri
9f7567c1d1
Abort on failing imap configuring
2020-07-11 14:27:15 +02:00
Hocuri
68e3bce60e
Remove error!() from https://github.com/deltachat/deltachat-core-rust/pull/1539
...
it led to a less clear error message being shown when the configure
failed.
2020-07-11 14:27:15 +02:00
Hocuri
86bc54508f
More explicit
2020-07-11 14:27:15 +02:00
Hocuri
3f2e67f07a
First try for notification
2020-07-11 14:27:14 +02:00
B. Petersen
545ff4f7ba
apply config_defaults only for unset values
...
instead of applying all config_defaults unconditionally
after the first configure, a config_defaults for a given key
is now applied when this key has never been set before.
this way, you can set some keys before calling configure()
and also, later versions can add new defaults for new keys
(that would require another call to configure() then, however)
2020-06-23 00:48:40 +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
Alexander Krotov
2a623541d7
configure/mod.rs: forbid indexing and slicing
2020-06-19 14:24:53 +03:00
Hocuri
05e1c00cd1
fix: update message ids correctly
...
Fixes #1495
2020-06-05 16:27:22 +02:00
Hocuri
41bba7e780
Fix #880 Don't vary advanced login settings if a user set a particular setting
2020-05-29 20:31:34 +02:00
dignifiedquire
6d8b4a7ec0
simplify further and apply CR
2020-05-29 19:09:45 +02:00
B. Petersen
84963e198e
do autoconfig only when no advanced options are entered
...
the advanced options are not used anyway later,
but prevent imap/smtp connections from being altered.
nb: we want to stop altering when some advanced options
are entered, however, we want to do this probaby
not depending on autoconfig.
2020-05-29 19:09:45 +02:00
dignifiedquire
408e9946af
refactor(configure): cleanup logic
2020-05-29 19:09:45 +02:00
dignifiedquire
43f49f8917
refactor(configure): remove step-counter
2020-05-29 19:09:45 +02:00
dignifiedquire
9442df0cf8
fix: restore logic to original in configure
2020-05-24 21:24:13 +02:00
Friedel Ziegelmayer
014d2946b2
feat: use EventEmitter for events
2020-05-22 21:03:01 +02:00
dignifiedquire
28ef5164ce
happy clippy
2020-05-22 11:37:12 +02:00
dignifiedquire
70a2dbb4bb
back to stable async-std + use surf instead of reqwest
...
removes tokio from our dependency tree, now only one async executor
2020-05-22 11:10:26 +02:00
dignifiedquire
7b10ec26a3
improve connection management
2020-05-21 15:38:04 +02:00
dignifiedquire
133ff4914d
first pass at resolving CR
2020-05-19 17:26:22 +02:00
dignifiedquire
af56ebb04e
Merge remote-tracking branch 'origin/master' into feat/async-jobs
2020-05-19 12:07:34 +02:00
dignifiedquire
8a7923c974
Merge remote-tracking branch 'origin/master' into feat/async-jobs
2020-05-13 18:29:22 +02:00
B. Petersen
4b744337fe
apply user_defaults after the first successful call to dc_configure()
2020-05-12 23:02:22 +02:00
Alexander Krotov
ec089faf3a
configure/auto_mozilla: remove indexing
2020-04-13 23:02:57 +03:00
Alexander Krotov
db5b5d321b
clippy: remove redundant imports
2020-04-13 23:02:57 +03:00
Friedel Ziegelmayer
24f4cbbb27
refactor: replace failure
...
- failure is deprecated
- thiserror for deriving Error impl
- anyhow for highlevel error handling
2020-04-10 22:39:28 +02:00
dignifiedquire
49b2f80ded
Merge remote-tracking branch 'origin/master' into feat/async-jobs
2020-03-26 16:52:07 +01:00
B. Petersen
36e7090466
force folder-reconfigure on dc_configure()
2020-03-25 02:39:48 +01:00
dignifiedquire
b616a2b3e7
fix more tests
2020-03-22 21:57:26 +01:00
dignifiedquire
8a7eaba668
fix imap fetch loop and watch folders
2020-03-21 16:26:27 +01:00
dignifiedquire
f85b14a7f7
the basics work
2020-03-18 15:11:36 +01:00