B. Petersen
4be481275f
clearer naming
2019-09-06 14:32:17 +02:00
Dmitry Bogatov
28cfe36f43
Change type of dc_mimeparser_t.decryption_failed to bool
2019-09-06 03:48:41 +00:00
Dmitry Bogatov
e0df78c5f7
Change type of dc_mimepart_t.is_meta to bool
2019-09-06 03:41:18 +00:00
Dmitry Bogatov
4d8b058b65
Change type of dc_mimeparser_t.is_forwarded to bool
2019-09-06 03:36:54 +00:00
Dmitry Bogatov
da25611758
Change type of function from `const char *' to &str
2019-09-06 03:05:12 +00:00
B. Petersen
27732c85af
mark actually safe function as such
2019-09-06 00:55:50 +02:00
B. Petersen
5ffc84eb59
remove unused functions
2019-09-06 00:55:50 +02:00
holger krekel
0a6e540394
rename dc_securejoin to securejoin.rs
2019-09-05 22:55:25 +02: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
holger krekel
b2fafeff19
use some BOB and VC constants instead of raw numbers
2019-09-05 22:55:25 +02:00
holger krekel
79510a83de
- remove many *libc::char usages, and c-pointer from fingerprint
...
- rustify get_chat_id_by_grpid and streamline returned chat id handling (thereby apprently fixing the test, don't ask)
2019-09-05 22:55:25 +02:00
holger krekel
dd0afdfeb0
add QR based join-group API, with test and SEGFAULT fix to rust
2019-09-05 22:55:25 +02:00
holger krekel
b6997c4455
regen constants and improve high level API for QR setup contact
2019-09-05 22:55:25 +02:00
holger krekel
2920732435
(dignifiedquire, hpk, jikstra)
...
- fix and test peerstate::from_fingerprint
- add and test python API for secure-join QR + setup-contact
2019-09-05 22:55:25 +02:00
jikstra
b9cfcce284
fix ffi
2019-09-05 22:55:25 +02:00
jikstra
70d997964b
cargo fmt
2019-09-05 22:55:25 +02:00
jikstra
4ffe71e1df
Fix encoding for email & name, fix qrencode command in repl
2019-09-05 22:55:25 +02:00
jikstra
cc2339fbe2
Fix closure in dc_securejoin, make sure we return an empty string and
...
never null, make dc_get_securejoin_qr return an Option<String> and move
the logic to cast it to c_str into the ffi
2019-09-05 22:55:25 +02:00
Alexander Krotov
8fb859c0c4
Merge pull request #445 from deltachat/smtp_error
...
Avoid panic on SMTP error
2019-09-05 20:22:24 +00:00
jikstra
5ff472dae0
Implement helper method to easily check if a bit flag is inside
...
listflags. Make Contact::get_all use it
Add method documentation and tests
2019-09-05 18:02:50 +02:00
holger krekel
6be4a6ed00
switch to counting ok_to_continue instead of current_blocks -- this still reflects structural problems or missing-rustification problems
2019-09-05 18:00:18 +02:00
Alexander Krotov
094d46293e
Set Smtp.error when SMTP fails to send message
2019-09-05 05:29:37 +03:00
Alexander Krotov
c8d945db56
Store Smtp.error as Option<String>
...
Without this change, when SMTP password is incorrect,
as_str(sock.error) is called with a null pointer,
and as_str panics.
Now it does not crash when the error is not set.
2019-09-05 05:28:57 +03:00
Alexander Krotov
f78f0079c1
Upgrade to the latest version of imap crate
2019-09-04 20:59:54 +02:00
Dmitry Bogatov
98d6bdb48a
Simplify control flow in dc_DC_JOB_SEND function
...
Replace `ok_to_continue' control flow variables with early return from
function, since there is no longer need to free memory manually.
2019-09-04 16:44:51 +02:00
Dmitry Bogatov
0391aebaeb
Remove C pointer manipulation from do_DC_JOB_SEND()
...
This change removes several `unsafe' blocks by using safe version of
`dc_read_file' function.
Note, that logic is changed slightly: if get(Param::File) returns
Some(""), it no longer triggers "missing filename warnings".
2019-09-04 16:44:51 +02:00
Alexander Krotov
46520edd87
Print error if CAPABILITY command fails.
2019-09-04 15:12:00 +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
Alexander Krotov
65adff4bdd
Merge pull request #437 from KAction/spelling
...
Fix minor spelling errors in python/README.rst
2019-09-04 10:55:58 +00:00
Dmitry Bogatov
e60fc0dc30
Fix minor spelling errors in python/README.rst
2019-09-04 06:19:21 +00:00
Alexander Krotov
ffd719962c
Merge pull request #430 from deltachat/latest-imap
...
Update to the latest rust-imap
2019-09-03 17:12:12 +00:00
dignifiedquire
1a1f0c0a7c
refactor(e2ee): rename dc_e2ee -> e2ee
2019-09-03 19:05:21 +02:00
dignifiedquire
3944592c09
refactor(e2ee): restructure types a and method slightly
2019-09-03 19:05:21 +02:00
holger krekel
a5f862a564
remove python2 testing
2019-09-03 19:04:09 +02:00
Alexander Krotov
489f25940f
Update to the latest rust-imap
...
It uses imap-proto 0.8.1 instead of outdated 0.7.0.
2019-09-03 19:14:56 +03:00
Dmitry Bogatov
6288909481
Refactor is_known_rfc724_mid() to use Iterator interface
2019-09-03 16:08:52 +02:00
Dmitry Bogatov
c95f134963
Change return type of is_known_rfc724_mid_in_list() to bool
2019-09-03 16:08:52 +02:00
Simon Laux
024c2883c0
cargo fmt
2019-09-03 15:32:36 +02:00
Simon Laux
d7b0ecad75
transform current_block to ok_to_continue
2019-09-03 15:32:36 +02:00
B. Petersen
50947b81c0
set correct default value for inbox_watch
2019-09-03 15:31:17 +02:00
holger krekel
e5a1b721f1
try use py36 for uploads ( #429 )
...
* try use py36 for uploads
* another try
* another
2019-09-03 15:30:28 +02:00
Alexander Krotov
aeb1a88e7a
Remove dc_move.rs
...
and move dc_do_heuristics_moves to context.rs
2019-09-03 13:39:14 +02:00
Alexander Krotov
c406675d6a
Mark dc_do_heuristics_moves as safe
2019-09-03 13:39:14 +02:00
Alexander Krotov
1ec193991b
Make dc_token.rs safe
2019-09-02 20:57:22 +02:00
Simon Laux
1d09d2f0d1
cargo fmt
2019-09-02 18:00:23 +02:00