holger krekel
fda8d0a2e2
factory.rfc724_mid is a String now (instead of C-Char*)
2019-09-19 20:03:16 +02:00
holger krekel
14bdf7fae8
make dc_create_outgoing_rfc724_mid safe and simplify call sites
2019-09-19 20:03:16 +02:00
holger krekel
d4ff7ecbaa
split qr tests
2019-09-19 20:00:27 +02:00
holger krekel
cee0e22ce7
fix #538 -- don't crash on wrong setup codes for ac-message, don't use "expect(), added test
2019-09-18 19:21:41 +02:00
holger krekel
dc8a2f54e5
use utf8 lossy strings for saved mime headers (as discussed on PR and IRC with @r10s)
2019-09-18 16:47:04 +02:00
holger krekel
3bd36feede
fix broken rust mimeparser fuzzy tests
2019-09-18 14:15:16 +02:00
holger krekel
fc1f1ce37c
streamline fixtures for online accounts, reducing test functions
2019-09-18 14:15:16 +02:00
holger krekel
ee327dc87d
remove an ancient hack on context-teardown, refine and use more regular API for finalizing online accounts
2019-09-18 14:15:16 +02:00
holger krekel
b6803191cb
Merge branch 'refactor/remove-mprintf'
2019-09-17 16:23:25 +02:00
holger krekel
2b038a34c9
Merge branch 'master' into refactor/remove-mprintf
2019-09-17 15:46:05 +02:00
holger krekel
649c2eb676
try running qr tests in a new process instead of with all the other tests
2019-09-11 22:42:51 +02:00
holger krekel
ffc525af9e
pragmatismatic: run flaky tests three times to see if we can get more "green" CI runs this way ...
...
thanks to @the-compiler also modernize plugin usage
2019-09-10 20:51:52 +02:00
holger krekel
2b257e3d0d
fix ffi
2019-09-09 19:45:43 +02:00
holger krekel
5b0c8dd9dd
address @r10s and @flub review comments, and fix some docstrings/test meta docs
2019-09-09 18:07:32 +02:00
holger krekel
650d8c45ec
fix test, and cleanup according profile-image API
2019-09-09 18:07:32 +02:00
holger krekel
383d8980d6
add profile image API to python, tests, Rust fixes/cleanups
2019-09-09 18:07:32 +02:00
holger krekel
0a6e540394
rename dc_securejoin to securejoin.rs
2019-09-05 22:55:25 +02:00
holger krekel
9f09c73ec1
make secure_join flow more readable by using and adding a few macros, tiny api changes
2019-09-05 22:55:25 +02:00
holger krekel
4bbab876ae
majorly de-indent code structure in secure_join by introducing cleanup function, also majorly reducing unsafety in several places
2019-09-05 22:55:25 +02:00
holger krekel
b2fafeff19
use some BOB and VC constants instead of raw numbers
2019-09-05 22:55:25 +02:00
holger krekel
79510a83de
- remove many *libc::char usages, and c-pointer from fingerprint
...
- rustify get_chat_id_by_grpid and streamline returned chat id handling (thereby apprently fixing the test, don't ask)
2019-09-05 22:55:25 +02:00
holger krekel
dd0afdfeb0
add QR based join-group API, with test and SEGFAULT fix to rust
2019-09-05 22:55:25 +02:00
holger krekel
b6997c4455
regen constants and improve high level API for QR setup contact
2019-09-05 22:55:25 +02:00
holger krekel
2920732435
(dignifiedquire, hpk, jikstra)
...
- fix and test peerstate::from_fingerprint
- add and test python API for secure-join QR + setup-contact
2019-09-05 22:55:25 +02:00
holger krekel
6be4a6ed00
switch to counting ok_to_continue instead of current_blocks -- this still reflects structural problems or missing-rustification problems
2019-09-05 18:00:18 +02:00
holger krekel
a5f862a564
remove python2 testing
2019-09-03 19:04:09 +02:00
holger krekel
e5a1b721f1
try use py36 for uploads ( #429 )
...
* try use py36 for uploads
* another try
* another
2019-09-03 15:30:28 +02:00
holger krekel
799d362654
cargo fmt
2019-08-18 12:44:03 +02:00
holger krekel
64beb17fa6
subst current_blocks with ok_to_continue
2019-08-18 12:44:03 +02:00
holger krekel
5ea2da4245
cargo fmt
2019-08-17 01:28:04 +02:00
holger krekel
ff1f286882
remove goto/current_block logic with ok_to_continue
2019-08-17 01:28:04 +02:00
holger krekel
18b70bff0e
remove redundant unsafe dc_str_to_color impl by calling safe one, fixes #375
2019-08-15 15:48:11 +02:00
holger krekel
7d51c6e4f4
fix documentation
2019-08-14 10:18:06 +02:00
holger krekel
8009f220fc
hold smtp lock during the full send action
2019-08-14 01:50:15 +02:00
holger krekel
ba381d0d0b
fix failing array asserts #355
2019-08-13 23:07:38 +02:00
holger krekel
6292219551
fix bug that lead to all liveconfig tests failing
2019-08-13 22:34:27 +02:00
holger krekel
650bddd54b
try fix upload failure with / branches
2019-08-12 08:38:15 +02:00
holger krekel
b94f9ef496
address @flub comments
2019-08-11 23:09:48 +02:00
holger krekel
77db475663
- rework running of liveconfig tests
...
- better README reflecting how to use things, don't advertise
run-integration-tests to only have one documented way
and use less tools for rust-devs that just want to run
python tests
- fix test skipping and get circle-ci to play along
- update docker related docs as well
2019-08-11 23:09:48 +02:00
holger krekel
be605d8ea5
fix(peerstate): encryption-not-available
...
Add a test for failing e2e encryption and some info statement to hunt where the e2e encryption failure comes from, as well as fix the issue.
Closes #233
2019-08-09 13:28:48 +02:00
holger krekel
750d6e99a8
fix some longer standing nonsense code that sent to misleading MSG_READ events instead of one correct one
2019-08-09 11:32:24 +02:00
holger krekel
a67892d414
(jikstra, hpk) fix a logic bug introduced with the stock-string merge which set the better message only if it was empty
2019-08-09 11:32:24 +02:00
holger krekel
1cd2a62caf
fix a failure which blocked correctly sending out messages (dc_job_add_smtp mis-set filename)
2019-08-09 11:32:24 +02:00
holger krekel
67d9515033
(jikstra, hpk) fix markseen logic to work like C: ignore if we get no rows for a message (eg desktop calls itwith msg_id=9 which is a special id -- and C just ignored it)
2019-07-26 09:02:11 +02:00
holger krekel
f63e79cd6d
remove MessageType, remove account.get_blob_dir which is duplicate of get_blobdir()
2019-07-26 08:57:31 +02:00
holger krekel
83346722fd
- simplify and clarify dc_msg caching for Message object
...
- merge state class into Message object proper -- one less intermediate object to worry about for callers
2019-07-26 08:57:31 +02:00
holger krekel
9836e73683
- properly support prepare-msg API and implement get_message_info()
...
- remove usage of "attr.s" across the code
- make msg.set_file() copy a file into blobdir if it isn't already
- regroup tests
- add set_draft/get_draft API
2019-07-26 08:57:31 +02:00
holger krekel
63ed5c4009
re-enable devpi uploads
2019-07-25 22:46:27 +02:00
holger krekel
2cf227571a
pure cargo fmt
2019-07-25 21:51:39 +02:00
holger krekel
9a9b49f8f0
- remove current_block logic from dc_chat.rs with the "OK_TO_CONTINUE"
...
pattern -- re-indentation will come after this commit with a pure application of "cargo fmt"
- bring back comment from C code
- make some path helpers return bool
2019-07-25 21:51:39 +02:00
holger krekel
9d87f2f10b
carefully replace msg state and type numbers with DC_MSG_* and DC_STATE_* constants and also declare them as i32 to avoid tons of casts
2019-07-25 09:45:04 +02:00
holger krekel
5de7c35622
disable upload to devpi as it's currently down and unncessarily braks PR testing
2019-07-24 14:10:29 +02:00
holger krekel
afcf48f833
add test, fix and high level python api for dc_delete_contact
...
the rust-logic was inverted -- you can not delete a contact that still has messages with it.
2019-07-23 09:37:21 +02:00
holger krekel
6f79800824
fix last two warnings
2019-07-22 11:45:41 +02:00
holger krekel
7a19963879
properly fix the QueryReturnedNoRows warning and rustfmt
2019-07-22 11:18:30 +02:00
holger krekel
cd7630360f
fix fmt
2019-07-22 02:33:08 +02:00
holger krekel
4a633169e1
Merge branch 'master' into flub-nowarn
2019-07-22 01:40:56 +02:00
holger krekel
065124b93b
Merge branch 'master' into flub-param-names
2019-07-22 01:11:47 +02:00
holger krekel
86d290832b
Merge branch 'master' into flub-py-glue-fixes
2019-07-22 01:09:58 +02:00
holger krekel
2576b78126
Merge branch 'master' into flub-py-glue-fixes
2019-07-22 00:39:47 +02:00
holger krekel
6a956b6008
Merge branch 'master' into flub-param-names
2019-07-22 00:36:52 +02:00
holger krekel
8089559958
Squashed commit of the following:
...
commit 6bc5d1b90e
Author: holger krekel <holger@merlinux.eu >
Date: Sun Jul 21 22:56:37 2019 +0200
fix fmt
commit 197d94ad9d
Merge: 7ce337c 686678c
Author: holger krekel <holger@merlinux.eu >
Date: Sun Jul 21 22:51:16 2019 +0200
Merge remote-tracking branch 'origin/master' into eventlogging
commit 7ce337c6d0
Author: holger krekel <holger@merlinux.eu >
Date: Sun Jul 21 22:44:27 2019 +0200
left-over error logging
commit 10148d2e43
Author: holger krekel <holger@merlinux.eu >
Date: Sun Jul 21 22:03:17 2019 +0200
ignore non-utf8 parts of header fields (add comment why it shouldn't happen)
don't throw error if no sql rows are returned
commit 69dc237ee3
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Sun Jul 21 12:56:04 2019 +0200
fix(receive_imf): remove recursive sql call
commit df5464ea80
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Sat Jul 20 17:05:24 2019 +0200
fix: blocked is an optional value
commit e4bf9956a5
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Sat Jul 20 16:50:56 2019 +0200
fix(msg): handle optional in_reply_to
commit d353d9d9d8
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Sat Jul 20 16:17:25 2019 +0200
fix(chat): remove recursive sql usage
commit 1ad45ed4d6
Author: holger krekel <holger@merlinux.eu >
Date: Sat Jul 20 15:14:11 2019 +0200
fix rust fmt
commit 496e980a17
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Sat Jul 20 14:34:20 2019 +0200
use forked rusqlite
commit fa09e46ed9
Author: holger krekel <holger@merlinux.eu >
Date: Sat Jul 20 12:37:51 2019 +0200
another pace where we might (and in my case did) get invalid utf8
commit d6de420b9a
Author: holger krekel <holger@merlinux.eu >
Date: Sat Jul 20 12:30:48 2019 +0200
fix some string issues, introduce to_string_lossy such that to_string() continues to panic on non-utf8
commit 38eb708db8
Author: holger krekel <holger@merlinux.eu >
Date: Sat Jul 20 01:17:53 2019 +0200
for now make to_string() less strict as we often don't want to crash the whole app just because some non-proper utf8 came in (through a message we can't neccesarily congtrol)
commit 7a59da5f8f
Author: holger krekel <holger@merlinux.eu >
Date: Fri Jul 19 22:48:39 2019 +0200
fix linting
commit f13a1d4a2f
Author: holger krekel <holger@merlinux.eu >
Date: Fri Jul 19 22:46:58 2019 +0200
fix some test flakyness
commit 7b3a450918
Author: holger krekel <holger@merlinux.eu >
Date: Fri Jul 19 22:35:07 2019 +0200
- fix saved_mime test which broke to improper conversion of
imf_raw_not_terminated
- some cargo.toml updates no clue where they come from
- log Message-ID for received messages
commit 169923b102
Author: holger krekel <holger@merlinux.eu >
Date: Fri Jul 19 12:31:22 2019 +0200
formatting
commit 42688a0622
Author: holger krekel <holger@merlinux.eu >
Date: Fri Jul 19 12:24:56 2019 +0200
remove some print statements
commit 35f3c0edd1
Merge: e7a2362 f58b1d6
Author: holger krekel <holger@merlinux.eu >
Date: Fri Jul 19 10:25:21 2019 +0200
Merge branch 'master' into eventlogging
commit e7a236264a
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Thu Jul 18 23:20:20 2019 +0200
print invalid strings
commit aaa5b820d9
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Thu Jul 18 23:12:35 2019 +0200
cleanup
commit e7f0745010
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Thu Jul 18 23:03:57 2019 +0200
reduce direc usage of CString
commit c68e7ae14e
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Thu Jul 18 22:47:47 2019 +0200
audit use of to_cstring and fix ub
commit 618087e5a7
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Thu Jul 18 21:38:52 2019 +0200
fix(imap): body ptr lifetime
commit 245abb8384
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Thu Jul 18 19:44:10 2019 +0200
remove debug
commit a3e1042001
Author: dignifiedquire <dignifiedquire@users.noreply.github.com >
Date: Thu Jul 18 18:30:54 2019 +0200
fix some things, add more debugging statements
commit 7b7ce9348f
Author: holger krekel <holger@merlinux.eu >
Date: Thu Jul 18 15:11:57 2019 +0200
fix python lint issues
commit 7a4808ba0d
Author: holger krekel <holger@merlinux.eu >
Date: Thu Jul 18 14:35:54 2019 +0200
cargofmt
commit 8f240f7153
Author: holger krekel <holger@merlinux.eu >
Date: Thu Jul 18 14:03:57 2019 +0200
(dig,hpk) pull out job collection from sql query/lock logic
commit 7d0b5d8abb
Author: holger krekel <holger@merlinux.eu >
Date: Thu Jul 18 12:52:02 2019 +0200
remove print statements and fix a crash
commit ee317cb1b5
Author: holger krekel <holger@merlinux.eu >
Date: Thu Jul 18 11:38:10 2019 +0200
fix some merge issues
commit 7b736fe635
Author: holger krekel <holger@merlinux.eu >
Date: Thu Jul 18 11:16:38 2019 +0200
(dig,hpk) add test and fix for wrong dbs
commit c7db15352a
Merge: 0b37167 0c5015d
Author: holger krekel <holger@merlinux.eu >
Date: Thu Jul 18 09:59:44 2019 +0200
Merge branch 'master' into eventlogging
commit 0b37167be8
Author: holger krekel <holger@merlinux.eu >
Date: Thu Jul 18 00:06:05 2019 +0200
address @dignifiedquire comments
commit 5cac4b5076
Author: holger krekel <holger@merlinux.eu >
Date: Wed Jul 17 12:47:22 2019 +0200
remove spurious print
commit 475a41beb3
Author: holger krekel <holger@merlinux.eu >
Date: Wed Jul 17 12:31:12 2019 +0200
address @dignifiedquire rustyness comment and fix changelog
commit ad4be80b4e
Author: holger krekel <holger@merlinux.eu >
Date: Wed Jul 17 10:25:25 2019 +0200
make smtp/imap connect() return bool instead of c-int
commit 8737c1d142
Author: holger krekel <holger@merlinux.eu >
Date: Wed Jul 17 09:26:33 2019 +0200
cleanup some parts, add comments
commit 964fe466cc
Author: holger krekel <holger@merlinux.eu >
Date: Tue Jul 16 20:05:41 2019 +0200
wip-commit which passes all tests with proper finalization
commit 43936e7db7
Author: holger krekel <holger@merlinux.eu >
Date: Tue Jul 16 16:17:42 2019 +0200
snapshot of my current debugging state
commit 0e80ce9c39
Author: holger krekel <holger@merlinux.eu >
Date: Tue Jul 16 12:57:19 2019 +0200
more aggressively skip perform API when threads are closing
commit c652bae68a
Author: holger krekel <holger@merlinux.eu >
Date: Tue Jul 16 12:06:05 2019 +0200
intermediate wip commit
commit bc904a495d
Author: holger krekel <holger@merlinux.eu >
Date: Tue Jul 16 11:18:56 2019 +0200
add some logging, and a more precise teardown for online python tests
commit 8d99444c6a
Author: holger krekel <holger@merlinux.eu >
Date: Tue Jul 16 00:22:12 2019 +0200
fix std
commit 9dab53e0af
Author: holger krekel <holger@merlinux.eu >
Date: Tue Jul 16 00:20:54 2019 +0200
rustfmt
commit 360089ac74
Author: holger krekel <holger@merlinux.eu >
Date: Tue Jul 16 00:03:49 2019 +0200
remove some debugging
commit e892c5cf4d
Author: holger krekel <holger@merlinux.eu >
Date: Mon Jul 15 23:31:30 2019 +0200
fix test for events
commit 9ad4c9a6fe
Author: holger krekel <holger@merlinux.eu >
Date: Mon Jul 15 22:51:57 2019 +0200
wip try test that we see INFO events from the core
2019-07-21 23:31:14 +02:00
holger krekel
f58b1d66c2
add a little script to compute rust-evilness
2019-07-19 10:15:04 +02:00
holger krekel
3e3403d3d7
try using setuptools_scm for automatic versioning based on py-* tags ( #187 )
...
* try using setuptools_scm for automatic versioning based on py-* tags
* circument problem with pip-wheel isolation and setuptoosl_scm
* always provide version, address @flub comment
2019-07-14 09:58:51 +02:00
holger krekel
46c64b2511
Merge pull request #189 from deltachat/fixosx
...
try fix darwin
2019-07-14 09:57:52 +02:00
holger krekel
aa82644392
fix py27
2019-07-14 09:16:51 +02:00
holger krekel
04ee9dde2c
Merge pull request #181 from deltachat/improve_receive_imf1
...
improve dc_receive_imf and friends a little (part 1)
2019-07-10 19:54:22 +02:00
holger krekel
cae0d666bd
Merge pull request #184 from deltachat/fix_py
...
fix home page of bindings
2019-07-10 18:16:32 +02:00
holger krekel
2691028422
fix home page of bindings
2019-07-10 17:41:16 +02:00
holger krekel
3bca349194
prepare 0.600.0 release
2019-07-10 16:10:23 +02:00
holger krekel
669476afd3
fix comment
2019-07-10 12:06:59 +02:00
holger krekel
b810b5a8f8
other cast as per @dignifiedquire comment -- also convert some logging along the way
2019-07-10 11:54:29 +02:00
holger krekel
6d17de05b2
also convert lookup_field function to use a &str param isntead of char*
2019-07-10 11:43:16 +02:00
holger krekel
e3fb0a23c6
get rid of c version of dc_mimeparser_lookup_field completely
2019-07-10 11:32:50 +02:00
holger krekel
d67dd9cc33
convert another carray
2019-07-09 21:04:23 +02:00
holger krekel
b93f5aa0b6
minimize casting
2019-07-09 20:55:29 +02:00
holger krekel
6c4b9e79c7
convert created_db_entries into a Rust vector instead of using low-level carray
2019-07-09 19:31:51 +02:00
holger krekel
95437d726e
some streamlinings, after advise by @dignifedquire
2019-07-09 17:39:05 +02:00
holger krekel
c2ca30cc16
fix #176 by transforming unsafe dc_log_info calls -- i think the unsafe
...
referencing via &jobthread.name was the culprit but not sure ;)
2019-07-06 22:26:26 +02:00
holger krekel
692b779896
Merge pull request #173 from deltachat/actests
...
test and fix Autocrypt Setup Message flow
2019-07-06 12:32:56 +02:00
holger krekel
09a675a9cf
Merge pull request #175 from deltachat/fix-ringbuf
...
feat: add better feature configurations
2019-07-06 12:03:53 +02:00
holger krekel
2aa81a7a9a
speed up test teardown by now waiting for threads to finish ...
...
and remove a debug statement
2019-07-05 23:12:11 +02:00
holger krekel
3d7be47adf
fix rust format
2019-07-05 20:05:08 +02:00
holger krekel
27c8bb64c8
remove some debuging
2019-07-05 19:26:40 +02:00
holger krekel
f7d13fd12f
comment on when it passes
2019-07-05 16:32:26 +02:00
holger krekel
35248296af
some refinements, bump versions already
2019-07-05 16:23:33 +02:00
holger krekel
dfa2fcda73
use safe logging, and add some info on the processed key (this is WIP and needs to be removed)
2019-07-05 13:04:26 +02:00
holger krekel
699b2d48e6
add a failing test for Autocrypt Key Transfer failing to extract a private key from an incoming ASM message
2019-07-05 12:46:14 +02:00
holger krekel
12b2a706f0
address on flub comment, start on autocryt transfer test
2019-07-05 01:02:22 +02:00
holger krekel
c7c86f1b03
Merge pull request #169 from deltachat/imex_tests
...
Imex tests and fix for export-blobs
2019-07-04 15:50:24 +02:00
holger krekel
02872c143a
Merge pull request #167 from deltachat/Simon-Laux-patch-2
...
Update Cargo.toml - add path for simple example
2019-07-04 11:54:35 +02:00
holger krekel
1a0ebba024
fix create_chat_by_message to work according to docs
2019-07-04 11:40:31 +02:00
holger krekel
6e13e177f7
fixed logging, removed one more "old" style logging
2019-07-04 11:16:15 +02:00
holger krekel
a2eb215fdf
remove last sync method for context callback -- simplifying event handling
2019-07-03 23:43:14 +02:00
holger krekel
a2245bdf4e
remove unusued sync methods
2019-07-03 23:05:20 +02:00
holger krekel
abdb02c361
add a test for testing that export works when an account has active threads
2019-07-03 21:31:20 +02:00
holger krekel
92d39642e6
bump rust-version
2019-07-03 21:13:59 +02:00
holger krekel
799ba8a5db
fix rust-formatting
2019-07-03 20:38:17 +02:00
holger krekel
8367a03b22
fix some lint issues, and run it during circle-CI
2019-07-03 20:32:01 +02:00
holger krekel
4378608617
convert some log infos and guard bindings against some misuse
2019-07-03 20:17:35 +02:00