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
088490721d
bump to 1.0.0-beta.1, add initial Changelog
1.0.0-beta.1
2019-10-10 19:08:47 +02:00
björn petersen
a40b99aae0
Merge pull request #709 from deltachat/fix/features
...
fix: disable default features for pgp, by default
2019-10-10 18:32:56 +02:00
dignifiedquire
b9646446f8
fix: disable default features for pgp, by default
2019-10-10 18:05:11 +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
B. Petersen
67848e3333
use libc::c_char as i8 and u8 are used differently on x86 and arm
2019-10-10 08:44:31 +02:00
björn petersen
4d79c6e235
Merge pull request #705 from deltachat/safer-strn
...
len-check in strncasecmp()
2019-10-10 01:19:09 +02:00
B. Petersen
bc99d9d196
cargo fmt
2019-10-10 00:39:35 +02:00
B. Petersen
e1fc5863c2
target comments of @hpk42
2019-10-10 00:29:52 +02:00
B. Petersen
f0791149e6
document dc_str_unref()
2019-10-10 00:29:52 +02:00
B. Petersen
297b032bdc
fix doxygen, some rewording
2019-10-10 00:29:52 +02:00
holger krekel
98180c175d
make sure c-doc upload dirs exist even if branch name has / in it
2019-10-10 00:23:36 +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
B. Petersen
2c98e91276
target comments of @link2xt
2019-10-10 00:22:50 +02:00
B. Petersen
3270120d16
strncasecmp() compares the given number of characters but not after a 0-byte
2019-10-09 19:00:54 +02:00
holger krekel
77a7efc920
fix #694 by forking lettre and avoiding extra NOOP Smtp commands for connection checking.
...
If this works out and fixes our problem, we can submit upstream.
2019-10-09 18:25:41 +02:00
björn petersen
de604e744e
Merge pull request #703 from deltachat/fix-strncasecmp
...
fix(mmime): correct implementation of strncasecmp
2019-10-09 17:31:41 +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
dignifiedquire
3a1e74a306
fix(mmime): correct implementation of strncasecmp
...
Closes #523
2019-10-09 14:27:15 +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
24d744b94c
try generating and uploading doxygen docs ( #697 )
2019-10-08 18:52:13 +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
holger krekel
ba5b3ad675
fix #690 by avoiding account.__del__ and registering/unregistering with atexit (a module that manages process/interpreter shutdown and calls into registered shutdown. Recommended way for user code still is to call account.shutdown() explcitely.
2019-10-07 12:24:50 +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
b775ecca08
fix tests
2019-10-07 00:55:33 +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