Hocuri
52dfa9b536
Renaming, comment
2020-06-13 10:18:18 +02:00
Hocuri
adf4035775
rename reports
2020-06-13 10:18:17 +02:00
Hocuri
990c80cedf
lots of small fixes from the reviews
2020-06-13 10:18:17 +02:00
Hocuri
8ebce0c861
warn instead of error
2020-06-13 10:18:16 +02:00
Hocuri
7997e7dde4
remove println
2020-06-13 10:18:15 +02:00
Hocuri
3899d70b3c
I hate SQL
2020-06-13 10:18:14 +02:00
Hocuri
bd2a7a3d40
Correct failed recipient
2020-06-13 10:18:13 +02:00
Hocuri
98b5f768b6
Improve test, fixed compile errors from rebasing
2020-06-13 10:18:13 +02:00
Hocuri
df9cb5e3b8
Fix error in message info
2020-06-13 10:18:12 +02:00
Hocuri
6b763bf417
Return true for MessageState::OutMdnRcvd.can_fail() because it could be a group message and only some recipients failed
2020-06-13 10:18:12 +02:00
Hocuri
f0837cfa73
Repair errors saved for messages
2020-06-13 10:18:11 +02:00
Hocuri
8350729cbb
Improve errors
2020-06-13 10:18:11 +02:00
Hocuri
3757e5dca1
Try to add decent error msg (doesnt work yet)
2020-06-13 10:18:11 +02:00
Hocuri
f02c17cae4
Parse standard ndns (e.g. Gmail)
2020-06-13 10:18:11 +02:00
dignifiedquire
0ea442ca36
feat: add chat::send_msg_sync
2020-05-23 18:56:45 +02:00
Friedel Ziegelmayer
014d2946b2
feat: use EventEmitter for events
2020-05-22 21:03:01 +02:00
dignifiedquire
8a7923c974
Merge remote-tracking branch 'origin/master' into feat/async-jobs
2020-05-13 18:29:22 +02:00
Alexander Krotov
0fefe11bfd
Do not return "empty rfc724_mid" errors from rfc724_mid_cnt
...
This function should only return temporary errors, e.g. database errors,
as precheck_imf() and dc_receive_imf::add_parts() treat them as such,
retrying the fetch on failure. When permanent errors, like missing
Message-ID, are bubbled up, they cause infinite fetch loop.
2020-05-10 16:43:26 +03:00
B. Petersen
076cdae3fd
do not show errors during sending as a ephemeral popup or so, just set the message-state to failed, the error can be queried by the user at any time via 'Info' or so
2020-05-05 21:44:03 +02:00
Alexander Krotov
3035c8af30
Always describe the context of the displayed error
2020-05-04 16:35:42 +03:00
Alexander Krotov
979d7c5625
Do not ignore database read errors in precheck_imf
...
If precheck_imf fails to check if message with the same rfc724_mid
already exists, the same message may be downloaded twice. Instead,
abort the whole operation and retry later.
2020-04-23 15:36:45 +03:00
Friedel Ziegelmayer
24f4cbbb27
refactor: replace failure
...
- failure is deprecated
- thiserror for deriving Error impl
- anyhow for highlevel error handling
2020-04-10 22:39:28 +02:00
dignifiedquire
307a3e078e
Merge remote-tracking branch 'origin/master' into feat/async-jobs
2020-04-09 23:41:34 +02:00
Alexander Krotov
1b815a7d96
Display an error if message cannot be trashed
2020-04-01 20:06:27 +03:00
B. Petersen
248e6ea5e7
make clippy happy
2020-04-01 20:06:27 +03:00
B. Petersen
be0afdebfd
target comments of @link2xt, fix ci
2020-04-01 20:06:27 +03:00
B. Petersen
9f19d20344
implement message estimating
2020-04-01 20:06:27 +03:00
B. Petersen
d1a4c82937
prototype ffi for ephemeral messages
2020-04-01 20:06:27 +03:00
Alexander Krotov
ad53678c19
Remove msgs.unlinked column
...
It is not used anymore.
Database version 64 migration introducing this column is also removed.
2020-04-01 20:06:27 +03:00
Alexander Krotov
62097765a6
update_server_uid: set server_uid even for unlinked messages
...
Sometimes message deletion job marks message as unlinked without
actually deleting it. It is possible if the message was already moved
into another folder, possibly by second device, but not detected there
yet. It should be detected later in the other folder, and the
server_uid in the database should be set.
Since introduction of add_imap_deletion_jobs() any expired message
record will be marked as unlinked eventually, because another message
deletion job will be scheduled even if update_server_uid() resurrects
the message once.
2020-04-01 20:06:27 +03:00
Alexander Krotov
efb7280e99
Do not schedule delayed DeleteMsgOnImap jobs
...
All IMAP deletion jobs are scheduled either immediately, or later by
job::add_imap_deletion_jobs().
2020-04-01 20:06:27 +03:00
Alexander Krotov
f2aa17c9d0
Resultify MsgId.delete_from_db()
2020-04-01 20:06:27 +03:00
Alexander Krotov
6d216af507
Delete BCC-self messages after "delete_server_after" time
2020-04-01 20:06:27 +03:00
Alexander Krotov
b2f1d9f376
Do not remove rfc724_mid for unlinked messages
...
Message-ID is used to send read receipts. Instead, add a separate
"unlinked" column.
2020-04-01 20:06:27 +03:00
Alexander Krotov
2cf9c68040
Implement MsgId.unlink() and use it in DeleteMsgOnImap
...
Currently only trashed or hidden messages are deleted by
DeleteMsgOnImap, so it is safe to remove database records.
It is planned to delete messages on IMAP server after
user-configurable time to cleanup the server even for messages
displayed in chats. For such messages, we unlink them from the
Message-ID, but keep the database record to display them.
2020-04-01 20:06:27 +03:00
Alexander Krotov
cc0f977d6f
Document rfc724_mid_cnt
2020-04-01 20:06:27 +03:00
Alexander Krotov
7879952fde
Delete MDNs first in MsgId.delete_from_db()
2020-04-01 20:06:27 +03:00
Alexander Krotov
4452cab987
Turn Message::Delete_from_db into MsgId method
2020-04-01 20:06:27 +03:00
Alexander Krotov
c1c769ceb0
Add MsgId.trash() and use it to delete messages locally
...
In addition to moving the message into trash chat, this function
removes message text to make sure the message does not remain in the
database. Only the information necessary to delete message from the
server and avoid redownloading it should be kept, such as Message-Id
and IMAP UID.
2020-04-01 20:06:27 +03:00
Alexander Krotov
d64e55c66f
delete_msgs: remove explicit .iter()
2020-04-01 20:06:27 +03:00
dignifiedquire
7140898db9
async file io
2020-03-14 16:26:15 +01:00
dignifiedquire
4c9d049b10
blocking for with_conn
2020-03-14 15:17:47 +01:00
dignifiedquire
818e921192
it compiles
2020-03-14 15:17:47 +01:00
dignifiedquire
6ea1d665bb
start making sql async
2020-03-14 15:17:23 +01:00
dignifiedquire
9614a23506
first pass at async job
2020-03-14 15:14:49 +01:00
B. Petersen
0e4031348f
remove unwrap-flag from dc_truncate() - it was never really used on-purpose
2020-03-02 14:10:44 +01:00
B. Petersen
5cc26762c2
unwrap lineends in summaries
2020-03-02 14:10:44 +01:00
Alexander Krotov
508b8ef2e2
Improve documentation, mostly by hiding behind pub(crate)
2020-02-20 23:37:13 +03:00
dignifiedquire
9cc99ffcd6
add more ser and de impls
2020-02-12 19:12:22 +01:00
Alexander Krotov
b83e6f6e7c
Simplify MsgId.is_special()
2020-01-26 16:19:01 +01:00