Commit Graph

  • 87c8c5a363 fix-try 1 holger krekel 2019-09-08 18:40:58 +02:00
  • 8eee449305 refactor(token): rustify dignifiedquire 2019-09-08 13:16:32 +02:00
  • 96e02af0da refactor: rename dc_token to token dignifiedquire 2019-09-08 13:07:29 +02:00
  • 3f731b0f98 remove macro fix_remove_chat_profile_img Simon Laux 2019-09-08 16:57:56 +02:00
  • 60fb1478c3 refactor(strencode): rustify some strencode methods dignifiedquire 2019-09-08 15:50:28 +02:00
  • aa7d0679df fix(tools): make sure dc_truncate can handle arbitrary utf8 valu… (#460) Friedel Ziegelmayer 2019-09-08 15:23:46 +02:00
  • 8e3cc192a5 fix(tools): make sure dc_truncate can handle arbitrary utf8 values dignifiedquire 2019-09-08 13:02:47 +02:00
  • 0f939995d1 fix(job): "invalid job action" check Simon Laux 2019-09-08 13:39:59 +02:00
  • 2e1bc9b14e Merge pull request #458 from deltachat/fix-unknown björn petersen 2019-09-08 12:24:51 +02:00
  • fd1ac6ab2d Remove some free() from Mozilla autoconfig (#457) Friedel Ziegelmayer 2019-09-08 11:53:41 +02:00
  • d224924dc8 Change type of function from `const char *' to &str (#451) Friedel Ziegelmayer 2019-09-08 11:51:16 +02:00
  • 00e5ddd6f0 make enum reading from the db more robust dignifiedquire 2019-09-08 11:29:40 +02:00
  • c603ca0e7a remove dead code B. Petersen 2019-09-08 00:47:15 +02:00
  • d07ef01204 cargo fmt B. Petersen 2019-09-07 23:25:19 +02:00
  • d8630b5029 fix reading of unknown/outdated origin B. Petersen 2019-09-07 22:21:38 +02:00
  • 3b397326f8 Store email parts as Rust str's Alexander Krotov 2019-09-07 20:10:31 +03:00
  • 81cabd08a9 Accept str instead of char* in read_autoconf_file Alexander Krotov 2019-09-07 19:52:12 +03:00
  • 5663c7dec3 Merge pull request #453 from deltachat/fix-backup björn petersen 2019-09-07 15:38:01 +02:00
  • 06673b2108 Merge pull request #455 from deltachat/fix-msg-loading björn petersen 2019-09-07 15:37:38 +02:00
  • 6b7498a4b1 fix(contact): fix logic for create or add contact dignifiedquire 2019-09-07 14:07:56 +02:00
  • 7f4ef493b9 be tolerant when reading unexpected NULL from the database and treat this as an empty string, compatible to core-c B. Petersen 2019-09-07 13:54:43 +02:00
  • d9d0dee0d5 fix: use empty string for messages without text everywhere B. Petersen 2019-09-07 13:40:50 +02:00
  • 99c5674a10 cargo fmt Simon Laux 2019-09-07 13:26:06 +02:00
  • c4fe0316d4 remove closure Co-authored-by: @Jikstra Simon Laux 2019-09-07 13:23:54 +02:00
  • 176417dc99 fix remove chat profile img Simon Laux 2019-09-07 12:34:56 +02:00
  • 9605370f0b fix cmdline: sendimage and sendfile really accept only a file B. Petersen 2019-09-07 12:34:31 +02:00
  • 7d9fc682a0 cargo-fmt Dmitry Bogatov 2019-09-07 03:09:01 +00:00
  • c4c08f2552 Remove ok_to_continue pattern from msg_prepare_raw() Dmitry Bogatov 2019-09-07 03:06:13 +00:00
  • 400740fdba Simplify prepare_msg_raw() using early return Dmitry Bogatov 2019-09-07 03:03:35 +00:00
  • 42bce7c0bf Remove last C string from prepare_msg_raw() Dmitry Bogatov 2019-09-07 02:54:28 +00:00
  • a2281489a6 Create safe version of msgid-generating function Dmitry Bogatov 2019-09-07 02:35:13 +00:00
  • 9bf7b0bf96 Use more of Rust, less of C strings in prepare_msg_raw() Dmitry Bogatov 2019-09-07 01:25:29 +00:00
  • 1f82ba74aa Remove redundant checks in prepare_msg_raw() Dmitry Bogatov 2019-09-06 23:24:39 +00:00
  • 1062ac6ade Drop unsafe version of get_parent_mime_headers function Dmitry Bogatov 2019-09-06 23:14:14 +00:00
  • aa5304a4f3 Use safe version of `get_parent_mime_headers()' function Dmitry Bogatov 2019-09-06 23:09:52 +00:00
  • 3a57ba1142 Implement safe version of `get_parent_mime_headers' function Dmitry Bogatov 2019-09-06 22:36:34 +00:00
  • c0e7293360 Change return type of clist_search_string_nocase to `bool' Dmitry Bogatov 2019-09-06 13:08:52 +00:00
  • dc1839760c Simplify clist_search_string_nocase using Iterator interface Dmitry Bogatov 2019-09-06 13:02:28 +00:00
  • a4e4b0fc17 Rustify type of dc_mimeparser_t.subject Dmitry Bogatov 2019-09-06 06:14:27 +00:00
  • 743e4deb36 Remove dc_mimepart_unref function Dmitry Bogatov 2019-09-06 05:18:46 +00:00
  • 1d75f8478c Rustify type of dc_mimepart_t.msg_raw Dmitry Bogatov 2019-09-06 04:06:40 +00:00
  • cc0428aa50 really check all rows when searching for referenced files B. Petersen 2019-09-06 15:15:06 +02:00
  • 4be481275f clearer naming B. Petersen 2019-09-06 14:32:17 +02:00
  • 28cfe36f43 Change type of dc_mimeparser_t.decryption_failed to bool Dmitry Bogatov 2019-09-06 03:48:41 +00:00
  • e0df78c5f7 Change type of dc_mimepart_t.is_meta to bool Dmitry Bogatov 2019-09-06 03:39:44 +00:00
  • 4d8b058b65 Change type of dc_mimeparser_t.is_forwarded to bool Dmitry Bogatov 2019-09-06 03:36:54 +00:00
  • da25611758 Change type of function from `const char *' to &str Dmitry Bogatov 2019-09-06 03:05:12 +00:00
  • b32f3f71ad cleanup search_chat_ids_by_contact_ids holger krekel 2019-09-06 01:29:24 +02:00
  • 27732c85af mark actually safe function as such B. Petersen 2019-09-05 23:20:08 +02:00
  • 5ffc84eb59 remove unused functions B. Petersen 2019-09-05 23:19:36 +02:00
  • 0a6e540394 rename dc_securejoin to securejoin.rs holger krekel 2019-09-05 13:53:13 +02:00
  • 9f09c73ec1 make secure_join flow more readable by using and adding a few macros, tiny api changes holger krekel 2019-09-05 03:27:55 +02:00
  • 4bbab876ae majorly de-indent code structure in secure_join by introducing cleanup function, also majorly reducing unsafety in several places holger krekel 2019-09-05 01:26:45 +02:00
  • b2fafeff19 use some BOB and VC constants instead of raw numbers holger krekel 2019-09-05 01:03:48 +02:00
  • 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) holger krekel 2019-09-04 22:52:05 +02:00
  • dd0afdfeb0 add QR based join-group API, with test and SEGFAULT fix to rust holger krekel 2019-09-04 21:17:27 +02:00
  • b6997c4455 regen constants and improve high level API for QR setup contact holger krekel 2019-09-04 20:21:46 +02:00
  • 2920732435 (dignifiedquire, hpk, jikstra) - fix and test peerstate::from_fingerprint - add and test python API for secure-join QR + setup-contact holger krekel 2019-09-04 19:12:50 +02:00
  • b9cfcce284 fix ffi jikstra 2019-09-04 16:53:28 +02:00
  • 70d997964b cargo fmt jikstra 2019-09-04 16:42:55 +02:00
  • 4ffe71e1df Fix encoding for email & name, fix qrencode command in repl jikstra 2019-09-04 16:37:45 +02:00
  • cc2339fbe2 Fix closure in dc_securejoin, make sure we return an empty string and never null, make dc_get_securejoin_qr return an Option<String> and move the logic to cast it to c_str into the ffi jikstra 2019-09-04 16:20:24 +02:00
  • 8fb859c0c4 Merge pull request #445 from deltachat/smtp_error Alexander Krotov 2019-09-05 20:22:24 +00:00
  • 5ff472dae0 Implement helper method to easily check if a bit flag is inside listflags. Make Contact::get_all use it jikstra 2019-09-05 01:27:23 +02:00
  • 6be4a6ed00 switch to counting ok_to_continue instead of current_blocks -- this still reflects structural problems or missing-rustification problems holger krekel 2019-09-05 14:26:08 +02:00
  • 00bb1b25a3 rename dc_securejoin to securejoin.rs config_ungoto2 holger krekel 2019-09-05 13:53:13 +02:00
  • 35fa0a7271 make secure_join flow more readable by using and adding a few macros, tiny api changes holger krekel 2019-09-05 03:27:55 +02:00
  • 1fae0bddc7 majorly de-indent code structure in secure_join by introducing cleanup function, also majorly reducing unsafety in several places holger krekel 2019-09-05 01:26:45 +02:00
  • 236ecd6d67 use some BOB and VC constants instead of raw numbers holger krekel 2019-09-05 01:03:48 +02:00
  • 135048d63b - 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) holger krekel 2019-09-04 22:52:05 +02:00
  • d2cb1658e3 add QR based join-group API, with test and SEGFAULT fix to rust holger krekel 2019-09-04 21:17:27 +02:00
  • 2e3269dedf regen constants and improve high level API for QR setup contact holger krekel 2019-09-04 20:21:46 +02:00
  • bfc67c705a (dignifiedquire, hpk, jikstra) - fix and test peerstate::from_fingerprint - add and test python API for secure-join QR + setup-contact holger krekel 2019-09-04 19:12:50 +02:00
  • 8cd9a5dcb3 fix ffi jikstra 2019-09-04 16:53:28 +02:00
  • d0270108e8 cargo fmt jikstra 2019-09-04 16:42:55 +02:00
  • ae612e07dc Fix encoding for email & name, fix qrencode command in repl jikstra 2019-09-04 16:37:45 +02:00
  • ff6a4d18cf Fix closure in dc_securejoin, make sure we return an empty string and never null, make dc_get_securejoin_qr return an Option<String> and move the logic to cast it to c_str into the ffi jikstra 2019-09-04 16:20:24 +02:00
  • 094d46293e Set Smtp.error when SMTP fails to send message Alexander Krotov 2019-09-05 05:29:21 +03:00
  • c8d945db56 Store Smtp.error as Option<String> Alexander Krotov 2019-09-05 05:28:57 +03:00
  • f78f0079c1 Upgrade to the latest version of imap crate Alexander Krotov 2019-09-04 16:17:54 +03:00
  • ffa2d0f502 add provider info function provider-overview2 Simon Laux 2019-09-04 17:55:32 +02:00
  • c0c014d7e2 add provider info function provider-overview Simon Laux 2019-09-04 16:51:28 +02:00
  • 98d6bdb48a Simplify control flow in dc_DC_JOB_SEND function Dmitry Bogatov 2019-09-04 14:10:00 +00:00
  • 0391aebaeb Remove C pointer manipulation from do_DC_JOB_SEND() Dmitry Bogatov 2019-09-04 07:07:18 +00:00
  • 46520edd87 Print error if CAPABILITY command fails. Alexander Krotov 2019-09-04 01:27:23 +03:00
  • 14daa99802 remove ok_to_continue7 comment Simon Laux 2019-08-29 09:53:37 +02:00
  • 4f9f67a477 switch to while instead of loop Simon Laux 2019-08-29 09:50:23 +02:00
  • 85f182067c typo fixes in comments Simon Laux 2019-08-23 22:55:51 +02:00
  • 66ab6874f8 reorganize dc_job_do_DC_JOB_CONFIGURE_IMAP Simon Laux 2019-08-14 03:12:48 +02:00
  • 906b901e3d move function order / filestructure like in c core Simon Laux 2019-08-13 04:31:18 +02:00
  • e8158b5fbf fix the merge fix_securejoin_closure holger krekel 2019-09-04 14:52:06 +02:00
  • 65adff4bdd Merge pull request #437 from KAction/spelling Alexander Krotov 2019-09-04 10:55:58 +00:00
  • e60fc0dc30 Fix minor spelling errors in python/README.rst Dmitry Bogatov 2019-09-04 06:19:21 +00:00
  • ffd719962c Merge pull request #430 from deltachat/latest-imap Alexander Krotov 2019-09-03 17:12:12 +00:00
  • 580fda26b7 Merge branch 'master' into fix_securejoin_closure holger krekel 2019-09-03 19:06:40 +02:00
  • 1a1f0c0a7c refactor(e2ee): rename dc_e2ee -> e2ee dignifiedquire 2019-08-26 22:28:42 +02:00
  • 3944592c09 refactor(e2ee): restructure types a and method slightly dignifiedquire 2019-08-26 22:24:18 +02:00
  • a5f862a564 remove python2 testing holger krekel 2019-09-03 16:16:26 +02:00
  • 489f25940f Update to the latest rust-imap Alexander Krotov 2019-09-03 00:59:21 +03:00
  • 6288909481 Refactor is_known_rfc724_mid() to use Iterator interface Dmitry Bogatov 2019-08-28 01:33:58 +00:00