holger krekel
212848409f
use encoded-words crate, which friedel ported from python
2019-12-05 19:29:12 +01:00
holger krekel
c2e8cc9bd6
use rfc2047 crate from @valodim and remove dc_strencode.rs completely
2019-12-05 19:29:12 +01:00
holger krekel
ec81d29580
fix multi-line subject encoding and introduce MIME debugging env var
2019-12-05 19:29:12 +01:00
Alexander Krotov
ad87b7c4a5
Fix clippy warnings
2019-12-03 20:20:52 +03:00
dignifiedquire
9196ed1e9f
remove dead code
2019-12-03 12:22:55 +01:00
dignifiedquire
dbd6303829
remove mmime
2019-12-03 12:22:55 +01:00
Alexander Krotov
694d8fd6fb
Move dc_dehtml to dehtml and remove unnecessary is_empty check
2019-12-01 13:37:37 +01:00
dignifiedquire
86f66f4d78
cleanup imap impl
2019-11-22 12:28:19 +01:00
Floris Bruynooghe
6c9e16d31a
Introduce a BlobObject type for blobs
...
This creates a specific type for blobs, with well defined conversions
at the borders. It also introduces a strong type for the Param::File
value since that param is often used used by the public API to set
filenames using absolute paths, but then core changes the param to a
blob before it gets to the database.
This eliminates a few more functions with very mallable C-like
arguments behaviour which combine a number of operations in one.
Because blob filenames are stored so often in arbitrary strings this
does add more code when receiving those, until the storage is fixed.
File name sanitisation is now deletated to the sanitize-filename crate
which should do a slightly better job at this.
2019-10-22 18:54:09 +02:00
holger krekel
45f011c63c
expose and test set_stock_translation to Python
2019-10-09 15:59:31 +02:00
dignifiedquire
fb9369f333
refactor(imex): almost all unsafe gone here
2019-09-28 02:55:42 +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
ba231d2c5f
address @dignifiedquire comments
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
dignifiedquire
05f9f454c3
refactor: remove x module and delete deadcode
2019-09-21 17:56:49 +02:00
dignifiedquire
5486ac5b9f
refacor: use an enum for events
2019-09-15 23:40:08 +02:00
dignifiedquire
f31f341a50
feat: enforce Debug implementations and remove mod types
2019-09-15 16:36:31 +02:00
Friedel Ziegelmayer
3614d57f9f
Merge pull request #469 from deltachat/refctor/strencode
...
refactor(strencode): rustify some strencode methods
2019-09-09 11:52:30 +02:00
dignifiedquire
f3e53a05a6
refactor(loginparam): rename dc_loginparam -> login_param
2019-09-08 18:48:57 +02:00
dignifiedquire
96e02af0da
refactor: rename dc_token to token
2019-09-08 18:35:20 +02:00
dignifiedquire
60fb1478c3
refactor(strencode): rustify some strencode methods
2019-09-08 15:50:28 +02:00
holger krekel
0a6e540394
rename dc_securejoin to securejoin.rs
2019-09-05 22:55:25 +02:00
dignifiedquire
1a1f0c0a7c
refactor(e2ee): rename dc_e2ee -> e2ee
2019-09-03 19:05:21 +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
dignifiedquire
23d49560bf
refactor(location): rename module dc_location -> location
2019-08-26 21:09:40 +02:00
Simon Laux
1d32e010ae
Merge pull request #397 from deltachat/move_autoconfig_to_dedicated_file
...
Move moz- and outlk-autoconfig to dedicated files
2019-08-19 19:42:25 +02:00
Simon Laux
491826556b
renaming dc_configure to configure
...
and renaming the autoconfigure modules
2019-08-19 19:03:46 +02:00
dignifiedquire
39abb0b0ad
refactor(message): rename dc_msg to message
2019-08-19 12:13:11 +02:00
dignifiedquire
cb6c8ac78b
refactor(msg): use rust based allocations
2019-08-19 12:10:26 +02:00
Friedel Ziegelmayer
a906faeb35
refactor: a rusty job
...
* refactor(jobthread): safe and rusty
* refactor(job): rusty and safe
2019-08-19 12:07:13 +02:00
dignifiedquire
d47a693611
refactor: rename dc_qr -> qr
2019-08-19 08:06:54 +02:00
dignifiedquire
401c5a7cb0
refactor(lot): rename dc_lot to lot
2019-08-19 08:06:54 +02:00
dignifiedquire
64117c2964
refactor(chat): rename dc_chat to chat
2019-08-17 11:30:26 +02:00
dignifiedquire
4878192a25
refactor: remove now unused saxparser
2019-08-17 01:32:43 +02:00
Dmitry Bogatov
7c7a1b64df
Remove dead code
2019-08-16 04:46:20 +00:00
Dmitry Bogatov
ea661896a1
Do not export more than strictly necessary
2019-08-16 04:46:20 +00:00
dignifiedquire
523141597e
chore: remove no longer needed features
2019-08-13 12:20:53 +02:00
dignifiedquire
20f9bb3b14
chore: setup clippy
2019-08-13 12:20:53 +02:00
Alexander Krotov
7c34806125
Remove empty keyhistory module
2019-08-08 13:32:45 +03: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
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
3358d09148
Derive and use Display trait for Viewtype
2019-08-01 06:05:56 +00:00
Dmitry Bogatov
39e530f759
Change Context.os_name field to String
2019-07-31 15:45:35 +00:00
Friedel Ziegelmayer
188da2a020
refactor(params): rustify
2019-07-29 01:49:53 +02:00
Dmitry Bogatov
669ed0e0df
Override non_camel_case_types warning on per-declaration basis
2019-07-28 22:44:21 +02:00
Dmitry Bogatov
c6ccfd824e
Override `non_shake_case' warning on per-function basis
...
This change removes global override of `non_shake_case' warning and replaces it
with per-function overrrides. This way, compiler will complain about style
guide violation in new code.
It should be noted, that `rustc' is not smart enough to emit warning when
override is no longer needed, it must be checked manually.
2019-07-28 22:44:21 +02:00
Dmitry Bogatov
39cc93240f
Fix 'non_upper_case_globals' compiler warnings
2019-07-28 22:44:21 +02:00
Friedel Ziegelmayer
b23ca26908
refactor(chatlist): rustify
2019-07-28 11:32:48 +02:00
Floris Bruynooghe
4902310138
Make stock strings rusty
...
This converts the stock strings API to be more safe-rust style. The
API is kept roughly the same for now but moved to methods on the
context.
2019-07-27 12:37:22 +02:00