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
Simon Laux
ed95752f8f
use DC_CONTACT_ID_SELF constant instead of 1
2019-08-06 09:02:41 +02:00
Simon Laux
81719c4b33
add coment that helps with understanding the code
2019-08-06 09:02:41 +02:00
Simon Laux
fc6019e3c9
fix sql statement in order to close #163
2019-08-06 09:02:41 +02:00
Alexander Krotov
5811248bfc
Merge pull request #289 from KAction/new-assert
...
python: assert that underlying dc_msg_t* for Message is not NULL
2019-08-04 12:58:04 +00:00
Dmitry Bogatov
47b76ceb3e
python: assert that underlying dc_msg_t* for Message is not NULL
2019-08-04 09:17:54 +00:00
Floris Bruynooghe
0051720d1b
Kill to_cstring with fire
...
I swear I already did this, see #273 .
2019-08-04 09:49:41 +02:00
Jikstra
d814dffbb0
Merge pull request #281 from deltachat/new-mmime
...
chore: update mmime to 0.1.1
2019-08-03 15:31:36 +02:00
dignifiedquire
4e1e32df65
chore: update mmime to 0.1.1
2019-08-03 11:12:21 +02:00
Floris Bruynooghe
d2b23b727b
Restore carriage-return handling to how it was in dcc
...
Some part of the translation seems to have got this wrong somewhere.
Add a test and restore handling to something more sane again.
2019-08-03 01:00:59 +02:00
Floris Bruynooghe
d37dda6f50
Turn the function safe
2019-08-03 01:00:59 +02:00
Floris Bruynooghe
c568d5dcac
Safe string usage
...
Mostly safe string usage, but some other minor cleanups:
- This isn't used from any C code, so no extern C.
- Use Config enums rather than strings.
- Clean up old unused sql statements.
2019-08-03 01:00:59 +02:00
Floris Bruynooghe
227ef1b467
Add unittest
...
This should give us some confidence in the refactoring.
2019-08-03 01:00:59 +02:00
dignifiedquire
a8cea64f39
feat(deps): update rusqlite to official version again
...
A fix for the non utf8 strings has been merged and released in `0.20`
2019-08-03 00:11:23 +02:00
Friedel Ziegelmayer
294e855bbe
Merge pull request #276 from link2xt/lines
...
Return Vec instead of carray from dc_split_into_lines
2019-08-02 20:28:23 +02:00
Alexander Krotov
c5eef21645
Remove carray use and comment
2019-08-02 13:12:32 +03:00
Alexander Krotov
d64fcece5b
Return Vec instead of carray from dc_split_into_lines
2019-08-02 13:12:25 +03:00
Friedel Ziegelmayer
0a9f3ae160
Use Vec instead of carray in dc_forward_msgs() ( #277 )
...
Use Vec instead of carray in dc_forward_msgs()
2019-08-02 11:05:28 +02:00
Friedel Ziegelmayer
acbedbd352
Remove unused function dc_simplify_simplify ( #278 )
...
Remove unused function dc_simplify_simplify
2019-08-02 11:05:05 +02:00
Alexander Krotov
e78b879c9e
Remove unused function dc_simplify_simplify
2019-08-02 09:29:54 +03:00
Alexander Krotov
1145c3533b
Use Vec instead of carray in dc_forward_msgs()
2019-08-02 01:34:15 +03:00
Friedel Ziegelmayer
0d41a78182
Merge pull request #272 from link2xt/parts_vec
...
Store dc_mimeparser_t::parts as Vec instead of carray
2019-08-01 23:50:53 +02:00
Alexander Krotov
a4f94dbf86
Store dc_mimeparser_t::parts as Vec instead of carray
2019-08-01 23:21:56 +03:00