Commit Graph
100 Commits
Author SHA1 Message Date
holger krekel 1cfeb730c3 try to fix some smtp todos and do better error logging 2019-11-03 21:36:01 +01:00
holger krekel 31571be71e add account.get_chat_by_id API 2019-11-03 20:14:57 +01:00
holger krekel 661fc45106 split "chatting.py" into "contact.py" and "chat.py" to be more reminiscent of the core-rust structure 2019-11-03 20:14:57 +01:00
holger krekel da64dee3e0 start a changelog for the yet untagged beta.7 2019-11-03 01:32:49 +01:00
holger krekel cb00f5da79 fix #786 by always succeeding to create a canonical deterministic message-id -- thanks @csb0730 for the analysis of the issue 2019-11-03 01:28:45 +01:00
holger krekel c5f64d2988 address @link2xt comments 2019-11-03 00:21:27 +01:00
holger krekel 4eb068613d extend and fix python/test side of location streaming 2019-11-03 00:21:27 +01:00
holger krekel d774430ec2 simplify location parsing 2019-11-03 00:21:27 +01:00
holger krekel d24a982757 fix various location-streaming issue, test passes now 2019-11-03 00:21:27 +01:00
holger krekel d74c70a57c fix and streamline location-outgoing pipeline 2019-11-03 00:21:27 +01:00
holger krekel a6f0f78588 addresses #757 test and add location streaming python api 2019-11-03 00:21:27 +01:00
holger krekel 8ce05796da ensure that especially qr tests are rerun 2019-10-31 23:31:09 +01:00
holger krekel 7f8c6d8cca some more display refinements 2019-10-31 23:31:09 +01:00
holger krekel 75ba040531 more error logging with file operations in general 2019-10-31 23:31:09 +01:00
holger krekel 80d7e84e5d prepare 1.0.0-beta.6 2019-10-31 12:34:03 +01:00
holger krekel b01c842d7c bump version in toml's and changelog, and trigger deltachat-specific "cargo update". example: python set_core_version.py 1.0.0-beta.6 automates bumping the version and performs some quick sanity checks 2019-10-30 20:05:01 +01:00
holger krekel c56c10bced remove unneccessary check of is_special() + cleanups 2019-10-30 19:29:13 +01:00
holger krekel b0ccbc36d9 fix FFI-behaviour: return default empty messages when asked for special ones 2019-10-30 19:29:13 +01:00
holger krekel 9cdfc3409d systematically ignore invalid message ids when passed in through CFFI 2019-10-30 19:29:13 +01:00
holger krekel a6594a9ae3 add changelog and bump to beta.4 2019-10-30 16:13:34 +01:00
holger krekel 41443bb7f9 fix sending of autocrypt setup message 2019-10-30 15:48:06 +01:00
holger krekel ad42a39a43 amend changelog 2019-10-30 13:12:00 +01:00
holger krekel 36510d8451 update links / use deltachat/rust-imap master branch 2019-10-30 13:07:44 +01:00
holger krekel d3c0d2ebb1 bump version 2019-10-29 22:38:25 +01:00
holger krekel 911c0e45dc expose empty server functionality and test it (also introducing a new DC_EVENT_IMAP_FOLDER_EMPTIED event) 2019-10-29 22:19:13 +01:00
holger krekel 7628ee1e05 rust-part of empty_server 2019-10-29 22:19:13 +01:00
holger krekel de3e5e1c39 fix deadlock issue with config access 2019-10-29 16:08:24 +01:00
holger krekel c6adbe939d use latest rust-imap fork commits from @dignifiedquire 2019-10-28 20:51:17 +01:00
holger krekel b4464ab0a3 address @dignifiedquire comments 2019-10-28 20:51:17 +01:00
holger krekel bf7d57c560 update rust-imap 2019-10-28 20:51:17 +01:00
holger krekel 0e59819af4 use latest rust-imap fork 2019-10-28 20:51:17 +01:00
holger krekel 1cc4f56025 make imap-idle survive disconnects (during and at the beginning of an app) 2019-10-28 20:51:17 +01:00
holger krekel 1d03e0822e seems to work 2019-10-28 20:51:17 +01:00
holger krekel 131889cdfb add beta2 changelog, bump version to 1.0.0-beta.2 2019-10-22 17:50:23 +02:00
holger krekel e17c69f89c actually try connecting, instead of just preparing the connect 2019-10-21 23:17:18 +02:00
holger krekel 4b24f32d6c add tests and API for is_forwarded 2019-10-21 23:00:42 +02:00
holger krekel ee3259a74d fix rust-imap dep and remove Xargo.lock -- or is the latter used for anything? 2019-10-21 11:14:38 +02:00
holger krekel 7bb73f45a5 add LP smtp/imap connection flags to const 2019-10-15 13:46:39 +02:00
holger krekel 088490721d bump to 1.0.0-beta.1, add initial Changelog 2019-10-10 19:08:47 +02:00
holger krekel 4e36b35039 cargo-fmt only 2019-10-10 12:01:01 +02:00
holger krekel d412ee6042 make dc_str_from_clist safe and return a string instead of c-string -- this allows to remove some unsafe and now unneccessary cleanup code 2019-10-10 12:01:01 +02:00
holger krekel 98180c175d make sure c-doc upload dirs exist even if branch name has / in it 2019-10-10 00:23:36 +02:00
holger krekel 77a7efc920 fix #694 by forking lettre and avoiding extra NOOP Smtp commands for connection checking.
If this works out and fixes our problem, we can submit upstream.
2019-10-09 18:25:41 +02:00
holger krekel 24c0a833bd address @flub comments 2019-10-09 15:59:31 +02:00
holger krekel 45f011c63c expose and test set_stock_translation to Python 2019-10-09 15:59:31 +02:00
holger krekel bc86201b44 error out if %1 %2 replacements are not contained in default english version 2019-10-09 15:59:31 +02:00
holger krekel b82af9fff3 introduce set_stock_translation and remove call to DC_EVENT_GET_STRING 2019-10-09 15:59:31 +02:00
holger krekel 102220834c address https://github.com/deltachat/deltachat-ios/issues/328 and don't escalate xml-parsing errors to users through error! 2019-10-08 23:09:03 +02:00
holger krekel 24d744b94c try generating and uploading doxygen docs (#697) 2019-10-08 18:52:13 +02:00
holger krekel 1df6229e99 remove/push down some unsafe-fn 2019-10-08 17:37:37 +02:00
holger krekel b7c81f37c0 ok_to_continue is 0, now start counting "unsafe fn" ... 2019-10-07 23:58:32 +02:00
holger krekel a94acef49b cargo fmt 2019-10-07 13:39:01 +02:00
holger krekel 7f5b362eda remove ok_to_continue and simplify/refactor imap and smtp connection trying
address @r10s review comments and also remove unneccessary "unsafe fn"
2019-10-07 13:39:01 +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 b775ecca08 fix tests 2019-10-07 00:55:33 +02:00
holger krekel b8f211a013 cargo fmt 2019-10-07 00:55:33 +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 32ef0d4dc3 cargo fmt 2019-10-07 00:22:19 +02:00
holger krekel b3cd80ba6d remove ok_to_continue, shift code to a result-returning add_export_files to avoid if-branches, cleanup and simplify some logging 2019-10-07 00:22:19 +02:00
holger krekel 3f053f899e cargo fmt 2019-10-07 00:15:39 +02:00
holger krekel 22b4d1734c remove last ok_to_continue in mimeparser 2019-10-07 00:15:39 +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 07b32241bd try fix #677 (this fixes only a test) -- seems like we passed pointers into Rust strings to code that was expecting null-terminated strings. Now do proper "strdup()" and free. The real proper fix is to make dc_split_armored_string into a rust-string function and do away with all c-pointers. 2019-10-05 15:01:28 +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
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 d83aa1e898 perform heuristic moves only if a job is not delete 2019-10-02 23:51:14 +02:00
holger krekel f0a7bdb6d6 properly parse message ids in imap prefetch 2019-10-02 23:51:14 +02:00
holger krekel 9c077c98cd remove MdnSent logic 2019-10-02 23:51:14 +02:00
holger krekel 6dc45642b7 rework API 2019-10-02 23:51:14 +02:00
holger krekel 5c1b9c83f7 fixes #661 and also contains a cleanup of config access (only for e2ee and mdns) 2019-10-02 22:51:09 +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
holger krekel 489cdd1b24 - resultify send-out pipeline for better error reporting
- early ignore sending out smtp messages with no recipients
2019-10-02 22:51:09 +02:00
holger krekel 3f7995a7ea start with some refactoring of the outgoing pipeline 2019-10-02 22:51:09 +02:00
holger krekel ee6d16f1b1 on some call sites: peerstate.save_to_db() should bubble up errors instead of crashing.
also write a test that double-creation of an addr-row is fine.
2019-10-01 10:34:36 +02:00
holger krekel ab2ef1e1e4 shift most mmime functions to wrapmime 2019-09-30 00:52:14 +02:00
holger krekel 18030fa61e remove duplicate code and possibly a leak 2019-09-30 00:52:14 +02:00
holger krekel 064337b5d3 refactor one occassion of determinig transfer encoding 2019-09-30 00:52:14 +02:00
holger krekel d72e9bb05b remove dc_get_fine_* method and validate_filename 2019-09-29 22:49:01 +02:00
holger krekel 7a9fdb4acd add a new tested context.new_blob_dir method to simplify writing out blob files 2019-09-29 22:49:01 +02:00
holger krekel ca76cac314 address @flub's review comment from https://github.com/deltachat/deltachat-core-rust/pull/622 2019-09-28 03:01:52 +02:00
holger krekel f28a971b96 several fixes and streamlinings, probably verified-group encryption is fixed, or at least we should see better errors 2019-09-27 23:24:57 +02:00
holger krekel 18808d0a61 majorly rustify and simplify the incoming decryption pipeline 2019-09-27 23:24:57 +02:00
holger krekel 86369148ee fix #616 -- allow invalid certs for smtp and imap connections -- this is the behaviour of C-core. 2019-09-27 21:44:21 +02:00
holger krekel f45ee2ab4d fix #615 -- like with c-core Chat-Version is left in unprotected headers because
it's eg used in server-filters for detecting DC messages
2019-09-27 18:28:47 +02:00
holger krekel 2b73fab913 cargo fmt 2019-09-27 18:28:29 +02:00
holger krekel e0d750ac64 little cleanup dc_imex 2019-09-27 18:28:29 +02:00
holger krekel 31f5fffc45 cargo fmt 2019-09-26 20:45:03 +02:00
holger krekel 64c518c2f2 remove ok_to_continue 2019-09-26 20:45:03 +02:00
holger krekel 02b73207f9 fixup this PR with tests, and returning None from get_filemime 2019-09-26 17:12:06 +02:00
holger krekel e1dc4b69f5 address all @dignifiedquire review comments 2019-09-25 23:46:44 +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 71cbbab2c9 fix #596 and some cleanups 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
holger krekel 646833d3ec remove phf crate macro usage: it introduced 7 deps and is really an optimization if you very large (100K+) tables -- we have 10 entries or so and it's called once per message. Let's not introduce crates just because we can -- it increases compile time and in the phf case also introduced a github dependency (for whatever reason -- don't want to know ;) 2019-09-25 00:19:47 +02:00
holger krekel 21c9ff6c85 cargo fmt 2019-09-23 23:13:41 +02:00