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
98bd64621a
Refactor Imap.delete_msg() error handling
...
Mutable UID reference is removed. Instead, ImapActionResult is
returned immediately.
If message has changed and UID does not correspond to expected
message, ImapActionResult::Failed is returned. Temprorary IMAP errors
result in ImapActionResult::RetryLater.
On the job side, ImapActionResult::RetryLater does not result in
immediate job retry anymore. Instead, job is retried with a backoff.
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
Alexander Krotov
76fc84be37
job: document DeleteMsgOnImap
2020-04-01 20:06:27 +03:00
B. Petersen
6ffe54d68f
do no longer ignore keypair generation test, due to the ecc-move, it is no longer expensive
2020-03-31 18:20:40 +02:00
Alexander Krotov
d78ea882c8
Update mailparse to 0.12
2020-03-31 18:11:44 +02:00
Alexander Krotov
958802a233
Add system message only if contact was removed successfully
2020-03-31 18:08:19 +02:00
B. Petersen
8aa4ceb570
hide the device-chat from default forward-to-lists
2020-03-30 15:59:07 +02:00
Alexander Krotov
a7afbf85ad
Replace test Alice key with ed25519 key
...
Autocrypt Setup Message does not contain "==" anymore since key length
has changed.
2020-03-29 19:52:45 +03:00
bjoern
8fdf3dcdb8
Merge pull request #1314 from deltachat/fix-secure-join
...
ignore handshake messages seen from another device
2020-03-28 10:28:55 +01:00
B. Petersen
818c20e0cb
switch to ecc keys
...
after fixing some issues wrt ecc keys, see #1319 ,
and waiting some time (three core releases, two ios/android/desktop releases),
it is now the time to switch again to ecc keys again,
after the first attempt was stopped in #1319
2020-03-28 01:05:24 +03:00
bjoern
bd75dea000
Merge pull request #1359 from deltachat/fix-imap-delimiter
...
fix imap delimiter
2020-03-25 19:01:58 +01:00
B. Petersen
e09a0a548f
using first() instead of [0]
2020-03-25 18:10:02 +01:00
B. Petersen
ab8d75b192
remove now unused ImapConfig.imap_delimiter
2020-03-25 13:23:29 +01:00
B. Petersen
e135c969c9
figure out and use folder-delimiter provided by LIST command
2020-03-25 13:16:23 +01:00
B. Petersen
36e7090466
force folder-reconfigure on dc_configure()
2020-03-25 02:39:48 +01:00
B. Petersen
f28f177c6b
use constant for folders_configured cache
2020-03-24 19:18:18 +01:00
B. Petersen
785973c624
allow ad-hoc-group creation if there is an accepted chat with the contact
2020-03-24 16:47:54 +01:00
B. Petersen
9c06acff72
add tests wrt classic email-interaction
2020-03-24 16:47:54 +01:00
B. Petersen
17ff1ab372
this corrects the To:-list for group-messages with only SELF as member.
...
before, the list was empty
and trying to send to groups that only contain SELF lead to a crash.
in theory, this happens for both, bcc_self enabled or not, however,
if bcc_self was disabled (default setting),
things worked as the whole mimerendering was skipped on a higher level.
also, the saved-messages-chat was not affected as this was checked explicitly.
this pr changes the mimerendering so that From: is used as To:
if there is no recipient-list and the messasge will be sent to SELF only.
2020-03-23 01:48:27 +01:00
B. Petersen
ae5a2396f3
fix typo
2020-03-22 16:18:53 +01:00
B. Petersen
8f82bf40e0
let function that search for Message-IDs accept widly used square brackets format
2020-03-22 12:20:28 +01:00
B. Petersen
fe398de2fa
add test that fail on checking existance of a Message-ID with angle brackets
2020-03-22 12:20:28 +01:00
Alexander Krotov
a770d75e2e
Fix condition in normalize_name()
2020-03-22 00:11:41 +00:00
Alexander Krotov
a330104e9b
Add tests that crash normalize_name()
2020-03-22 00:11:41 +00:00
Alexander Krotov
e7e4821804
Reset group member list when we are added to the group
...
This makes test_synchronize_member_list_on_group_rejoin pass.
2020-03-19 17:03:31 +03:00
B. Petersen
c0e08fb927
fix typo
2020-03-11 16:17:29 +01:00
B. Petersen
6d6bc9b050
for forwarding, sort 'saved messages' atop of the chatlist
2020-03-09 23:30:22 +01:00
Alexander Krotov
4714fb6887
Reset server_folder and server_uid in Imap.empty_folder()
...
This way we avoid trying to delete already deleted messages in the future.
2020-03-09 01:21:12 +03:00
Alexander Krotov
82b4647b95
Update dc_truncate() comment
2020-03-02 23:09:38 +03:00
Alexander Krotov
0c770a8b37
Fix Origin::AddressBook spelling
2020-03-02 22:57:22 +03: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
B. Petersen
b8b4853d1f
add failing test for checking linebreak-unwrapping in get_summary
2020-03-02 14:10:44 +01:00
Alexander Krotov
fbabe27fc1
Make add_or_lookup errors non-fatal in add_address_book()
2020-03-02 14:08:20 +01:00
B. Petersen
dbd1b227d9
revert generating ecc keys for now
...
the currently released versions fail sometimes in encrypting to ecc keys,
see #1313 , the issue is about to be fixed,
however, we should not generate ecc keys until the
fix is rolled out - otherwise new users will get encryption errors every some
messages if their counterpart is not yet using the most recent version.
we can start generating ecc keys a few weeks after the fix is rolled out.
2020-03-01 21:34:04 +03:00
B. Petersen
7c39bb6659
ignore handshake messages seen from another device
...
moreover, prepare for marking peers as verified accross devices,
see detailed comment for observe_securejoin_on_other_device()
2020-02-27 15:04:11 +01:00
B. Petersen
4f8c5965ac
get fix wrt aol from provider-database
...
aol is not proken, it just needs some prepararions :)
command for updating:
./src/provider/update.py ../provider-db/_providers/ > src/provider/data.rs
2020-02-24 23:39:40 +03:00
Alexander Krotov
3c342339a1
imap: use parse_message_id from mimeparser
2020-02-22 16:41:07 +01:00
Alexander Krotov
33463856c5
Use mailparse::msgidparse to parse Message-IDs
2020-02-22 16:41:07 +01:00
Alexander Krotov
508b8ef2e2
Improve documentation, mostly by hiding behind pub(crate)
2020-02-20 23:37:13 +03:00
holger krekel
e94c62e5b3
Update src/contact.rs
...
fix typo
2020-02-20 02:10:56 +01:00
B. Petersen
b65a6c2829
target comment of @hpk42
2020-02-20 02:10:56 +01:00
B. Petersen
c4a20d0798
fix updating names from incoming mails
...
- if a manual name was never given, always update names from incoming mails
- if a manual name is cleared, fall back to names from incoming mails
2020-02-20 02:10:56 +01:00
B. Petersen
9cb7ea524e
add failing test where a contact-name is not updated as expected
2020-02-20 02:10:56 +01:00
holger krekel
0ac0eeda34
better naming, less code
2020-02-20 01:30:21 +01:00
holger krekel
4d066b4fd2
refine processing of errors and result handling
2020-02-20 01:30:21 +01:00