björn petersen
120524ae00
Merge pull request #720 from deltachat/make-oauth2-better
...
make oauth2 POST successfully
2019-10-15 18:29:27 +02:00
Dmitry Bogatov
2d0f563dfe
Replace magic constant with symbolic name
2019-10-15 13:45:08 +02:00
B. Petersen
c266d2ca0d
use POST instead GET to init or refresh oauth2 tokens
2019-10-15 00:22:37 +02:00
B. Petersen
85fc696975
more specific and distinguishable oauth2 error message
2019-10-15 00:20:08 +02:00
Alexander Krotov
c4d55f6ba4
auto_outlook: convert <Protocol> type to lowercase before comparison
2019-10-14 19:21:29 +03:00
B. Petersen
766d7cbd3a
add some missing comments
2019-10-14 15:11:33 +02:00
Alexander Krotov
8e0e1bd58d
Add test for Outlook autodiscovery without redirect
2019-10-14 13:42:35 +03:00
Alexander Krotov
a471ccc95a
Test Outlook autoconfigure redirect parsing
2019-10-14 01:24:20 +03:00
Alexander Krotov
daac8c4824
rustfmt
2019-10-14 01:24:20 +03:00
Alexander Krotov
59c22a5626
Move Outlook autodiscovery into separate function
2019-10-14 01:24:19 +03:00
Alexander Krotov
5f7279eb85
auto_mozilla: server is only configured if the type matches
...
This fixes the testcase introduced in previous commit
2019-10-12 17:07:20 +03:00
Alexander Krotov
ce67f593f6
Add XML parsing test for Mozilla autoconfig
2019-10-12 17:07:20 +03:00
Alexander Krotov
556ea57f37
auto_mozilla: split XML parsing into separate function
2019-10-12 17:07:20 +03:00
Dmitry Bogatov
a4257b619a
Replace flags argument to Sql.open with single bool
...
Previously, "flags" argument of Sql.open was of type libc::c_int, but
only one bit was used: whether to open database read-only. This commit
makes it explicit by changing type to bool and renaming argument.
2019-10-12 09:56:18 +02:00
Alexander Krotov
8479c8afbf
Do not convert 1 to libc::c_int
...
It is compared to u32 in this case
2019-10-11 21:52:47 +02:00
Alexander Krotov
eba012b965
Do not use libc::c_int in Simplify
2019-10-11 21:52:47 +02:00
Alexander Krotov
66e53e6804
Return bool from Imap::fetch()
...
It is unused anyway
2019-10-11 21:52:47 +02:00
Alexander Krotov
c8aa8b55f6
Use i32 instead of libc::c_int for try_again
...
It is already declared as i32 in the structure
2019-10-11 21:52:47 +02:00
Alexander Krotov
900e3905c0
Count number of libc references in top_evil_rs.py
2019-10-11 21:52:47 +02:00
holger krekel
4e36b35039
cargo-fmt only
2019-10-10 12:01:01 +02:00
holger krekel
d412ee6042
make dc_str_from_clist safe and return a string instead of c-string -- this allows to remove some unsafe and now unneccessary cleanup code
2019-10-10 12:01:01 +02:00
dignifiedquire
46e8a436cb
updates and fixes
2019-10-10 00:23:36 +02:00
dignifiedquire
dc2cf8ecfc
unify naming in pgp
2019-10-10 00:23:36 +02:00
dignifiedquire
fd69ebfd1f
fix and cleanup tests
2019-10-10 00:23:36 +02:00
dignifiedquire
03979fdc51
wip
2019-10-10 00:23:36 +02:00
holger krekel
24c0a833bd
address @flub comments
2019-10-09 15:59:31 +02:00
holger krekel
45f011c63c
expose and test set_stock_translation to Python
2019-10-09 15:59:31 +02:00
holger krekel
bc86201b44
error out if %1 %2 replacements are not contained in default english version
2019-10-09 15:59:31 +02:00
holger krekel
b82af9fff3
introduce set_stock_translation and remove call to DC_EVENT_GET_STRING
2019-10-09 15:59:31 +02:00
Alexander Krotov
e4cca92910
Simplify to_string_lossy()
...
Call .to_string_lossy() without trying .to_str() first.
2019-10-09 08:56:02 +02:00
holger krekel
102220834c
address https://github.com/deltachat/deltachat-ios/issues/328 and don't escalate xml-parsing errors to users through error!
2019-10-08 23:09:03 +02:00
holger krekel
1df6229e99
remove/push down some unsafe-fn
2019-10-08 17:37:37 +02:00
Alexander Krotov
c23e98ff83
Merge pull request #693 from deltachat/mozautoconfig
...
Use Rust types in auto_mozilla.rs
2019-10-07 23:03:17 +00:00
holger krekel
b7c81f37c0
ok_to_continue is 0, now start counting "unsafe fn" ...
2019-10-07 23:58:32 +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
björn petersen
c1e4d1e7a4
Merge pull request #688 from deltachat/remove-predecessor
...
remove scanning for old Chat-Predecessor header
2019-10-07 02:02:15 +02:00
B. Petersen
dd8744b74e
remove unused import
2019-10-07 01:15:42 +02:00
holger krekel
b8f211a013
cargo fmt
2019-10-07 00:55:33 +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
B. Petersen
710db2ba0a
remove scanning for old Chat-Predecessor header
...
the Chat-Predecessor header was dropped about 10 month ago.
as a replacement, the standard headers are used.
2019-10-07 00:43:43 +02:00
holger krekel
32ef0d4dc3
cargo fmt
2019-10-07 00:22:19 +02:00
holger krekel
b3cd80ba6d
remove ok_to_continue, shift code to a result-returning add_export_files to avoid if-branches, cleanup and simplify some logging
2019-10-07 00:22:19 +02:00
holger krekel
3f053f899e
cargo fmt
2019-10-07 00:15:39 +02:00
holger krekel
22b4d1734c
remove last ok_to_continue in mimeparser
2019-10-07 00:15:39 +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