holger krekel
d392324ec6
refine test setup wrt to helper methods, also xfail a test on travis
2018-09-24 20:35:13 +02:00
holger krekel
366da3e9fa
use the technique @r10s described for getting an offline but configured account
...
this also resolves a number of XXX
2018-09-24 20:27:18 +02:00
holger krekel
da78552622
- make set_config() more like the c-version but make configure() accept **kwargs
...
- some safety checks: you can't modify addr after successful configure
2018-09-24 20:27:18 +02:00
holger krekel
0bfa955f9c
some better printing, fixing py35
2018-09-19 12:09:55 +02:00
holger krekel
5914af77c2
- add delete_messages() and chat.get/set_name()
...
- forget about caching dc_chat and dc_msg and dc_chat struct references for now
2018-09-19 10:41:01 +02:00
holger krekel
cfb05bdf82
add forward messages API
2018-09-18 20:18:18 +02:00
holger krekel
e777b576cb
add initial group management API and is_promoted()
2018-09-18 19:37:07 +02:00
holger krekel
3015c3c6d7
add account.get_chats() API
2018-09-18 19:04:31 +02:00
holger krekel
929d6da2ef
better names for the converseion to/from dc char pointers
2018-09-15 01:17:45 +02:00
holger krekel
8c1c65b631
move all unref'in to a specific shadow class that takes care of unref'ing.
...
bump version
2018-09-15 00:10:33 +02:00
holger krekel
da2bcd0c5a
introduce message.get_state() API which provides is_in_delivered()|is_out_delivered|... methods.
2018-09-14 21:46:14 +02:00
holger krekel
669de40f66
try fix travis and a spurious exception on __del__ time -- only do something if module globals are not None, some other fixups
2018-09-14 12:13:57 +02:00
holger krekel
dd060d7cf2
implement enough API to mark messages as noticed and seen, and check that MDNs arrives back
...
also fix up setup.py
2018-09-14 11:30:57 +02:00
holger krekel
9d22585cea
add contact handling and tests, complete get_contacts() API with flags,query
2018-09-14 11:30:57 +02:00
holger krekel
d24a1b5375
add some basic array handling and a get_chat_msgs()
2018-09-14 11:30:57 +02:00
holger krekel
41e3bb3aaa
add account.is_configured() method and assert helper
2018-09-14 11:30:57 +02:00
holger krekel
a124a6dd86
actually we can wait for threads to stop now, don't know why it didn't work before.
...
we can also attempt to free dc_context now.
2018-09-13 12:50:51 +02:00
holger krekel
75f8169072
address #273 -- introduce attr for contact/chat/message/EventHandler
...
also refine the GC-handling of contact and message pointers.
free-ing dc_context pointers currently does not work because
the threads are keeping a reference and not shutting down.
help on this shutdown issue from @r10s or @flub welcome.
I think fixing the context GC/shutdown issue should not hold
up merging this branch.
2018-09-13 12:17:31 +02:00
holger krekel
49040f4e92
address the remaining comments
2018-09-09 13:40:57 +02:00
holger krekel
0aed6355c3
make chats objects grow equality operators, probably we rather want to move to "attr" which handles all of this.
2018-09-09 12:57:04 +02:00
holger krekel
194bd82b8c
introduce message interface
2018-09-08 18:38:53 +02:00
holger krekel
1d11566ad4
wait for a better event than DC_EVENT_INFO
2018-09-08 17:39:19 +02:00
holger krekel
dead1d1a87
make some tests run also in offline mode and thus on travis
2018-09-08 17:11:56 +02:00
holger krekel
4f5ded880e
make send and receive message test work, add some events
2018-09-08 16:29:58 +02:00
holger krekel
3265178d31
emit and look for DC_EVENT_(SMTP|IMAP)_CONNECTED events which are INFO events so that we can also for other events convert the C-code easily (just use "dc_log_event" instead of "dc_log_info")
2018-09-08 14:06:16 +02:00
holger krekel
1c77187d5a
refactor event logging to happen inside the account
2018-09-08 12:34:41 +02:00
holger krekel
823d1283ac
a first multi-account test, no real checks yet
2018-09-08 11:24:09 +02:00
holger krekel
b153089d4c
add basic create contact API
2018-09-07 20:01:46 +02:00
holger krekel
a244393860
introduce get_config() helper
2018-09-07 19:19:31 +02:00
holger krekel
c02abb8a61
added a more general way to configure live test accounts for testing
2018-09-07 19:10:14 +02:00