holger krekel
24d744b94c
try generating and uploading doxygen docs ( #697 )
2019-10-08 18:52:13 +02:00
holger krekel
ba5b3ad675
fix #690 by avoiding account.__del__ and registering/unregistering with atexit (a module that manages process/interpreter shutdown and calls into registered shutdown. Recommended way for user code still is to call account.shutdown() explcitely.
2019-10-07 12:24:50 +02:00
holger krekel
51534b2fae
move all alloc/free/stop/has/shall_stop*ongoing* methods to context
...
introduce stop_ongoing to bindings and test for cancelation of configure
2019-10-07 00:55:33 +02:00
holger krekel
dd03f6e8af
test and fix that a group with mixed-encryption members (with some we can encrypt, others not) does not break
2019-10-05 15:02:03 +02:00
holger krekel
603761e4b7
add DC_EVENT_DELETED_BLOB_FILE
2019-10-03 18:01:56 +02:00
holger krekel
467c09f491
introduce DC_EVENT_NEW_BLOB_FILE event and test for it
2019-10-03 18:01:56 +02:00
Alexander Krotov
59df97944f
Enable strict certificate checks for test online accounts
2019-10-03 01:26:07 +03:00
holger krekel
230c65594c
add test for markseen not sending out smtp on second call
2019-10-02 23:51:14 +02:00
holger krekel
509a21ff05
introduce DC_IMAP_MESSAGE_MOVED event and try harder to send out MDNs
2019-10-02 23:51:14 +02:00
holger krekel
96066712bd
add and test for DC_IMAP_MESSAGE_DELETED event
2019-10-02 23:51:14 +02:00
holger krekel
92438737c9
- introduce and test BccSelf config, to prevent bcc-self on outgoing mails
...
- introduce context.get_config_int() which respects default values
declared in config.rs (Config)
2019-10-02 22:51:09 +02:00
Alexander Krotov
f7ad93229d
test_account.py: fix a typo in test message
2019-10-02 13:10:16 +02:00
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
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
03661e2a71
python: Allow to configure debug logging via account
2019-09-26 19:20:56 +02:00
holger krekel
02b73207f9
fixup this PR with tests, and returning None from get_filemime
2019-09-26 17:12:06 +02:00
Floris Bruynooghe
69f1497986
Make dc_get_info() work on a closed context
...
There is very little API guarantees about this, but clients seem to
expect *something* to work on a closed context. So split this up into
static info an more dynamic context-related info, but let's not
provide any guarantees about what keys are available when.
Fixes #599
2019-09-26 14:22:03 +02:00
Florian Bruhin
2b46f01fe3
Use sys.executable in install_python_bindings.py
...
When calling pip this way, the virtualenv is used even if not activated.
2019-09-26 13:09:08 +02:00
holger krekel
6cd3580263
rustifying dc_continue_key_transfer and fix master-conflict
2019-09-25 23:46:44 +02:00
holger krekel
d5383aecc9
finish dc_imex refactoring, fix linting, rustify some things
2019-09-25 23:46:44 +02:00
holger krekel
8518d8f456
rustify imex and friends
2019-09-25 23:46:44 +02:00
holger krekel
adc0db04bc
failing test
2019-09-25 23:46:44 +02:00
B. Petersen
40f9072250
add get_setupcodebegin to python bindings, test the function
2019-09-25 21:13:05 +02:00
holger krekel
5cbcb76039
introduce safety and a particular EncryptHelper
2019-09-23 17:10:21 +02:00
holger krekel
91b98e8c6d
as discussed during camp and otherwise ... add dc_perform_{mvbox,sentbox}_jobs hooks which, however, for now have an empty implementation. They can already be called from UIs, though. Next step is refactoring imap-job handling to only execute jobs belonging to the respective imap folder.
2019-09-20 01:03:25 +02:00
Floris Bruynooghe
70234e5b19
Add a test for fix in #541
...
A fixed bug should have a test. This is an easy test to write.
2019-09-20 00:46:54 +02:00
holger krekel
ceff85d892
add test and python API for verified group handling/chatting
...
add msg.is_encrypted() API and check for it from some tests
2019-09-20 00:33:33 +02:00
holger krekel
9f914dd42e
fix test-state modification bug (online tests running after OnlineConfigureFails tests would break)
2019-09-19 23:01:51 +02:00
holger krekel
24f5d68fef
add configure-failure tests
2019-09-19 23:01:51 +02:00
Friedel Ziegelmayer
83f3e23297
improve python caching ( #468 )
...
(@dignifiedquire and @hpk42)
- introduce rust-caching to python test runs
- skip release and ffi runs, they are check using python bindings
- shuffle files such that ci_scripts/ contains all the ci scripts
- partly parallelize python tox runs
2019-09-19 13:10:19 +02:00
Simon Laux
37f854be3e
Add provider info functions to the FFI API
...
A lot of work from @Hocuri and @Simon-Laux mostly.
This exposes the API of the deltachat-provider-overview crate on the
deltachat FFI API, allowing clients to use it to help users set up
their accounts.
2019-09-19 07:17:44 +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
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
Floris Bruynooghe
a3f64d4e95
Handle new Context creation API on the FFI
...
This adopts the FFI API to use the new Context::new() and
Contest::drop() Rust-style APIs while preserving the semantics of the
existing FFI API. It introduces a wrapper around the context which
keeps an optional reference to the actual context, changing dc_open()
and dc_close() to create/destroy the actual reference.
This changes the events emitted on closing slightly: they only get
emitted when dc_close() was called while the context was open. While
dc_close() remains idempotent in that it can still be called safely
multiple times, the close events will only occur if the context is
actually closed.
2019-09-15 02:37:13 +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
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
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
Alexander Krotov
65adff4bdd
Merge pull request #437 from KAction/spelling
...
Fix minor spelling errors in python/README.rst
2019-09-04 10:55:58 +00:00
Dmitry Bogatov
e60fc0dc30
Fix minor spelling errors in python/README.rst
2019-09-04 06:19:21 +00:00
holger krekel
a5f862a564
remove python2 testing
2019-09-03 19:04:09 +02:00
Asiel Díaz Benítez
118599b4cc
Update account.py
...
fix doc string
2019-08-20 17:10:39 +02:00
Friedel Ziegelmayer
8c10aa287c
fix(python): free allocated string pointers ( #393 )
...
* fix(python): free allocated string pointers
* Update python/src/deltachat/cutil.py
Co-Authored-By: holger krekel <holger@merlinux.eu >
* Update cutil.py
* probably the proper way to handle ffi.strings
2019-08-18 12:45:38 +02:00
Asiel Díaz Benítez
8077fdeddb
Update examples.rst
...
just replaced `send_text_message` with `send_text`
2019-08-15 01:47:03 +02:00
holger krekel
7d51c6e4f4
fix documentation
2019-08-14 10:18:06 +02:00