holger krekel
5d47d25c1e
fix some longer standing nonsense code that sent to misleading MSG_READ events instead of one correct one
2019-08-08 21:27:33 +02:00
holger krekel
e4f9446e3c
(jikstra, hpk) fix a logic bug introduced with the stock-string merge which set the better message only if it was empty
2019-08-08 21:27:30 +02:00
holger krekel
abbbd0cb67
fix a failure which blocked correctly sending out messages (dc_job_add_smtp mis-set filename)
2019-08-08 21:27:12 +02:00
dignifiedquire
ae9f52e001
fix: improve some string handling in the message recieve path
2019-08-08 21:27:05 +02:00
Friedel Ziegelmayer
2414a618e2
Merge pull request #305 from link2xt/keyhistory
...
Remove empty keyhistory module
2019-08-08 16:20:55 +02:00
Alexander Krotov
7c34806125
Remove empty keyhistory module
2019-08-08 13:32:45 +03:00
Friedel Ziegelmayer
c1f19aa9d3
Merge pull request #292 from link2xt/dc_get_abs_path_safe
...
Implement dc_get_abs_path_safe
2019-08-08 12:28:19 +02:00
Friedel Ziegelmayer
aab2336223
Merge pull request #304 from link2xt/set_self_key_bool
...
Return bool from set_self_key()
2019-08-08 12:20:15 +02:00
Friedel Ziegelmayer
7863f5719c
Merge pull request #303 from deltachat/fix_chat_list_no_messages
...
fix own messages displayed as noMsgs in summary
2019-08-08 12:19:31 +02:00
Alexander Krotov
8c933f8fa8
Return bool from set_self_key()
2019-08-08 12:27:01 +03:00
Simon Laux
3d83409375
fix own messages displayed as noMsgs in summary
2019-08-08 08:48:58 +02:00
Alexander Krotov
76dbb37609
Implement dc_get_abs_path_safe
2019-08-08 04:20:12 +03:00
Jikstra
e9ff02bdc5
Merge pull request #296 from deltachat/remove_gotos_dc_e2ee
...
Remove gotos from dc_e2ee
2019-08-08 00:22:51 +02:00
Jikstra
602d145348
Merge pull request #297 from deltachat/remove_gotos_dc_mimefactory
...
Remove gotos from dc_mimefactory
2019-08-08 00:15:28 +02:00
Jikstra
ee264117d3
Merge pull request #298 from deltachat/remove_gotos_dc_strencode
...
Remove gotos from dc_strencode
2019-08-07 23:41:33 +02:00
Jikstra
721dcd7ccd
Merge pull request #295 from deltachat/remove_gotos_dc_saxparser
...
Remove gotos from dc_saxparser
2019-08-07 23:37:50 +02:00
jikstra
cb138fdcb7
Remove comment
2019-08-07 23:17:11 +02:00
jikstra
a993c256e2
Remove comment
2019-08-07 23:15:55 +02:00
Friedel Ziegelmayer
ea6972118a
refactor: rusty contact
...
* refactor(contact): rename and rusty memory allocations
* refactor(contact): use enum to indidcate origin
* refactor(contact): safe blocking and unblocking api
* refactor(contact): only safe and no more cstrings
2019-08-07 22:20:48 +02:00
jikstra
70f6aa9d3a
run cargo fmt
2019-08-07 21:21:13 +02:00
jikstra
e1d7871754
Remove gotos in dc_strencode
2019-08-07 21:20:35 +02:00
jikstra
655884b559
run cargo fmt
2019-08-07 21:13:54 +02:00
jikstra
e0dbd47185
Remove gotos from dc_mimefactory
2019-08-07 21:13:20 +02:00
jikstra
925759a922
run cargo fmt
2019-08-07 20:57:58 +02:00
jikstra
9034f316ba
Remove gotos from dc_e2ee_encrypt function
2019-08-07 20:57:42 +02:00
jikstra
0276f97d96
run cargo fmt
2019-08-07 20:52:38 +02:00
jikstra
ac2f9fdee5
remove gotos from new_data_part function
2019-08-07 20:52:18 +02:00
jikstra
76b3c532b1
run cargo fmt
2019-08-07 20:40:50 +02:00
Dmitry Bogatov
760332262d
Add more assertions to `deltachat-ffi' library
...
Change code to panic! on invalid input (null pointers, out-of-range
identifiers) instead of silently doing nothing.
2019-08-07 20:36:00 +02:00
Dmitry Bogatov
bc2314586c
Avoid unstable `inner_deref' feature
2019-08-07 20:31:02 +02:00
Dmitry Bogatov
765ac2005e
Change type of dc_msg_t.text to String
...
Also, remove `send-garbage' command from REPL, since it is not possible to send
non-utf8 string anymore.
2019-08-07 20:31:02 +02:00
Dmitry Bogatov
d4650ba4a9
Add Rust clone of python `prepare_and_send' test
...
Previous version of patch, that changed type of `dc_msg_t.text' to String had
been breaking `prepare_and_send' test in Python.
This commit adds same regression test, reimplemented in Rust, since running
Rust tests is simplier and faster.
2019-08-07 20:31:02 +02:00
jikstra
b715df9e97
make ok_to_continue variable mutable
2019-08-07 19:16:21 +02:00
jikstra
acb3d14d7d
remove gotos in dc_e2ee in dcrypt_part function
2019-08-07 19:14:35 +02:00
jikstra
c0e3c7a9df
run cargo fmt
2019-08-07 19:01:24 +02:00
jikstra
164130a83f
Replace gotos with ok_to_continue (is_valid) approach
2019-08-07 19:00:28 +02:00
Dmitry Bogatov
4d9bd46c9d
Add note about possible cause of lost messages
2019-08-06 22:09:43 +02:00
jikstra
76d3d86a9e
import dc_extract... method for rustdoc example
2019-08-06 21:33:01 +02:00
jikstra
c0b1e41820
Improve function documentation
2019-08-06 21:33:01 +02:00
jikstra
10689f45f4
cargo fmt
2019-08-06 21:33:01 +02:00
jikstra
205e2d4e99
Fix rustdoc
2019-08-06 21:33:01 +02:00
jikstra
5b368960c0
Apply requested changes
2019-08-06 21:33:01 +02:00
jikstra
9ecd0f80dc
Fix test and simplify if gate
2019-08-06 21:33:01 +02:00
jikstra
45eec35e6e
Make dc_extract_grpid_from_rfc724_mid take/return &str instead of String
2019-08-06 21:33:01 +02:00
jikstra
b74a86f617
Run cargo fmt
2019-08-06 21:33:01 +02:00
jikstra
ff95c44d51
Make receive_imf use safe version of dc_extract_grpid_from_rfc724_mid
...
- Remove unused unsafe wrapper
- Adjust tests to use safe version
2019-08-06 21:33:01 +02:00
jikstra
d5168916df
Refactor dc_extract_grpid_from_rfc724_mid_list and rename test
2019-08-06 21:33:01 +02:00
jikstra
282f964f2f
Add tests for dc_extract_grpid_from_rfc724_mid and implement safe
...
version of dc_extract_grpid_from_rfc724_mid
2019-08-06 21:33:01 +02:00
Simon Laux
7b5073b634
?1 and ?2
2019-08-06 09:02:41 +02:00
Simon Laux
59bb9add2a
fix an type error
2019-08-06 09:02:41 +02:00