holger krekel
1df6229e99
remove/push down some unsafe-fn
2019-10-08 17:37:37 +02:00
Alexander Krotov
5c3a7e4119
Use Rust types in auto_mozilla.rs
2019-10-07 18:43:53 +03:00
holger krekel
a94acef49b
cargo fmt
2019-10-07 13:39:01 +02:00
holger krekel
7f5b362eda
remove ok_to_continue and simplify/refactor imap and smtp connection trying
...
address @r10s review comments and also remove unneccessary "unsafe fn"
2019-10-07 13:39:01 +02:00
holger krekel
51534b2fae
move all alloc/free/stop/has/shall_stop*ongoing* methods to context
...
introduce stop_ongoing to bindings and test for cancelation of configure
2019-10-07 00:55:33 +02:00
Alexander Krotov
b4851187ba
Safe outlk_autodiscover
2019-10-06 05:46:45 +03:00
Alexander Krotov
0252969f7e
Remove unused in_0 from outlk_autodiscover_t
2019-10-06 05:16:17 +03:00
Alexander Krotov
f86cec4844
Mark moz_autoconfigure as safe
2019-10-06 05:16:17 +03:00
Alexander Krotov
cd2e36da92
rustfmt
2019-10-06 05:16:17 +03:00
Alexander Krotov
1b13107181
Return Option<String> from read_autoconf_file
2019-10-06 05:16:17 +03:00
Alexander Krotov
6fbde21995
outlk_autodiscover: store url as String
2019-10-06 05:16:17 +03:00
Alexander Krotov
a6608513ac
auto_outlook: restore and add some comments
2019-10-06 05:16:17 +03:00
Alexander Krotov
d43c225be3
Return None from outlk_autodiscover if no XML config was parsed
2019-10-06 05:16:17 +03:00
B. Petersen
735bdd1c20
always use to_string_lossy() for converting c-strings to String
...
the function to_string() is removed;
c-strings may always be badly formatted and this should never lead to a panic.
2019-10-05 00:12:32 +02:00
B. Petersen
93f0f5ccae
rename sql-config-setters to set_raw_config*()
...
the rename is reasonable as the getter is called get_raw_config*()
and to make the functional difference to context.set|get_config() clearer.
2019-10-04 11:18:26 +02:00
B. Petersen
79b92727cc
prefer get_config_bool() where appropriate
...
for db input/output, we still use get_config_int() to convert to/from 0/1.
also for info() we prefer get_config_int() to show the real value.
2019-10-04 11:15:11 +02:00
B. Petersen
dca9afa10b
rename sql.get_config() to sql.get_raw_config() to make clearer that there is not default handling
2019-10-03 17:35:43 +02:00
B. Petersen
c6b2d640ae
prefer context.get_config() over context.sql.get_config() as the latter does not handle default values.
2019-10-03 17:15:40 +02:00
Alexander Krotov
130d485cac
Fix some clippy warnings
2019-10-03 14:30:40 +02:00
Dmitry Bogatov
a6a6fc48c1
Remove unused outlk_autodiscover_t.redirect field
2019-09-29 23:35:01 +02:00
Dmitry Bogatov
8f6a0bbf09
Remove unused argument of DC_JOB_CONFIGURE_IMAP
2019-09-22 22:22:00 +02:00
dignifiedquire
05f9f454c3
refactor: remove x module and delete deadcode
2019-09-21 17:56:49 +02:00
B. Petersen
6a351de4f9
cargo fmt
2019-09-19 18:42:29 +02:00
B. Petersen
bbff1c9c3e
test that bad credentials do not panic
2019-09-19 18:42:29 +02:00
B. Petersen
bbb8144129
do not panic when 0 (=failure) is passed to the progress! macro
2019-09-19 17:00:01 +02:00
dignifiedquire
5486ac5b9f
refacor: use an enum for events
2019-09-15 23:40:08 +02:00
dignifiedquire
f31f341a50
feat: enforce Debug implementations and remove mod types
2019-09-15 16:36:31 +02:00
Alexander Krotov
51bf875826
Use DC_LP_* constants in configure module
2019-09-14 13:22:59 +03:00
Alexander Krotov
f9ce6c7c81
Use DC_LP_* constants in auto_outlook.rs
2019-09-14 13:16:21 +03:00
Alexander Krotov
2e91c3d334
Use DC_LP_* constants in auto_mozilla.rs
2019-09-14 13:14:35 +03:00
Dmitry Bogatov
57daa0f7f0
Remove useless argument of logging macros
...
Previously, logging macros (info! warn! error!) accepted integer
argument (data1), that was passed to callback function verbatim. In all
call sites this argument was 0.
With this change, that data1 argument is no longer part of macro
interface, 0 is always passed to callback in internals of these macros.
2019-09-10 22:26:47 +00:00
Dmitry Bogatov
2dd3f169db
Use set_config_bool instead of set_config_int in boolean context
2019-09-10 22:26:47 +00:00
Dmitry Bogatov
b97b618b4b
Use sql.get_config_bool to simplify dc_is_configured
2019-09-10 22:26:47 +00:00
Dmitry Bogatov
1cdb9c733a
Change return type of `dc_is_configured' to bool
2019-09-10 19:08:55 +00:00
dignifiedquire
f3e53a05a6
refactor(loginparam): rename dc_loginparam -> login_param
2019-09-08 18:48:57 +02:00
dignifiedquire
dd381a5c1c
refactor(loginparam): simplify and rustify
2019-09-08 18:48:57 +02:00
Alexander Krotov
3b397326f8
Store email parts as Rust str's
2019-09-07 20:23:08 +03:00
Alexander Krotov
81cabd08a9
Accept str instead of char* in read_autoconf_file
2019-09-07 20:20:25 +03:00
holger krekel
9f09c73ec1
make secure_join flow more readable by using and adding a few macros, tiny api changes
2019-09-05 22:55:25 +02:00
holger krekel
4bbab876ae
majorly de-indent code structure in secure_join by introducing cleanup function, also majorly reducing unsafety in several places
2019-09-05 22:55:25 +02:00
Simon Laux
14daa99802
remove ok_to_continue7 comment
2019-09-04 15:07:45 +02:00
Simon Laux
4f9f67a477
switch to while instead of loop
2019-09-04 15:07:45 +02:00
Simon Laux
85f182067c
typo fixes in comments
2019-09-04 15:07:45 +02:00
Simon Laux
66ab6874f8
reorganize dc_job_do_DC_JOB_CONFIGURE_IMAP
2019-09-04 15:07:45 +02:00
Simon Laux
906b901e3d
move function order / filestructure like in c core
2019-09-04 15:07:45 +02:00
dignifiedquire
1a1f0c0a7c
refactor(e2ee): rename dc_e2ee -> e2ee
2019-09-03 19:05:21 +02:00
Dmitry Bogatov
dd5803e576
Fix one clippy::unneeded_unwrap warning
2019-08-27 23:18:42 +00:00
Dmitry Bogatov
2fe07e86c7
Replace explicit casts from 0 to pointer with std::ptr::null
2019-08-27 21:22:03 +00:00
Simon Laux
491826556b
renaming dc_configure to configure
...
and renaming the autoconfigure modules
2019-08-19 19:03:46 +02:00