1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 10:39:27 +02:00
Commit graph

66 commits

Author SHA1 Message Date
holger krekel
711ab664b4
add account.get_info() 2019-03-21 12:22:19 +01:00
VP-
38fff9c23f Emit DC_EVENT_MSGS_CHANGED from dc_prepare_msg() 2019-03-19 12:34:14 +01:00
VP-
22ebb26843 Issue #427: avoid late generation of mime-structure
MIME mails for both messages and MDNs are stored in the blobdir.
There are still two job types due to their different priorities, but
they are processed by the same function now (dc_job_do_DC_JOB_SEND).
2019-03-18 10:41:04 +01:00
VP-
a10ba8c41b Appeased the Python linter 2019-03-18 10:41:04 +01:00
VP-
ef179c4022 Finished the removal of .increation files 2019-03-18 10:41:04 +01:00
Floris Bruynooghe
0fd55137f6 Improve building of extension a little
- This renames deltachat.types to deltachat.props.  Not re-using a
  stdlib name is somewhat nice and solves a weird edge-case for me where
  the deltachat.types module can be hiding stdlib types by the deltachat
  directory appearing before the stlib on sys.path.

- When manually invoking the build script (rather then via
  pip/setup.py) it figures out where the package actually lives and
  makes sure the .so file ends up in that directory.  This is better
  than the current version which depends on the current directory and
  thus sometimes creates an alternate deltachat/ directory tree.

- Add some common python artefact files to gitignore.
2018-11-01 18:12:06 +02:00
holger krekel
5ad5baa6ab move get_mime_headers() function to Message object where it belongs.
also simplify creating a mime object from the headers ...
2018-10-17 12:25:50 +02:00
holger krekel
ad84e4578b add msg.time_received and a test 2018-10-16 23:49:03 +02:00
holger krekel
21f3a6b006 - refine msg.time_sent to return a correct utc-based "naive" datetime object
- accept message objects instead of just ints for get_mime_headers(msg)
2018-10-16 23:25:53 +02:00
holger krekel
50a9afa7ea add python tests for new save_mime_headers config and get_mime_headers function 2018-10-16 00:15:54 +02:00
holger krekel
0bbeb65d94 make set_config|get_config throw an informative error if you try to get/set non-existing config keys 2018-10-09 15:04:25 +02:00
holger krekel
ddc7ef7703 add Account.get_infostring() to show low-level core info 2018-10-08 16:47:14 +02:00
holger krekel
30425f17bd refined logging 2018-10-08 14:55:50 +02:00
holger krekel
aed15387b6 rename Message.type into Message.view_type, should be the last commit before tagging and relasing py0.7.0 2018-10-08 13:24:52 +02:00
holger krekel
b709adddcf finalize new internal Messaging API, now not using wrappers anymore 2018-10-07 15:30:42 +02:00
holger krekel
aaf37821c4 move towards message creation API, refactor constructors for messages 2018-10-07 15:07:14 +02:00
holger krekel
d18fc8ebf9 add msg.basename and a few assertions 2018-10-07 08:23:26 +02:00
holger krekel
5c3e41fcb5 - bump version
- add forgotten data file
- rename Chat.send_text_message to Chat.send_text
- add optional mime-type param to Chat.send_file
- properly install the package instead of "usedevelop" mode
2018-10-06 21:37:05 +02:00
holger krekel
b6355176de add chat.delete(), chat.send_image, msg.filename, msg.filemime and msg.type.is_* 2018-10-06 19:11:48 +02:00
holger krekel
20f0c93ba6 don't use removed set_config_int from python bindings 2018-10-04 21:11:37 +02:00
holger krekel
031058ebd2 major rehault of docs at root and python level,
preparing a deltachat-0.6 release
2018-09-27 16:10:33 +02:00
holger krekel
c4418a0e14 generate DC_* constants in new deltachat.const module which are living as #define macros in deltachat.h. You can re-generate with "python src/deltachat/const.py". 2018-09-26 11:21:13 +02:00
holger krekel
68900edfbc add sending timestamp 2018-09-25 12:54:27 +02:00
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
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
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