Alexander Krotov
21b18836ca
test_configure_error_msgs: do not check for "password" repetition
...
When run against host that is not in the provider database or has multiple
IMAP servers listed, this test fails because one error is returned for
each server.
2020-10-02 14:28:10 +03:00
Alexander Krotov
60a8b47ad0
e2ee: require quorum to enable encryption
...
Previously, standard Autocrypt rule was used to determine whether
encryption is enabled: if at least one recipient does not prefer
encryption, encryption is disabled.
This rule has been problematic in large groups, because the larger
is the group, the higher is the chance that one of the users does not
prefer encryption.
New rule requires a majority of users to prefer encryption. Note that it
does not affect 1:1 chats, because it is required that *strictly* more
than a half users in a chat prefer encryption.
2020-09-27 23:38:06 +03:00
Alexander Krotov
0344bc387c
Add encryption preference test
2020-09-27 23:38:06 +03:00
B. Petersen
b5e1b1a2d2
test for DC_EVENT_MSGS_NOTICED
2020-09-24 11:36:40 +02:00
Hocuri
637d2661e8
Show better errors when configuring ( #1917 )
...
* Show all errors when configuring
* Shorten some overly long msgs
2020-09-21 15:06:33 +02:00
Alexander Krotov
c124eadf9d
Emit chat modification event on contact rename
2020-09-20 00:45:36 +03:00
Alexander Krotov
97b1a1c392
Set contact ID in event related to contact blocking
2020-09-19 22:01:45 +03:00
Alexander Krotov
fe1c99c5e8
Set contact ID in ContactsChanged on modification
2020-09-19 22:01:45 +03:00
B. Petersen
c6339c4ae4
remove python bindings and tests for unused dc_empty_server()
2020-09-07 06:38:48 +03:00
Alexander Krotov
e388e4cc1e
Do not emit network errors during configuration
...
Previously DC_EVENT_ERROR_NETWORK events were emitted for each failed
attempt during autoconfiguration, even if eventually configuration
succeeded. Such error reports are not useful and often confusing,
especially if they report failures to connect to domains that don't
exist, such as imap.example.org when mail.example.org should be used.
Now DC_EVENT_ERROR_NETWORK is only emitted when attempting to connect
with existing IMAP and SMTP configuration already stored in the
database.
Configuration failure is still indicated by DC_EVENT_CONFIGURE_PROGRESS
with data1 set to 0. Python tests from TestOnlineConfigurationFails
group are changed to only wait for this event.
2020-09-05 21:17:26 +03:00
Alexander Krotov
f6854fd22f
Add python test for contact renaming
2020-08-23 16:44:13 +03:00
Alexander Krotov
be922eef0f
Format plain text as Format=Flowed DelSp=No
...
This avoids triggering spam filters which require that lines are wrapped
to 78 characters.
2020-08-22 13:57:10 +03:00
Hocuri
1325b2f7c6
Fix #1791 Receive group system messages from blocked users ( #1823 )
...
Fix #1791 and show all group messages if the user already is in the group, even if the sender is blocked
Also fix a comment
Co-authored-by: link2xt <ilabdsf@gmail.com >
2020-08-21 11:57:37 +02:00
Alexander Krotov
4f8e7e0166
python: fix more flaky tests
...
This change fixes test_immediate_autodelete and maybe other tests using
DirectImap.get_all_messages().
2020-08-08 23:04:05 +03:00
Alexander Krotov
9a21d5e9d9
Second attempt to fix flaky test
...
The server sometimes reorders the messages even if they were accepted
strictly in sequence.
2020-08-08 17:35:25 +03:00
Alexander Krotov
24d0382ec3
Add regression test for dc_set_chat_mute_duration panic
...
Panic was fixed in 3c8e60a2a3
2020-08-08 10:47:48 +03:00
Alexander Krotov
6d68fd4500
python: test get_mute_duration()
2020-08-08 10:47:48 +03:00
Alexander Krotov
528b5e9469
Attempt to eliminate test flakiness
2020-08-07 23:36:12 +03:00
Alexander Krotov
ec4d68af2b
Remove xfail mark on regression test
2020-08-07 23:36:12 +03:00
Alexander Krotov
8faf397af2
Add regression test for IMAP message deletion
...
Test times out while trying to delete messages. Message deletion jobs
don't complete in time because IMAP response parsing is broken in the
Rust core.
2020-08-07 23:36:12 +03:00
holger krekel
2cbf2d8f65
fix bug reported by @adbenitez
2020-07-20 16:00:00 +02:00
holger krekel
06166f7956
make group left messages call the ac_member_removed hook, as per wishes from @adbenitez
2020-07-18 19:58:15 +02:00
holger krekel
933b14eedf
fix #1480
...
make ac_member_removed and ac_member_added work if the action was triggered remotely.
also pass in the "actor" contact so one can know who did this.
2020-07-16 11:56:13 +02:00
holger krekel
650bd822bf
some cleanup to finalize PR
2020-07-16 11:55:51 +02:00
holger krekel
37943d3d16
fix another flaky test
2020-07-16 11:55:51 +02:00
holger krekel
e07869ae95
improve debugging
2020-07-16 11:55:51 +02:00
Alexander Krotov
7bb6890f26
Send MDNs for messages deleted on the server
...
Now MarkseenMsgOnImap sends MDN even if it can't mark the message as
seen on the server.
To prevent multiple MDNs from being sent, MarkseenMsgOnImap is postponed
until the message is detected in a folder from which it is not going to
be moved.
2020-07-14 23:26:48 +03:00
Alexander Krotov
2aa808756e
Add test for MDN not sent for server deleted messages
2020-07-14 23:26:48 +03:00
Alexander Krotov
6cb75114c1
Cleanup test_basic_imap_api()
2020-07-13 01:53:28 +03:00
Alexander Krotov
1e84e81e7d
imap: expunge folder before IDLE if needed
...
This ensures Inbox is expunged timely in setups that don't watch
DeltaChat folder.
2020-07-13 00:54:20 +03:00
Alexander Krotov
d3eb209d27
Add test for immediate server deletion
2020-07-13 00:54:20 +03:00
Alexander Krotov
7da69a4644
Add dc_msg_get_ephemeral_{timer, timestamp}()
2020-07-11 22:25:17 +03:00
Alexander Krotov
7f8f871813
Make ephemeral timer changes not ephemeral
2020-07-08 20:25:05 +03:00
Alexander Krotov
d6b30c9703
Fix python test for ephemeral timer
2020-07-01 09:32:08 +03:00
Alexander Krotov
7d048ac419
Add autodelete timers
2020-06-29 23:04:34 +03:00
holger krekel
07236efc45
fix bcc_self to remain "0" for testrun/fivechat test accounts
2020-06-23 08:06:32 +02:00
Hocuri
351e5dc6f3
Add Python test
2020-06-17 10:58:27 +02:00
holger krekel
e7dd74e4b1
simplify configure() and don't keep state on the account in non-test mode
2020-06-10 12:47:49 +02:00
holger krekel
95b40ad1d8
avoid hello.com and use example.org
2020-06-09 14:39:00 +02:00
holger krekel
0efb2215e4
renamings and parallel sending
2020-06-09 14:39:00 +02:00
holger krekel
0c8f951d8f
address @hocuri comment -- remove as_contact() as it's synonym with create_contact
...
and the latter is already an established API and conveys better that a contact
object will be created if it doesn't exist.
2020-06-09 14:39:00 +02:00
holger krekel
0bb4ef0bd9
introduce chat.num_contacts() as a more efficient shortcut
2020-06-09 14:39:00 +02:00
holger krekel
f93a863f5f
fix and steamline tests and test setup
2020-06-09 14:39:00 +02:00
holger krekel
f263843c5f
route all flexible contact add/remove through account.as_contact(obj)
2020-06-09 14:39:00 +02:00
holger krekel
ca70c6a205
remove account.create_chat_by_message in favor of message.create_chat(), simplifing the API
2020-06-09 14:39:00 +02:00
holger krekel
7d5fba8416
refine contact API and introduce account.create_chat() helper
...
strike create_chat_by_contact in favor of contact.create_chat()
2020-06-09 14:39:00 +02:00
holger krekel
3a85b671a1
remove acfactory.get_chat() in favour of account.create_chat(account2) directly working.
2020-06-09 14:39:00 +02:00
Alexander Krotov
35566f5ea5
Extend undecipherable group test
...
Reply to group messages assigned to 1:1 chat on ac4 and see where they
end up on ac1 and ac2. Currently they contain group ID in Reply-To field
and go to group chat, so the test is failing.
2020-06-08 23:16:35 +02:00
Alexander Krotov
c6f19ea0a4
Add failing test for undecipherable group messages
2020-06-08 23:16:35 +02:00
holger krekel
4fdf496cac
refine one more test to "newstyle"
2020-06-08 16:31:21 +02:00