Dmitry Bogatov
7d9fc682a0
cargo-fmt
2019-09-07 03:09:01 +00:00
Dmitry Bogatov
c4c08f2552
Remove ok_to_continue pattern from msg_prepare_raw()
...
This commit will fail CI due incorrect formatting. It is done
deliberately to simplify review process.
2019-09-07 03:06:13 +00:00
Dmitry Bogatov
400740fdba
Simplify prepare_msg_raw() using early return
...
This commit will fail CI due incorrect formatting. It is done
deliberately to simplify review process.
2019-09-07 03:03:35 +00:00
Dmitry Bogatov
42bce7c0bf
Remove last C string from prepare_msg_raw()
2019-09-07 02:54:28 +00:00
Dmitry Bogatov
a2281489a6
Create safe version of msgid-generating function
2019-09-07 02:35:13 +00:00
Dmitry Bogatov
9bf7b0bf96
Use more of Rust, less of C strings in prepare_msg_raw()
2019-09-07 01:39:26 +00:00
Dmitry Bogatov
1f82ba74aa
Remove redundant checks in prepare_msg_raw()
2019-09-06 23:24:39 +00:00
Dmitry Bogatov
1062ac6ade
Drop unsafe version of get_parent_mime_headers function
2019-09-06 23:15:31 +00:00
Dmitry Bogatov
aa5304a4f3
Use safe version of `get_parent_mime_headers()' function
2019-09-06 23:15:31 +00:00
Dmitry Bogatov
3a57ba1142
Implement safe version of `get_parent_mime_headers' function
2019-09-06 23:15:31 +00:00
Dmitry Bogatov
c0e7293360
Change return type of clist_search_string_nocase to `bool'
2019-09-06 23:15:31 +00:00
Dmitry Bogatov
dc1839760c
Simplify clist_search_string_nocase using Iterator interface
2019-09-06 23:15:31 +00:00
Dmitry Bogatov
a4e4b0fc17
Rustify type of dc_mimeparser_t.subject
2019-09-06 23:15:31 +00:00
Dmitry Bogatov
743e4deb36
Remove dc_mimepart_unref function
...
Since there is no longer any manually-managed memory, associated with
`dc_mimepart_t' structure, default Drop instances does everything
automatically.
2019-09-06 23:15:30 +00:00
Dmitry Bogatov
1d75f8478c
Rustify type of dc_mimepart_t.msg_raw
2019-09-06 23:15:27 +00: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