B. Petersen
77c61ab25b
fix threading in interation with non-delta-clients
...
threading was broken in core43 as this flags unencrypted messages as errors
and errors are not replied-to.
the fix is not to mark missing signatures for unencrypted messages as errors.
2020-08-18 11:43:29 +02:00
Alexander Krotov
a9faaa5cbc
Update async-imap to fix Oauth2
2020-08-16 12:00:00 +03:00
Alexander Krotov
061bee382b
Automatic certificate checks for providers from DB
...
When certificate checks setting is Automatic, strict_tls setting
from provider database is applied dynamically in Imap.connect() and
Smtp.connect().
2020-08-16 12:00:00 +03:00
Alexander Krotov
299c70e1cc
configure: add "mail." to smtp_server when configuring SMTP
2020-08-16 02:59:48 +03:00
B. Petersen
54edd4d211
force enum-match exhaustive
2020-08-14 13:41:51 +02:00
B. Petersen
810bd514d7
make clippy happy
2020-08-14 13:35:02 +02:00
Alexander Krotov
0bf8017e8f
try_decrypt: do not use gossip_key if public_key is available
...
public_key is updated with apply_header in try_decrypt right above this
code, so it makes no sense to allow signing messages with gossip key.
2020-08-14 12:00:54 +02:00
Alexander Krotov
8f7f4f95e8
Do not warn about gossip key changes if it is not used
2020-08-14 12:00:54 +02:00
Alexander Krotov
9810e5562a
Rename handle_degrade_event into handle_fingerprint_change
2020-08-14 12:00:54 +02:00
Alexander Krotov
2feecbc9ff
Replace Peerstate.degrade_event with bool
...
DegradeEvent::EncryptionPaused was always ignored, so it can be removed.
2020-08-14 12:00:54 +02:00
Alexander Krotov
55389c4190
Refactor handle_degrade_event
2020-08-14 12:00:54 +02:00
Hocuri
1c2b4fa7fc
Fix #1790 Unprotected subjects in encrypted messages are shown as encrypted (using a rather minimal approach)
2020-08-14 11:58:35 +02:00
B. Petersen
0208c02ec2
ignore whitespace in given webrtc_instance
2020-08-14 11:55:36 +02:00
B. Petersen
8159141d44
add https-scheme to videochat-instance, if missing in pattern
2020-08-14 11:26:48 +02:00
B. Petersen
38a32d176b
add a slash before room if there is no other separator
2020-08-14 11:26:47 +02:00
B. Petersen
a66d624b87
add failing test
2020-08-14 11:26:47 +02:00
B. Petersen
bd0b352854
make webrtc-instance-creation testable
2020-08-14 00:23:37 +02:00
B. Petersen
7ffefdff89
update provider-database
2020-08-13 22:42:29 +02:00
Alexander Krotov
920753ad50
configure: do not try the same username twice
...
If username does not contain "@", don't try again after removing domain
part.
2020-08-11 22:09:06 +03:00
Alexander Krotov
00c1383419
configure: refactor to try various server domains
...
For IMAP, example.org, imap.example.org and mail.example.org are tried.
For SMTP, example.org, smtp.example.org and mail.example.org are tried.
2020-08-11 22:09:06 +03:00
Friedel Ziegelmayer
526e76c59f
Merge pull request #1784 from deltachat/feat/multiii
2020-08-11 12:20:32 +02:00
Alexander Krotov
baec61cc4d
Recognize .tgs files as stickers
...
.tgs files are Telegram stickers. Internally they are gzipped JSON files,
containing a single Lottie animation.
MIME type application/x-tgsticker is commonly used for telegram documents
containing such stickers.
2020-08-11 04:21:47 +03:00
bjoern
21f8fefcce
Merge pull request #1809 from deltachat/test-get-width-height
...
add a higher-level test for dc_get_filemeta()
2020-08-10 11:56:23 +02:00
dignifiedquire
b97c334e0c
add Context::get_id
2020-08-10 10:51:04 +02:00
dignifiedquire
1ae49c1fca
unify events
2020-08-10 10:32:48 +02:00
dignifiedquire
99ca582e25
implement ffi calls
2020-08-10 10:01:46 +02:00
dignifiedquire
48e5016abf
add migration code
2020-08-10 10:01:46 +02:00
dignifiedquire
58a8ae1914
feat: initial implementation of the account manager
2020-08-10 10:01:46 +02:00
Hocuri
04629c4b2e
Remove debug X-Mailer header
2020-08-09 20:03:58 +03:00
Alexander Krotov
2550ed3f43
Add more extensions to guess_msgtype_from_suffix()
2020-08-09 17:46:07 +03:00
B. Petersen
1566b7105e
test that msg width/height are smaller than some reasonable maximum
2020-08-08 12:59:31 +02:00
bjoern
418b2c0478
Merge pull request #1812 from deltachat/siju
...
Hide SIJÚ messenger footer
2020-08-08 12:54:13 +02:00
bjoern
ca0c8f77a1
Merge pull request #1813 from deltachat/ephemeral-timer-changed-set-better-message
...
Always translate EphemeralTimerChanged message
2020-08-08 12:51:20 +02:00
Alexander Krotov
2c41b3f3e0
Always translate EphemeralTimerChanged message
...
An EphemeralTimerChanged message with the same timer as already set can
be received when there are large delays or lost messages. Even though
inner_set_ephemeral_timer should not be called in this case, because it
emits an event indicating timer change, system message will be added to
the chat, so it should be translated with set_better_msg in any case.
2020-08-08 04:57:48 +03:00
Alexander Krotov
ac72280e69
Hide SIJÚ messenger footer
2020-08-08 00:24:08 +03:00
Alexander Krotov
ea0aa4a93f
Imap.select_with_uidvalidity(): read all the IMAP responses
2020-08-07 23:36:12 +03:00
Alexander Krotov
b83f3e5ea0
imap: read all UID STORE responses
...
Otherwise these FETCH responses will remain unread and may be confused
with the actual FETCH response later.
2020-08-07 23:36:12 +03:00
Alexander Krotov
6c7d7f0c16
Imap.delete_msg(): read the whole UID FETCH response
2020-08-07 23:36:12 +03:00
Alexander Krotov
1bfc8d0300
Imap.delete_msg(): warn about unexpected FETCH responses
...
Such responses indicate IMAP client or server bug.
2020-08-07 23:36:12 +03:00
Alexander Krotov
18d8ef9ffc
dehtml: handle empty tags
2020-08-07 23:18:34 +03:00
B. Petersen
b1d862bc7d
add a higher-level test for dc_get_filemeta()
...
test that, in general, msg.get_width() and msg.get_height()
return reasonable values.
2020-08-07 00:47:56 +02:00
bjoern
a3a78bff8e
Merge pull request #1802 from deltachat/update-device-icon
...
Update device icon to use RGBA
2020-08-07 00:02:29 +02:00
B. Petersen
7a7cdad566
fix dc_get_filemeta()
2020-08-06 23:45:37 +02:00
B. Petersen
2b74c58a45
add failing test for dc_get_filemeta()
2020-08-06 23:45:24 +02:00
Alexander Krotov
7eb72fea92
peerstate: add regression test
...
Test that default values for acpeerstate table can be successfully
loaded from the database.
2020-08-06 13:19:36 +03:00
Alexander Krotov
5bfa82e7ec
Resultify Peerstate::from_fingerprint
2020-08-06 13:19:36 +03:00
Alexander Krotov
cfd222a109
Resultify Peerstate::from_addr
2020-08-06 13:19:36 +03:00
Alexander Krotov
3577491b31
peerstate: log database errors
2020-08-06 13:19:36 +03:00
Alexander Krotov
d106a027c7
Make Peerstate.save_to_db atomic
...
This should prevent creation of acpeerstate entries using default values
(empty strings) for fingerprint columns.
2020-08-06 13:19:36 +03:00
Alexander Krotov
dc4fa1de65
peerstate: ignore invalid fingerprints in SQL
...
Normally NULL is used when there is no fingerprint, but default value
for fingerprint columns is an empty string.
In this case, loading should not fail with an "invalid length" error,
but treat the fingerprint as missing.
Strict check was introduced in commit ca95f25639
2020-08-06 13:19:36 +03:00