Alexander Krotov
555b4bc8c7
python/README.rst: s/mail_pwd/mail_pw/
...
mail_pw is the option that is actually read by the tests
2019-10-02 13:09:45 +02:00
björn petersen
75f41bcb90
Merge pull request #658 from deltachat/fix-contact-requests
...
move contact-requests to the beginning of chatlists
2019-10-01 13:29:44 +02:00
B. Petersen
97e1fbc198
move contact-requests to beginning of chatlists
...
contact-requests of non-blocked senders are shown in the chatlist,
so that the user gets aware of them without opening the contact-request-chat.
however, for that, the contact-request virtual-chat-id
must be added to the beginning of the list,
otherwise it won't get noticed by the user.
2019-10-01 12:50:31 +02:00
holger krekel
ee6d16f1b1
on some call sites: peerstate.save_to_db() should bubble up errors instead of crashing.
...
also write a test that double-creation of an addr-row is fine.
2019-10-01 10:34:36 +02:00
björn petersen
22d2097132
log all database-migration actions ( #654 )
2019-09-30 20:56:19 +02:00
björn petersen
c376de9b5e
add sticker type ( #653 )
...
* add sticker type
this pr adds the message type 'sticker'.
stickers are handled as normal images
but tagged with the header `Chat-Content: sticker`
it's up to the ui to render these stickers appropriate.
* cargo fmt
2019-09-30 20:55:27 +02:00
holger krekel
ab2ef1e1e4
shift most mmime functions to wrapmime
2019-09-30 00:52:14 +02:00
holger krekel
18030fa61e
remove duplicate code and possibly a leak
2019-09-30 00:52:14 +02:00
holger krekel
064337b5d3
refactor one occassion of determinig transfer encoding
2019-09-30 00:52:14 +02:00
Dmitry Bogatov
a6a6fc48c1
Remove unused outlk_autodiscover_t.redirect field
2019-09-29 23:35:01 +02:00
holger krekel
d72e9bb05b
remove dc_get_fine_* method and validate_filename
2019-09-29 22:49:01 +02:00
holger krekel
7a9fdb4acd
add a new tested context.new_blob_dir method to simplify writing out blob files
2019-09-29 22:49:01 +02:00
Alexander Krotov
a6d0464735
Merge pull request #643 from deltachat/top_evil_rs-skip-safe
...
top_evil_rs.py: do not list safe files
2019-09-29 19:07:56 +00:00
Alexander Krotov
52f69cc7dc
top_evil_rs.py: do not list safe files
2019-09-29 18:51:48 +03:00
Dmitry Bogatov
0beadde758
Remove _safe suffix from dc_decode_header function
...
There is no longer unsafe version of this function, so suffix is
useless now.
2019-09-28 23:18:41 +02:00
Dmitry Bogatov
618abd63cf
Drop unsafe version of dc_decode_header_words
...
Replace all call sites with safe version and adjust tests as apporiate.
2019-09-28 23:18:41 +02:00
Friedel Ziegelmayer
34b3ddf63b
refactor(e2ee): reduce unsafe spread
2019-09-28 13:20:33 -06:00
holger krekel
ca76cac314
address @flub's review comment from https://github.com/deltachat/deltachat-core-rust/pull/622
2019-09-28 03:01:52 +02:00
B. Petersen
3a16ad89bd
make ffi-string-parameter const
...
typically, nearly all string-parameters in the ffi should be const.
one of the few exceptions is dc_str_unref() that really modifies the given data.
2019-09-28 02:56:27 +02:00
dignifiedquire
fb9369f333
refactor(imex): almost all unsafe gone here
2019-09-28 02:55:42 +02:00
B. Petersen
66897611d9
fix tests according to the changed verification structure
2019-09-28 00:55:36 +02:00
B. Petersen
6888554e9d
use independent verification key
...
there are 3 key blobs in the database, gossip_key, public_key and verified_key.
the verification_key should not change if, for any reasons,
the public_key or the gossip_key changes.
2019-09-28 00:55:36 +02:00
holger krekel
f28a971b96
several fixes and streamlinings, probably verified-group encryption is fixed, or at least we should see better errors
2019-09-27 23:24:57 +02:00
holger krekel
18808d0a61
majorly rustify and simplify the incoming decryption pipeline
2019-09-27 23:24:57 +02:00
holger krekel
86369148ee
fix #616 -- allow invalid certs for smtp and imap connections -- this is the behaviour of C-core.
2019-09-27 21:44:21 +02:00
holger krekel
f45ee2ab4d
fix #615 -- like with c-core Chat-Version is left in unprotected headers because
...
it's eg used in server-filters for detecting DC messages
2019-09-27 18:28:47 +02:00
holger krekel
2b73fab913
cargo fmt
2019-09-27 18:28:29 +02:00
holger krekel
e0d750ac64
little cleanup dc_imex
2019-09-27 18:28:29 +02:00
Alexander Krotov
bb57c6e7b7
Merge pull request #627 from deltachat/dc_receive_imf-slice
...
Pass slice to dc_receive_imf
2019-09-27 16:27:14 +00:00
Alexander Krotov
f346a052c1
Return Result from dc_initiate_key_transfer
2019-09-27 17:57:45 +02:00
Alexander Krotov
3933353b5f
Pass slice to dc_receive_imf
...
instead of pointer and length
2019-09-27 17:53:41 +03:00
Dmitry Bogatov
6c9c21c135
quote_word: avoid dependency on phf crate
2019-09-27 04:11:50 +02:00
Dmitry Bogatov
d02a721eed
Reimplement dc_encode_header_words in safe Rust
...
This change fixes proptest, introduced in [THIS~2] commit.
2019-09-27 04:11:50 +02:00
Dmitry Bogatov
8ffb4ae127
Add proptest seed that reveals strencoding bug
2019-09-27 04:11:50 +02:00
Dmitry Bogatov
96fbeb583b
Add proptest to check dc_header_{encode,decode}
2019-09-27 04:11:50 +02:00
Dmitry Bogatov
33b98a15d3
Remove unused "print_hex" function
2019-09-27 04:11:50 +02:00
Dmitry Bogatov
e523ebe3c1
Implement safe version of quote_word
2019-09-27 04:11:50 +02:00
Dmitry Bogatov
e17c671b7c
Rename local variables to not misleadingly refer to MMAPString
2019-09-27 04:11:50 +02:00
Dmitry Bogatov
e7565e1a2a
Use rust strings instead of MMapString in src/dc_strencode.rs
...
Since Rust strings operations are assumed to never fail, this commit
removes a lot of checking, whether appending to mmapstring fails. Now it
is Rust runtime burden.
2019-09-27 04:11:50 +02:00
B. Petersen
b73d6377fc
do not truncate messages in contact requests
...
core-c has truncated messages in the contact requests.
this is questionable in general, as
- all messages, including contact requests,
are already truncated, unquoted, simplified etc.
- the ui should be capable of showing the full text anyway
(when the contact request is accepted, the whole messase is shown)
- also, all current ui show the contact requests by name only in the
chatlist; the user often does not even come to the contact request view.
- if the ui wants to show the contact request is a special way,
it is probably better to leave this truncation up to the ui
2019-09-27 02:55:23 +02:00
holger krekel
31f5fffc45
cargo fmt
2019-09-26 20:45:03 +02:00
holger krekel
64c518c2f2
remove ok_to_continue
2019-09-26 20:45:03 +02:00
B. Petersen
1ed543b0e8
adapt group-id length to reality
2019-09-26 20:10:33 +02:00
Floris Bruynooghe
8b7cd2dd1a
Revert back to only ffi-level checking of open context
...
The Rust context is always open, the return value of this function was
simply the wrong way around.
2019-09-26 20:08:36 +02:00
Florian Bruhin
8520b5211a
python: Add .venv to .gitignore
2019-09-26 19:20:56 +02:00
Florian Bruhin
03661e2a71
python: Allow to configure debug logging via account
2019-09-26 19:20:56 +02:00
jikstra
20b82b3638
Fix ffi actually calling context.sql.is_open()
2019-09-26 18:36:31 +02:00
Alexander Krotov
cb499ae502
Return Result<String> from dc_decrypt_setup_file
2019-09-26 18:05:29 +02:00
holger krekel
02b73207f9
fixup this PR with tests, and returning None from get_filemime
2019-09-26 17:12:06 +02:00
jikstra
53b5cbc12a
get_filemime() should return an empty string if no mimetype is present
...
and not default to `applicatopm/octet-stream`
2019-09-26 17:12:06 +02:00