B. Petersen
40f9072250
add get_setupcodebegin to python bindings, test the function
2019-09-25 21:13:05 +02:00
B. Petersen
ea30bb351e
fix boolean error that makes get_setupcodebegin() failing
2019-09-25 20:37:36 +02:00
Alexander Krotov
b93550f6c8
Use DC_MSG_ID_LAST_SPECIAL in dc_continue_key_transfer
2019-09-25 03:29:37 +02:00
Alexander Krotov
60bd053095
Pass setup_code to dc_continue_key_transfer as &str
2019-09-25 03:29:37 +02:00
Alexander Krotov
8165b76001
Make dc_normalize_setup_code safe
2019-09-25 03:29:37 +02:00
jikstra
efc563f5ff
fix test
2019-09-25 01:06:42 +02:00
jikstra
e52acc994c
Make get_draft() return Ok(None) when called for a special chat id
2019-09-25 01:06:42 +02:00
holger krekel
646833d3ec
remove phf crate macro usage: it introduced 7 deps and is really an optimization if you very large (100K+) tables -- we have 10 entries or so and it's called once per message. Let's not introduce crates just because we can -- it increases compile time and in the phf case also introduced a github dependency (for whatever reason -- don't want to know ;)
2019-09-25 00:19:47 +02:00
dignifiedquire
fd72c27afe
chore(release): release 1.0.0-alpha.5
1.0.0-alpha.5
2019-09-24 17:26:18 +02:00
dignifiedquire
c13bcc25c6
chore(deps): update lock file
2019-09-24 17:25:03 +02:00
holger krekel
21c9ff6c85
cargo fmt
2019-09-23 23:13:41 +02:00
holger krekel
4d6b367654
remove ok_to_continue from job
2019-09-23 23:13:41 +02:00
holger krekel
e2fd22a78e
cargo fmt
2019-09-23 21:23:55 +02:00
holger krekel
0759bdde01
cleanup chat.rs: remove ok_to_continue and return result from add_contact methods
2019-09-23 21:23:55 +02:00
holger krekel
faa03e0e14
no functional code change: rename dc_mimefactory to mimefactory and move some functions to become MimeFactory methods
2019-09-23 20:20:34 +02:00
holger krekel
f70897a6d3
rustify new_data_part() and related sanitizations
2019-09-23 18:43:04 +02:00
holger krekel
ba231d2c5f
address @dignifiedquire comments
2019-09-23 17:10:21 +02:00
holger krekel
095cb759ed
avoid cdata_to_free trick and some more cleanups
2019-09-23 17:10:21 +02:00
holger krekel
5cbcb76039
introduce safety and a particular EncryptHelper
2019-09-23 17:10:21 +02:00
holger krekel
3388b42f20
another rustification of encrypt()
2019-09-23 17:10:21 +02:00
holger krekel
e1d541b02e
create wrapmime module and simplify some mailmime code
2019-09-23 17:10:21 +02:00
Friedel Ziegelmayer
cb784615ee
feat: import mmime crate
2019-09-23 13:20:30 +02:00
B. Petersen
321c5e049b
re-add some comments from core-c
2019-09-22 23:39:16 +02:00
holger krekel
ed7cf218f8
address three comments from @dignifiedquire
2019-09-22 23:39:16 +02:00
holger krekel
74d8368525
rustify references, in_reply_to, mimefactory's recipients_{addr,names}
2019-09-22 23:39:16 +02:00
holger krekel
dcbfa272f9
rustify parts of MimeFactory struct
2019-09-22 23:39:16 +02:00
holger krekel
42dd600e0c
more rustifications
2019-09-22 23:39:16 +02:00
holger krekel
9689df601f
streamline mimetype guessing and build_body_file
2019-09-22 23:39:16 +02:00
holger krekel
f6019583b7
better looping on some clists
2019-09-22 23:39:16 +02:00
holger krekel
2d50a3335d
- add mailimf_field_add helper to reduce number of strdup()s
...
- make build_body_text avoid char*
2019-09-22 23:39:16 +02:00
holger krekel
202bfa987d
dc_mimefactory+friends: simplify used strings, convert message_text and message_text2 to String, convert ints to bools
2019-09-22 23:39:16 +02:00
holger krekel
93f9c7cfbd
e2ee_guaranteed -> bool, rustify set_error
2019-09-22 23:39:16 +02:00
Dmitry Bogatov
8f6a0bbf09
Remove unused argument of DC_JOB_CONFIGURE_IMAP
2019-09-22 22:22:00 +02:00
björn petersen
1a47c148e5
Merge pull request #574 from KAction/test-dc_remove_cr
...
Add test for `dc_remove_cr_chars`
2019-09-22 19:47:22 +02:00
björn petersen
2435ba1ea0
Merge pull request #576 from KAction/quote_word
...
Remove useless argument to `quote_word`
2019-09-22 19:46:48 +02:00
Dmitry Bogatov
9ba57a923b
Remove useless argument to quote_word
...
Function "quote_word" accepts display charset argument, but on only call
site it is string constant. Change function to always use "utf-8"
display charset, and remove useless argument.
2019-09-21 22:20:56 +00:00
Dmitry Bogatov
90e2b6f26b
Add test for dc_remove_cr_chars
2019-09-21 21:26:47 +00:00
dignifiedquire
05f9f454c3
refactor: remove x module and delete deadcode
2019-09-21 17:56:49 +02:00
Friedel Ziegelmayer
b85f59798c
refactor(chat): remove c types and unsafe ( #572 )
...
refactor(chat): remove c types and unsafe
2019-09-21 17:14:52 +02:00
dignifiedquire
e80345a05b
refactor(chat): remove c types and unsafe
2019-09-21 16:59:59 +02:00
dignifiedquire
0bdcc3d616
refactor(message): remove remaining unsafe and c types
2019-09-21 16:37:19 +02:00
dignifiedquire
987f12740e
refactor(message): remove unsafe and c types from the Message api
2019-09-21 16:37:19 +02:00
dignifiedquire
1265016a55
refactor(message): rustiy api
2019-09-21 16:37:19 +02:00
Friedel Ziegelmayer
48d1de3678
Avoid ok-to-continue pattern in set_draft_raw ( #570 )
...
Avoid ok-to-continue pattern in `set_draft_raw`
2019-09-21 14:32:20 +02:00
Dmitry Bogatov
43f6db3252
cargo-fmt
2019-09-21 06:19:55 +00:00
Dmitry Bogatov
5b917e7d10
Remove last mutable variable from do_set_draft
2019-09-21 06:19:21 +00:00
Dmitry Bogatov
0523868a88
Avoid ok-to-continue pattern in "do_set_draft" function
...
Note: I strongly suggest reviewing this commit in side-by-side mode.
Note: This commit fails CI due incorrect formatting. It is done
deliberately to simplify review process.
2019-09-21 06:16:15 +00:00
Dmitry Bogatov
26f176eb7e
Factor another part of set_draft_raw into separate function
2019-09-21 06:04:55 +00:00
Dmitry Bogatov
ad32b5ca8f
cargo-fmt
2019-09-21 05:44:31 +00:00
Dmitry Bogatov
dbf14179dc
Make message argument to set_draft_raw() no longer optional
...
Previously, "set_draft_raw" function was used with "msg = None" only for
side-effect of removing current draft message in chat.
After draft removal functionality was factored into separate
"maybe_delete_draft" function, it is used directly in only call site,
which used to invoke "set_draft_raw" with optional message.
This function is private, and this refactoring does not change FFI
interface.
Note: This commit fails CI due incorrect formatting. It is done
deliberately to simplify review process.
2019-09-21 05:34:48 +00:00