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
959ac73122
some further improvements -- and making all captions lower-case for the fun of it :)
2018-09-14 18:31:22 +02:00
holger krekel
8683de19e3
improve docs and structure
...
see online snapshot: https://m.devpi.net/hpk/dev/deltachat/0.5.dev0/+doc/index.html
2018-09-14 18:10:01 +02:00
holger krekel
099306408e
Merge pull request #281 from deltachat/pytest3
...
next round of python bindings update
2018-09-14 12:56:38 +02:00
holger krekel
4e00d5a7af
fixup some doc pages, and canonically handle another __del__ function
...
add the missing makefile
2018-09-14 12:40:26 +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
66d6621f93
initial sphinx docs and many docstrings.
2018-09-14 11:36:07 +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
B. Petersen
a65abba4f0
move snippets to playground
2018-09-14 00:27:15 +02:00
holger krekel
3bf72b527e
Merge pull request #279 from deltachat/attr
...
introduce attr / refine GC handling
2018-09-13 14:51:31 +02:00
björn petersen
82375fb198
Merge pull request #280 from deltachat/mark-noticed-on-archive
...
mark messages of chats being archived as noticed
2018-09-13 14:42:35 +02:00
holger krekel
4a377bff6a
address @flub's remarks -- strike myattr and use imported attr directly
2018-09-13 14:20:51 +02:00
B. Petersen
eaf59279e3
mark messages or chats being archived as noticed so that they do not pop up as being fresh in notifications
2018-09-13 13:48:19 +02:00
holger krekel
a21dc8ab31
consistently don't use globals in __del__
2018-09-13 13:16:57 +02:00
holger krekel
fef5537aa8
if our global callback does not have access to globals anymore, just return 0 gracefully
2018-09-13 13:09:42 +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
B. Petersen
64a8d85be5
send event when marking chats/contacts as being noticed; add a function to mark all chats as being noticed
2018-09-13 02:07:29 +02:00
holger krekel
09df07337d
Merge pull request #278 from deltachat/add-alldone-item
...
Add option to add a special marker for "All done" to the chatlist
2018-09-12 18:28:06 +02:00
B. Petersen
2b455a9eab
add optional 'alldone' hint to chatlist that appears when there are no unarchived chat (aka zero inbox)
2018-09-12 18:12:50 +02:00
B. Petersen
8eca5e01c4
style
2018-09-12 14:10:26 +02:00
B. Petersen
9fe5845e1e
Merge branch 'master' of https://github.com/deltachat/deltachat-core
2018-09-11 22:00:53 +02:00
B. Petersen
0f8cfacca3
update comment; COPY/DELETE fallback now exist if MOVE fails
2018-09-11 22:00:42 +02:00
Floris Bruynooghe
24a8b59156
Merge pull request #275 from deltachat/pyreadme
...
add and check a simple readme, remove minversion, add some python/vim…
2018-09-11 19:30:56 +02:00
Lars-Magnus Skog
c28edfbda5
Merge pull request #277 from flub/headers
...
Do not install internal header files
2018-09-11 15:26:52 +02:00
Floris Bruynooghe
74f7e584d3
Do not install internal header files
...
Fixes issue #276
2018-09-10 22:09:53 +02:00
holger krekel
d2e437a550
add and check a simple readme, remove minversion, add some python/vim patterns to .gitignore
2018-09-09 17:42:59 +02:00
Floris Bruynooghe
f09fa60a67
Merge pull request #272 from deltachat/pytest2
...
make send/receive message test work with python
2018-09-09 14:12:43 +02:00
holger krekel
b51006118f
slightly improve method name
2018-09-09 13:54:31 +02:00
holger krekel
25a2cdb301
make _logid a public argument, critique from @flub accepted
2018-09-09 13:51:54 +02:00
holger krekel
49040f4e92
address the remaining comments
2018-09-09 13:40:57 +02:00
holger krekel
75153289ef
add DC_EVENT_SMTP_CONNECTED to macro
2018-09-09 13:14:29 +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
b54f2b19cc
fix segfault-level problem wrt varargs (thanks @the-compiler for finding)
2018-09-08 17:30:32 +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
13d23be7da
try travis
2018-09-08 16:56:25 +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
holger krekel
940f665b54
tox.ini and py35 support, fix linting errors
2018-09-07 18:34:15 +02:00
holger krekel
c24c21f890
shift so the Account API becomes cleaner
2018-09-07 18:16:05 +02:00