Commit Graph

5496 Commits

Author SHA1 Message Date
dignifiedquire
b2c68c77f2 fixup rebase 2022-11-23 16:32:20 +01:00
dignifiedquire
c9cd4c9746 clippy fixes 2022-11-23 16:32:20 +01:00
dignifiedquire
1f4384b302 fixup 2022-11-23 16:32:20 +01:00
dignifiedquire
26719ee358 apply CR 2022-11-23 16:32:19 +01:00
dignifiedquire
09d5cbe564 update deps 2022-11-23 16:31:22 +01:00
Asmir Avdicevic
ba869a2e7f ci: protoc fix (#3566) 2022-11-23 16:30:50 +01:00
dignifiedquire
6c6499f2ff apply updates 2022-11-23 16:30:48 +01:00
dignifiedquire
f696f3e485 update iroh-share & cleanup api 2022-11-23 16:27:47 +01:00
B. Petersen
1633b2fd26 clear config cache before receiving a backup (with new config values) 2022-11-23 16:27:12 +01:00
B. Petersen
411d0a7cd4 dc_reveive_backup() ffi just takes the qr-code again instead of several parameters 2022-11-23 16:27:12 +01:00
bjoern
0ed3348bdf add dc_receive_backup ffi (#3504)
* add dc_receive_backup ffi

* fix compile issues

* make clippy happy

Co-authored-by: dignifiedquire <me@dignifiedquire.com>
2022-11-23 16:27:12 +01:00
B. Petersen
e61ee76e68 document ffi wrt sending and receiving backups 2022-11-23 16:27:12 +01:00
B. Petersen
17f01e5e71 fix: make passphrase work for repl's send-backup 2022-11-23 16:27:12 +01:00
B. Petersen
94c16ef176 repl: documentation and tab-completion for the new send-backup commands 2022-11-23 16:27:12 +01:00
B. Petersen
4ff746ef81 fix "the trait Add<&&str> is not implemented for std::string::String" 2022-11-23 16:27:12 +01:00
dignifiedquire
0aa4e21f7a proper shutdown and progress reports 2022-11-23 16:27:12 +01:00
dignifiedquire
995bf6fa9e update deltachat.h 2022-11-23 16:27:12 +01:00
dignifiedquire
63872fc271 generate qr codes 2022-11-23 16:27:11 +01:00
dignifiedquire
679242d5c4 remove unused event 2022-11-23 16:26:51 +01:00
dignifiedquire
364e06d8ae update deps 2022-11-23 16:26:49 +01:00
dignifiedquire
14fc7b7d10 implement receive-backup 2022-11-23 16:26:16 +01:00
dignifiedquire
9f7e962832 integrate backup sending via iroh into the repl 2022-11-23 16:26:14 +01:00
dignifiedquire
0e06bcb182 pull in iroh-share 2022-11-23 16:25:39 +01:00
Sebastian Klähn
2e7470115c Fix link in webxdc-dev-reference.md (#3770)
Update webxdc-dev-reference.md
2022-11-23 14:46:25 +01:00
Hocuri
06b376d242 Bugfix: Don't let malformed From: headers block the receiving pipeline (#3769)
That's a bug which @Simon-Laux and probably also @hpk42 had, where one malformed incoming (Spam-) mail blocked the receiving of all emails coming after it.

The problem was that from_field_to_contact_id() returned ContactId::UNDEFINED, and then lookup_by_contact() returned Err.
2022-11-22 21:10:26 +01:00
Hocuri
4b17813b9f Improve handling of multiple / no From addresses (#3667)
* Treat multiple From addresses as if there was no From: addr

* changelog

* Don't send invalid emails through the whole receive_imf pipeline

Instead, directly create a trash entry for them.

* Don't create trash entries for randomly generated Message-Id's

* clippy

* fix typo

Co-authored-by: link2xt <link2xt@testrun.org>
2022-11-21 21:38:56 +01:00
Hocuri
960a7f82ef Small test fix (#3764)
Doesn't make a difference at this point, since the test is ignored
anyway.
2022-11-19 12:03:05 +01:00
iequidoo
25be8ccd05 fetch_new_messages(): fetch messages sequentially (#3688)
If we fetch messages out of order, then f.e. reactions don't work because if we process a reaction not yet having the corresponding message processed, the reaction is thrown away.
2022-11-17 15:51:59 -03:00
link2xt
da6c68629d jsonrpc: do not return a result from deleteContact()
It was always true anyway.
2022-11-17 18:36:38 +00:00
link2xt
b63baf939e Ignore two typescript errors
`as any` is not enough anymore.
2022-11-16 14:06:17 +00:00
link2xt
90d8e0cedc Fix detection of Trash, Junk, All etc. folders
imap_proto has been updated, so attributes like `\All`,
`\Junk` from RFC 3501 and RFC 6154 are no longer considered
extensions.
2022-11-15 23:40:07 +00:00
link2xt
1c2d4c518e Fix typos 2022-11-15 23:23:44 +00:00
bjoern
0c030e811f prepare 1.101.0 (#3757)
* update changelog for core101

* bump version to 1.101.0
py-1.101.0 1.101.0
2022-11-15 16:08:29 +01:00
link2xt
428ef11157 Add IMAP UIDs to message info (#3755) 2022-11-15 15:19:32 +01:00
link2xt
ee34b64f5d Pop recently seen loop event out of the queue when it's in the past 2022-11-15 11:29:13 +00:00
bjoern
c1f9d8f7a1 allow deleting referenced contacts in UI (#3751)
* allow deleting referenced contacts in UI

we are quite often getting requests of users
who want to get rid of some contact in the "new chat" list.
there is already a "delete" option,
but it does not work for referenced contacts -
however, it is not obvious for users that a contact is in use,
esp. of some mailing list or larger chat, old contacts, whatever.

this pr revives an old idea [^1] of "soft deleting" referenced contacts -
this way, the user can remove the annoying entry
without the need to understand complicated things
and finally saying that deletion is impossible :)

once the contact is reused, it will reappear,
however, this is already explained in the confirmation dialog of the UIs.

technically, this pr was simpler as expected as we already have
a Origin::Hidden, that is just reused here.

[^1]: https://github.com/deltachat/deltachat-core/pull/542

* update rust doccomment

* update changelog

* avoid races on contact deletion

chats may be created between checking for "no chats" and contact deletion.

this is prevented by putting the statement into an EXCLUSIVE transaction.

* fix failing python test
2022-11-15 11:02:47 +01:00
link2xt
996be5d247 Improve IMAP logging
https://github.com/deltachat/deltachat-core-rust/pull/3749
2022-11-14 11:41:52 +00:00
link2xt
7d45419724 Convert anyhow errors to select_folder errors with alternate fmt 2022-11-14 11:40:40 +00:00
link2xt
c0ae5c0fb7 Use anyhow for close_folder() errors 2022-11-13 23:49:34 +00:00
link2xt
09042d12d4 Changelog 2022-11-13 20:35:05 +00:00
link2xt
7db147da14 Log fake IDLE interruptions 2022-11-13 20:35:05 +00:00
link2xt
1324b5da13 Rename folder argument into folder_config 2022-11-13 20:35:05 +00:00
link2xt
4ee14e6e77 Add more contexts to IMAP errors 2022-11-13 20:35:05 +00:00
link2xt
e1d50757b3 Better format for scan_folders errors 2022-11-13 20:35:05 +00:00
link2xt
9a447e8554 Log IDLE errors with all contexts 2022-11-13 20:35:05 +00:00
link2xt
516a5e9c5f Add contexts to both the timeout and actual IDLE error
Note that `IMAP IDLE protocol timed out` was previously
added to the wrong error: not the timeout error (first `?`)
but actual error happened during IDLE, such as a network error.
2022-11-13 20:35:05 +00:00
link2xt
4744f5eecf Add folder name to IMAP IDLE interrupt logs 2022-11-13 22:11:47 +03:00
link2xt
33839b5667 imap: log disconnection attempts 2022-11-13 17:59:28 +00:00
link2xt
43f2d64a6f imap: flatten fetch_idle() 2022-11-13 17:59:28 +00:00
link2xt
13f30c3167 Add configured_inbox_folder to account info
This goes into the log on Android.
2022-11-13 16:21:44 +00:00