Commit Graph

3770 Commits

Author SHA1 Message Date
Friedel Ziegelmayer
f0cfcef864 refactor: use reqwest to handle http-get requests
Closes #82
2019-05-27 09:06:55 +02:00
dignifiedquire
66d8421a90 refactor: remove dc_hash in favor of HashMap and HashSet
Closes #49
2019-05-26 23:01:17 +02:00
Friedel Ziegelmayer
a247e5b143 refactor(oauth): safe oauth2 and remove custom json parser (#80)
* refactor(oauth): safe oauth2 and remove custom json parser

Closes #46,#53
2019-05-26 22:49:52 +02:00
Friedel Ziegelmayer
94aa314f30 refactor(peerstate): safe implementation of peerstate 2019-05-26 22:33:39 +02:00
dignifiedquire
e9a42a3c56 fix(sqlite): handle non availble stats 2019-05-19 19:40:11 +02:00
dignifiedquire
45385abc4f refactor(imap): use format! for warnings in deletion 2019-05-19 17:54:35 +02:00
Friedel Ziegelmayer
379fc72094 perf: reduce verification load (#75)
- assume valid keys in the db
- verify keys on import from headers + disk
- use references in keyring when possible
2019-05-17 10:19:43 +02:00
Lars-Magnus Skog
8678813051 fix: regressions in dc_msg_get_duration() and dc_delete_contact() (#73)
* fix: regression in dc_msg_get_duration, should return int

* fix: regression in dc_delete_contact()
2019-05-16 19:06:14 +02:00
Friedel Ziegelmayer
342e416b4e Ci updates & closer to windows builds
* chore: update some ci

* feat: no more libiconv

* refactor: updates for updated mmime api

* fixup: correct mmime path

* cleanup

* use newer visual studio

* Update appveyor.yml

* unify libc imports and improve windows situation

* refactor: use rust based sleep

* improve cross platform state of types

* docs: update readme badges
2019-05-16 17:16:07 +02:00
Friedel Ziegelmayer
b992b8ea09 fix: ensure keys are always valid (#66)
- always verify keys
- ensure serialized blobs stay allocated until written to sqlite
2019-05-16 08:36:48 +02:00
dignifiedquire
1430b60853 fix(peerstate): another key equals 2019-05-15 12:55:08 +02:00
dignifiedquire
813addfa1d fix(peerstate): equality checks are tricky 2019-05-15 12:51:31 +02:00
dignifiedquire
826fe573a4 fix: more logic fixes for encryption 2019-05-14 23:54:29 +02:00
dignifiedquire
e32329e860 feat: update version info 2019-05-14 23:18:23 +02:00
dignifiedquire
440f383606 fix(imf): no double refs 2019-05-14 23:08:24 +02:00
dignifiedquire
0632c1756a chore(imap): cleanup 2019-05-14 23:08:08 +02:00
dignifiedquire
7dd2cc660b fix(imap): improve reconnection logic and ideling 2019-05-14 22:43:04 +02:00
dignifiedquire
ed79e5256f fix(smtp): handle failed smtp connections 2019-05-14 22:42:45 +02:00
dignifiedquire
1f562357e2 fix(apeerstate): fix key peeking logic 2019-05-14 15:49:20 +02:00
dignifiedquire
c399f0689a fix(e2ee): don't panic on missing keys 2019-05-14 11:25:06 +02:00
dignifiedquire
5a1dd3ccbe fix(imap): only interrupt existing idle connection 2019-05-14 11:24:54 +02:00
dignifiedquire
35070f6e5a fix allocation 2019-05-14 00:57:14 +02:00
dignifiedquire
dfb989e0d0 finish it 2019-05-14 00:44:59 +02:00
dignifiedquire
a95d6f85cc start save implementation of save keys 2019-05-14 00:44:59 +02:00
Lars-Magnus Skog
0408695c1d test: move tests to dc_strencode.rs 2019-05-13 23:10:34 +02:00
Lars-Magnus Skog
4fb5bc63be test: move tests to dc_tools.rs 2019-05-13 17:33:34 +02:00
Lars-Magnus Skog
90daeb3616 test: use constants instead of hardcoded values 2019-05-13 16:47:02 +02:00
Lars-Magnus Skog
be1972e36c test: pull in constants for message types into tests 2019-05-13 16:38:38 +02:00
Lars-Magnus Skog
95f4d0d701 test: test more message types 2019-05-13 16:35:10 +02:00
Lars-Magnus Skog
5c9dc3a334 test: move dc_msg_guess_msgtype_from_suffix tests to dc_msg.rs 2019-05-13 16:23:47 +02:00
Lars-Magnus Skog
ab96264c1a test: move dc_atof/dc_ftoa tests to dc_tools.rs 2019-05-13 15:48:03 +02:00
Lars-Magnus Skog
4183141424 test: move ato{l,i} tests to x.rs 2019-05-13 15:48:03 +02:00
Lars-Magnus Skog
26d6e41c7d test: move dc_may_be_valid_addr tests to dc_contact.rs 2019-05-13 15:48:03 +02:00
Lars-Magnus Skog
5ccc68bbfa test: move mime parsing unit tests to dc_mimeparser.rs 2019-05-13 15:48:02 +02:00
Lars-Magnus Skog
a95544c5c0 test: move simplify tests to unit tests for dc_simplify.rs 2019-05-13 15:46:17 +02:00
Lars-Magnus Skog
dc92166ca2 chore: remove blobdir member from dc_mimeparser_t struct 🔥
dc_mimeparser_new() constructor takes both blobdir and context, but only
uses the blobdir from the context and doesn't care about parser.blobdir,
this can be removed safely since only used internally.
2019-05-13 15:32:53 +02:00
dignifiedquire
d480209cfa feat(imap): bring back oauth2 logic 2019-05-12 23:45:11 +02:00
dignifiedquire
173d7cd767 fix(imap): properly disconnect 2019-05-12 23:12:38 +02:00
dignifiedquire
693474d5be fix(dc_job): dont subtract too much 2019-05-12 23:11:13 +02:00
dignifiedquire
fdd870286e refactor: move aheader to safe rust 2019-05-12 23:11:13 +02:00
dignifiedquire
00314ffbe0 feat: add proper shutdown logic for imap 2019-05-12 22:18:22 +02:00
Lars-Magnus Skog
f4467d008c refactor: fix double negations 2019-05-11 12:13:26 +02:00
Hocuri
569c924a0c Replace types that use only 0 and 1 with bool (#18) (#58)
* Start replacing int with bool where possible (#18)

* Continue replacing int with bool where possible (#18)

* Continue replacing int with bool where possible (#18)

* Run fmt
2019-05-11 12:07:09 +02:00
dignifiedquire
7266b64c66 fix: flags typo 2019-05-10 16:00:08 +01:00
dignifiedquire
0c4d9efb40 chore(imap): log failed command 2019-05-10 10:59:36 +01:00
dignifiedquire
da6aba90a4 fix: add missing comma to dc_get_locations sql 2019-05-10 10:57:12 +01:00
dignifiedquire
76f982a1f5 fix: mvbox and sentbox lock contention 2019-05-10 03:39:23 +01:00
dignifiedquire
2a4057a774 fix(tls): disable hostname checks in all cases 2019-05-09 14:21:41 +01:00
Lars-Magnus Skog
3a7dcd14ab chore: stop allowing unused_attributes (#54) 2019-05-08 12:40:18 +02:00
Lars-Magnus Skog
0bbda91e77 Fix warnings on variables not needing mut (#48)
chore: fix compiler warnings (unused mut)
2019-05-08 00:44:40 +02:00