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
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
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
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
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
Simon Laux
5b993f601f
transform current_block to ok_to_continue
2019-09-02 18:00:23 +02:00
Alexander Krotov
1497f263dc
Mark Chatlist::get_summary as safe
2019-09-02 13:00:04 +03:00
björn petersen
d6e2798f5a
Merge pull request #416 from deltachat/as_u32
...
Convert DC_*_ID_* constants to u32
2019-09-02 10:22:18 +02:00
Alexander Krotov
b5a9cc1380
Convert DC_*_ID_* constants to u32
2019-09-01 23:41:05 +03:00
Alexander Krotov
1ba7368c6d
mailmime_get_mime_type: do not dereference null pointer
...
In C code there was a check for null pointer in reconcat_mime()
It did nothing if raw_mime was null.
Now the result is stored even when mailmime_get_mime_type is
explicitly called with null pointer.
This commit restores C core logic.
Fixes #420
2019-09-01 20:11:50 +03:00
Dmitry Bogatov
9b70ea0595
Fix one clippy::unneeded_unwrap warning
2019-08-28 00:32:01 +00:00
Dmitry Bogatov
a6928c29e8
Fix one clippy::unneeded_unwrap warning
2019-08-28 00:23:15 +00:00
Dmitry Bogatov
3d9129c198
Fix one clippy::unneeded_unwrap warning
2019-08-28 00:17:12 +00:00
Dmitry Bogatov
cf8f37449c
Fix one clippy::unneeded_unwrap warning
2019-08-28 00:13:37 +00:00
Dmitry Bogatov
886870964b
Fix one clippy::unneeded_unwrap warning
2019-08-28 00:11:48 +00:00
Dmitry Bogatov
6a5e107e64
Fix one clippy::unneeded_unwrap warning
2019-08-28 00:09:40 +00:00
Dmitry Bogatov
723624b3f7
Fix one clippy::unneeded_unwrap warning
2019-08-28 00:06:49 +00:00
Dmitry Bogatov
634dfaa1ca
Fix one clippy::unneeded_unwrap warning
2019-08-28 00:03:07 +00:00
Dmitry Bogatov
2d00495d29
Fix one clippy::unneeded_unwrap warning
2019-08-28 00:01:09 +00:00
Dmitry Bogatov
ea964fd733
Fix one clippy::unneeded_unwrap warning
2019-08-27 23:58:50 +00:00
Dmitry Bogatov
dd5803e576
Fix one clippy::unneeded_unwrap warning
2019-08-27 23:18:42 +00:00
Dmitry Bogatov
85e16f6e82
Fix one clippy::unneeded_unwrap warning
2019-08-27 23:06:56 +00:00
Dmitry Bogatov
0a9f61783d
Fix one clippy::unneeded_unwrap warning
2019-08-27 23:00:37 +00:00
Dmitry Bogatov
19a0071585
Fix one clippy::unneeded_unwrap warning
2019-08-27 22:56:46 +00:00
Dmitry Bogatov
2fe07e86c7
Replace explicit casts from 0 to pointer with std::ptr::null
2019-08-27 21:22:03 +00:00
Dmitry Bogatov
22c1b34ebf
Remove 'unsafe' qualifier of dc_mimeparser_new()
2019-08-27 22:20:45 +02:00