Alexander Krotov
cfa69cf35a
Add Params::set_cmd and use SystemMessage constants
2019-10-26 14:04:08 +02:00
B. Petersen
dced1932b3
if show_emails=ALL, show belonging contact-requests directly in the chatlist
2019-10-24 11:12:35 +02:00
B. Petersen
79a08f96c5
make ShowEmails an enum, use constant for trash
2019-10-24 11:12:35 +02:00
björn petersen
f5d98c1db6
Merge pull request #742 from deltachat/add-self-to-group
...
allow adding SELF to group
2019-10-23 22:13:25 +02:00
B. Petersen
df4273e986
fix logic error: adding a member to a group is okay if a real contact exists or for SELF
2019-10-23 14:03:42 +02:00
Floris Bruynooghe
5d79690260
Add Params::get_file(), ::get_path() and ::get_blob()
...
Turns out that anyone that uses these either justs wants a file or
wants a blob. Consolidate those patterns into one place and simplify
all the callers.
2019-10-22 18:54:09 +02:00
Floris Bruynooghe
6c9e16d31a
Introduce a BlobObject type for blobs
...
This creates a specific type for blobs, with well defined conversions
at the borders. It also introduces a strong type for the Param::File
value since that param is often used used by the public API to set
filenames using absolute paths, but then core changes the param to a
blob before it gets to the database.
This eliminates a few more functions with very mallable C-like
arguments behaviour which combine a number of operations in one.
Because blob filenames are stored so often in arbitrary strings this
does add more code when receiving those, until the storage is fixed.
File name sanitisation is now deletated to the sanitize-filename crate
which should do a slightly better job at this.
2019-10-22 18:54:09 +02:00
B. Petersen
f0fc50d5a9
adapt to reality
2019-10-22 18:37:47 +02:00
björn petersen
7a4a4389fa
Merge pull request #739 from deltachat/location
...
Rustify location.rs
1.0.0-beta.2
2019-10-22 18:01:35 +02:00
holger krekel
131889cdfb
add beta2 changelog, bump version to 1.0.0-beta.2
2019-10-22 17:50:23 +02:00
Alexander Krotov
bed14d5c02
Initialize continue_streaming with false
...
Otherwise this variable is constant.
2019-10-22 13:24:23 +03:00
Alexander Krotov
d3c831a0a2
Replace continue_streaming int with bool
2019-10-22 13:24:23 +03:00
Alexander Krotov
0007c12dea
Replace FORCE_SCHEDULE #define from C core with bool
2019-10-22 13:24:23 +03:00
B. Petersen
049077f13b
reconnect on io errors and broken pipes
2019-10-22 09:58:05 +02:00
holger krekel
e17c69f89c
actually try connecting, instead of just preparing the connect
2019-10-21 23:17:18 +02:00
holger krekel
4b24f32d6c
add tests and API for is_forwarded
2019-10-21 23:00:42 +02:00
Friedel Ziegelmayer
f404e31e30
chore(deps): switch back to rust-imap master ( #735 )
...
chore(deps): switch back to rust-imap master
2019-10-21 18:48:50 +02:00
dignifiedquire
7455b26ab2
chore(deps): switch back to rust-imap master
2019-10-21 16:52:43 +02:00
holger krekel
ee3259a74d
fix rust-imap dep and remove Xargo.lock -- or is the latter used for anything?
2019-10-21 11:14:38 +02:00
dignifiedquire
391ba67ad5
update to fixed rust-imap for yandex
2019-10-20 13:10:17 +02:00
dignifiedquire
54f8c68151
switch to master
2019-10-20 13:10:17 +02:00
dignifiedquire
4a2e1897a6
fix(smtp): use correct auth mechanisms
2019-10-20 13:10:17 +02:00
dignifiedquire
076616bfb9
fix(imap): read server greeting
2019-10-20 13:10:17 +02:00
Dmitry Bogatov
a9dd78f622
Narrow return type of location::set: cint -> bool
2019-10-19 22:38:43 +02:00
B. Petersen
d16bdafaf0
simplify calling Simplifier, get is_forwarded flag correctly
2019-10-19 22:34:14 +02:00
B. Petersen
4f126c5292
show forwarded-state in repl-tool
2019-10-19 22:34:14 +02:00
B. Petersen
7b958a20fd
prefer to_string_lossy() over as_str() as the latter pancis on non-wellformatted utf-8
2019-10-19 22:30:25 +02:00
B. Petersen
4519071718
prefer to_opt_string_lossy() over as_opt_str() as the latter pancis on non-wellformatted utf-8
2019-10-19 22:30:25 +02:00
B. Petersen
0108b4724e
add function to convert NULL-able c-string to Option<String>
2019-10-19 22:30:25 +02:00
B. Petersen
bb08b39c71
remove duplicated code
2019-10-19 22:30:25 +02:00
B. Petersen
1908ac428b
mark own forwarded messages as such
2019-10-17 19:41:17 +02:00
Alexander Krotov
dfc453c1d1
Merge pull request #727 from deltachat/strndup
...
Remove unused strndup
2019-10-17 12:33:51 +03:00
Alexander Krotov
9fa6289093
Remove unused strndup
2019-10-17 03:18:08 +03:00
björn petersen
6f92ce0fa8
Merge pull request #722 from deltachat/oauth2-even-better
...
make oauth2.get_addr work
2019-10-16 10:58:04 +02:00
B. Petersen
cde2c9137f
make oauth2.get_addr work
...
oauth2.get_addr is used for gmail-oauth2
to retrieve the address really authorized in the oauth2 process.
2019-10-16 00:57:58 +02:00
björn petersen
120524ae00
Merge pull request #720 from deltachat/make-oauth2-better
...
make oauth2 POST successfully
2019-10-15 18:29:27 +02:00
holger krekel
7bb73f45a5
add LP smtp/imap connection flags to const
2019-10-15 13:46:39 +02:00
Dmitry Bogatov
2d0f563dfe
Replace magic constant with symbolic name
2019-10-15 13:45:08 +02:00
VP-
cfe3c69f00
Don't use hard-coded email addresses in tests
2019-10-15 13:10:55 +02:00
B. Petersen
c266d2ca0d
use POST instead GET to init or refresh oauth2 tokens
2019-10-15 00:22:37 +02:00
B. Petersen
85fc696975
more specific and distinguishable oauth2 error message
2019-10-15 00:20:08 +02:00
Alexander Krotov
9bf8bed0c3
Merge pull request #685 from deltachat/outlook_unit_test
...
Unit test Outlook autodiscovery
2019-10-14 21:34:43 +00:00
Alexander Krotov
c4d55f6ba4
auto_outlook: convert <Protocol> type to lowercase before comparison
2019-10-14 19:21:29 +03:00
B. Petersen
766d7cbd3a
add some missing comments
2019-10-14 15:11:33 +02:00
Alexander Krotov
8e0e1bd58d
Add test for Outlook autodiscovery without redirect
2019-10-14 13:42:35 +03:00
Alexander Krotov
a471ccc95a
Test Outlook autoconfigure redirect parsing
2019-10-14 01:24:20 +03:00
Alexander Krotov
daac8c4824
rustfmt
2019-10-14 01:24:20 +03:00
Alexander Krotov
59c22a5626
Move Outlook autodiscovery into separate function
2019-10-14 01:24:19 +03:00
Alexander Krotov
5154f27f72
Merge pull request #712 from deltachat/moz_autoconfigure_unit
...
auto_mozilla: split XML parsing into separate function
2019-10-13 16:34:05 +00:00
Alexander Krotov
5f7279eb85
auto_mozilla: server is only configured if the type matches
...
This fixes the testcase introduced in previous commit
2019-10-12 17:07:20 +03:00