bjoern
24edd83c8a
Merge pull request #1207 from deltachat/provider-db
...
streamline provider-db
2020-01-30 23:33:04 +01:00
B. Petersen
268c5b6482
update provider-db
2020-01-30 23:31:44 +01:00
B. Petersen
a66a754126
use EmailAddress object correctly
2020-01-30 17:47:43 +01:00
B. Petersen
18059734ce
make 'cargo fmt' happy with generated code: avoid two lineends at end of file
2020-01-30 17:47:43 +01:00
B. Petersen
c883e709c3
make sure, a domain is not used twice
2020-01-30 17:47:43 +01:00
B. Petersen
7be0bd3583
skip providers without data, cleanup
2020-01-30 17:47:43 +01:00
B. Petersen
d9ab37ea58
check for missing before_login_hint
2020-01-30 17:47:43 +01:00
B. Petersen
ff075ba612
update provider-db
2020-01-30 17:47:42 +01:00
B. Petersen
9c9294a730
use P_DOMAIN_NAME instead of P_123 to make a diff easier, make sure, domains are lowercase
2020-01-30 17:47:42 +01:00
B. Petersen
2a0842b8ae
rough check for valid domains
2020-01-30 17:47:42 +01:00
B. Petersen
3cfe45ffc2
disable a clippy warning, add a comment on that
2020-01-30 17:47:42 +01:00
B. Petersen
80dc7bfc52
make 'cargo fmt' happy
2020-01-30 17:47:42 +01:00
B. Petersen
10f26f17ba
replace provider/data.rs by auto-generated file
2020-01-30 17:47:42 +01:00
B. Petersen
4ba7402f28
tweak yaml->rust script, generated code compiles and works now :)
2020-01-30 17:47:42 +01:00
B. Petersen
d4da2e0d9c
add update.py that takes a folder with yaml-md-files as argument
2020-01-30 17:47:41 +01:00
B. Petersen
b180d004ba
use structure as suggested by @dignifiedquire
2020-01-30 17:47:41 +01:00
B. Petersen
de5bd96f08
add some more tests
2020-01-30 17:47:41 +01:00
B. Petersen
3a05b5dacc
target comment of @Simon-Laux, use a subdirectory
2020-01-30 17:47:41 +01:00
B. Petersen
b3c4e32b68
split provider-database from code to allow easy generation
2020-01-30 17:47:41 +01:00
B. Petersen
375a48f135
add before_login_hint to device-chat on successfull logins
2020-01-30 17:47:41 +01:00
B. Petersen
1750ab92e6
actually use server/port/etc. from provider-db, remove hardcoded nauta-settings
2020-01-30 17:47:41 +01:00
B. Petersen
8364ddd10b
get and test concrete server-data
2020-01-30 17:47:41 +01:00
B. Petersen
63043cb45d
add after_login_hint, refine ffi
2020-01-30 17:47:40 +01:00
B. Petersen
aaa6497659
add server data for nauta to provider-db
2020-01-30 17:47:40 +01:00
dignifiedquire
4fc6fa9c8a
lazy_static: make it compile
2020-01-30 17:47:40 +01:00
B. Petersen
7d0dcfb3a5
refine example
2020-01-30 17:47:40 +01:00
B. Petersen
a97ea0ad63
adapt python tests
2020-01-30 17:47:40 +01:00
B. Petersen
da66a4d22f
make clippy happy
2020-01-30 17:47:40 +01:00
B. Petersen
748e54d4c2
add basic provider-functions
2020-01-30 17:47:40 +01:00
B. Petersen
0f172595d7
we need the provider-db also in the core, not only ffi. the idea is to add it directly to the core and to avoid an extra crate. this also avoids pulling in yaml-rust and some other dependencies.
2020-01-30 17:47:39 +01:00
B. Petersen
5ffdbd99e8
adapt python bindings, remove tests until we really have data
2020-01-30 17:47:39 +01:00
B. Petersen
fbe57c4c71
adapt provider-db api to real need
2020-01-30 17:47:39 +01:00
Alexander Krotov
61726168d6
examples/simple.rs: fix clippy warnings
2020-01-29 23:29:34 +03:00
B. Petersen
a80632ab36
use RECOMMENDED_FILE_SIZE also for sys.msgsize_max_recommended
2020-01-28 23:32:38 +03:00
Alexander Krotov
893eb8b73b
Move message size limits to constants
...
Corresponding C code:
d31c82478c/src/dc_context.h (L165)
2020-01-28 23:32:38 +03:00
Alexander Krotov
07a5ee7d2c
mimeparser: construct MimeMessage at the end of from_bytes()
...
This reduces the scope of code dealing with mutable structures.
2020-01-28 17:46:16 +03:00
Alexander Krotov
c7a300be2f
mimeparser: split parse_headers() into multiple functions
2020-01-28 17:46:16 +03:00
Alexander Krotov
ef842fca89
Increase python test timeout to 90 seconds
2020-01-28 17:44:34 +03:00
Alexander Krotov
bdbe9e1ca5
fix(python): add more checks for _thread_quitflag
2020-01-28 17:44:34 +03:00
Alexander Krotov
0c7f65222c
fix(python): add workaround for interrupt_idle race condition
2020-01-28 17:44:34 +03:00
dignifiedquire
a8fa644d25
feat: update to latest async-imap
2020-01-28 17:44:34 +03:00
Alexander Krotov
cf7ccb5b8c
configure: do not format! an empty string
2020-01-26 16:51:51 +01:00
B. Petersen
49fdd6fc5b
clarify documentation
2020-01-26 16:23:30 +01:00
B. Petersen
5e91c74304
instant success on simple qr-setup-contact
...
this changes the behavior when scanning a setup-contact qr-code.
instead of waiting, until the whole protocol is finished,
which may take something between 10 seconds and several minutes,
the dc_join_secure_join() returns instantly;
the uis typically show the created chat then.
the returned chat-id is the same than if we wait for the protocol to finish,
it is the opportunistic one-to-one chat-id, so no changes there.
all this works even when both devices are offline.
after dc_join_secure_join() returns, however,
the usual setup-contact continues. ux-wise, once the protocol finishes,
a system-info-messages is added to the chat (also unchanged),
this is directly visible, in the chat as well as in the chatlist.
while the prococol runs, the user can alredy send message to the chat,
or do other things in the app.
if the user scans a new qr-code while an existing protocol is not finished yet,
the old join will be aborted (however, of course, created chats are kept).
we could also allow multiple joins at the same time,
however, this would be much more effort that this little change
and i am not sure if it is worth the effort.
finally, if a verified-group shall be joined,
this is not possible instantly, this is not affected by this pr.
same for unverified-groups, however, this could maybe be improved,
but also here, not sure if it is worth the effort
(i think most scans are setup-contact scans)
2020-01-26 16:23:30 +01:00
Alexander Krotov
b83e6f6e7c
Simplify MsgId.is_special()
2020-01-26 16:19:01 +01:00
Alexander Krotov
2687777a82
Remove unused EmailAddress::new()
2020-01-26 16:18:34 +01:00
bjoern
918b8036ea
Merge pull request #1223 from deltachat/prep-beta24
...
prepare 1.0.0-beta24
2020-01-26 14:22:57 +01:00
B. Petersen
7ea0e4d4db
bump version to 1.0.0-beta.24
1.0.0-beta.24
2020-01-26 14:06:33 +01:00
B. Petersen
622c1705aa
changelog
2020-01-26 13:49:10 +01:00
Alexander Krotov
3a08929b05
Print "email" JSON-value if it has a wrong type
2020-01-26 12:28:42 +00:00