Floris Bruynooghe
23eb3c40ca
Turn Bob::expects into an enum and add docs
...
This turns the Bob::expects field into an enum, removing the old
constants. It also makes the field private, nothi0ng outside the
securejoin module uses it.
Finally it documents stuff, including a seemingly-unrelated Param.
But that param is used by the securejoin module... It's nice to have
doc tooltips be helpful.
2020-09-02 21:23:16 +02:00
B. Petersen
8727e0acf8
add an index to significantly speed up get_fresh_msg_cnt()
2020-09-02 17:06:46 +02:00
Alexander Krotov
dd682e87db
imap: resultify Imap.connect
2020-08-30 15:04:07 +03:00
Alexander Krotov
0b743c6bc3
imap: use anyhow for error handling
...
There is already free-form Error::Other error type, and SqlError had
incorrect error description (a copy from InTeardown).
2020-08-30 15:04:07 +03:00
Alexander Krotov
8f290530fd
Use enum type for Bob status
2020-08-30 15:03:43 +03:00
Alexander Krotov
0f164861c7
Fix clippy::iter_next_slice errors
2020-08-28 02:13:23 +03:00
Alexander Krotov
4481ab18f5
configure: try multiple servers for each protocol
...
LoginParamNew structure, which contained possible IMAP and SMTP
configurations to try is replaced with uniform vectors of ServerParams
structures. These vectors are initialized from provider database, online
Mozilla or Outlook XML configuration or user entered parameters.
During configuration, vectors of ServerParams are expanded to replace
unknown values with all possible variants, which are tried one by one
until configuration succeeds or all variants for a particular protocol
(IMAP or SMTP) are exhausted.
ServerParams structure is moved into configure submodule, and all
dependencies on it outside of this submodule are removed.
2020-08-27 23:11:25 +03:00
Hocuri
927c7eb59d
Fix cancelling imex ( #1855 )
...
Fix deltachat/deltachat-android#1579
Also: Make sure that if an error happens, the UI can show the error to the user
2020-08-27 15:02:00 +02:00
Alexander Krotov
6eef4066db
Do not restrict message.kml coordinates precision
...
Using only two digits results in visible difference between original
location and location received by other users.
2020-08-27 11:19:08 +03:00
Alexander Krotov
1cb4e41883
auto_mozilla: use match to parse socket types
2020-08-23 22:15:06 +03:00
Alexander Krotov
cbfada3e4a
Implement Default and FromStr for MozConfigTag
2020-08-23 22:15:06 +03:00
Alexander Krotov
c19e35b68d
Parse multiple servers in Mozilla autoconfig
...
Co-Authored-By: Simon Laux <mobile.info@simonlaux.de >
2020-08-23 22:15:06 +03:00
B. Petersen
94e52b5598
use Viewtype::File for types that may be unsupported on some systems.
...
in general, Viewtypes other than File should be used only
when the added file type is tested on all platforms -
including Android4 currently.
as this is easily overseen,
i've added a comment.
this partly reverts Viewtype changes done by
https://github.com/deltachat/deltachat-core-rust/pull/1818
2020-08-23 19:53:58 +03:00
Alexander Krotov
42bd9f71f0
imap: store ServerLoginParam instead of its fields
...
This prevents errors when copying it field-by-field.
2020-08-23 16:31:26 +03:00
Alexander Krotov
064d62e758
Imap.connect: copy security setting
2020-08-23 16:31:26 +03:00
Alexander Krotov
a01755b65b
Guess MIME type for .pdf and many other extensions
2020-08-23 01:20:32 +03:00
Alexander Krotov
6763dd653e
Do not override mime type set by the user
2020-08-23 01:20:32 +03:00
Hocuri
0fc57bdb35
Separate IMAP and SMTP configuration
...
Co-Authored-By: link2xt <ilabdsf@gmail.com >
Co-Authored-By: bjoern <r10s@b44t.com >
2020-08-22 21:29:39 +03:00
Alexander Krotov
0816e6d0f6
Warn if IMAP deletion is scheduled for message without UID
2020-08-22 14:46:06 +03:00
Alexander Krotov
c7d72d64cc
Schedule resync on UID validity change
2020-08-22 14:46:06 +03:00
Alexander Krotov
e33f6c1c85
Schedule resync job when DeleteServerAfter option is set
2020-08-22 14:46:06 +03:00
Alexander Krotov
b4c85c534d
Add a job to resync folder UIDs
2020-08-22 14:46:06 +03:00
Alexander Krotov
763334d0aa
Sort message replies after parent message
2020-08-22 13:57:29 +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
Hocuri
b9ca7b8ace
Remove newlines from group names, chat names and the displayname ( #1845 )
2020-08-20 09:05:08 +02:00
Hocuri
3faf968b7c
Fix tests
2020-08-19 20:03:08 +02:00
Hocuri
1a736ca6c3
Fix #1804 : remove <!doctype html> and accept invalid HTML
...
This fixes #1804 in two ways: First, it removes a <!doctype html> from
the start of the mail, if there is any.
Then, it parses the html itself it quick-xml fails, just stripping
everything between < and >.
Both of these would have fixed this specific issue.
Also, add tests for both fixes.
2020-08-19 20:03:08 +02:00
bjoern
4b75f3a177
Merge pull request #1837 from deltachat/fix-oauth2
...
Update async-imap to fix Oauth2
2020-08-18 18:28:46 +02:00
bjoern
d26347af7e
Merge pull request #1831 from deltachat/trailing-slash
...
be more tolerant on webrtc-servers set by the user
2020-08-18 14:09:24 +02:00
bjoern
a3c700ce85
Merge pull request #1826 from deltachat/tgs-mimetype
...
Recognize .tgs files as stickers
2020-08-18 12:48:38 +02:00
bjoern
0969de5e6e
Merge pull request #1844 from deltachat/offline-autoconfig-certck
...
Automatic certificate checks for providers from DB
2020-08-18 12:08:43 +02:00
Hocuri
cf72d9a41e
Tar backup ( #1749 )
...
Fix #1729
Co-authored-by: holger krekel <holger@merlinux.eu >
Co-authored-by: Alexander Krotov <ilabdsf@gmail.com >
2020-08-18 11:54:46 +02:00
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