link2xt
c55a3d3873
refactor: flatten and simplify imports
2023-07-27 17:47:30 +00:00
link2xt
fc215ceb63
Merge v1.112.8
2023-04-20 15:09:55 +00:00
Hocuri
a806a218bf
Clippy; remove forgotten dbg! ( #4338 )
2023-04-18 18:52:01 +00:00
link2xt
37503dd3e8
JSON-RPC: add get_http_blob API
2023-04-18 13:50:50 +00:00
Hocuri
28fd27476f
Small verification fixes ( #4317 )
...
* Small performance improvement by not unnecessarily loading the peerstate
* Remove wrong info message "{contact} verified" when scanning a QR code with just an email
I think that this was a bug in the original C code and then slipped
through two refactorings.
2023-04-13 16:14:23 +00:00
Floris Bruynooghe
e3014a349c
Merge branch 'master' into flub/send-backup
2023-03-02 11:35:17 +01:00
link2xt
ade3d0d4eb
Add more documentation comments
2023-02-23 12:55:43 +00:00
Floris Bruynooghe
5833a9b347
fix doc comments
2023-02-22 18:50:32 +01:00
Floris Bruynooghe
fc64c33368
Use released version of sendme^Wiroh
...
This switches to a released version. It has been renamed from sendme
to iroh.
2023-02-22 16:05:24 +01:00
Floris Bruynooghe
8ae0ee5a67
Merge branch 'master' into flub/send-backup
2023-02-16 17:19:31 +01:00
Floris Bruynooghe
490a14c5ef
Remove the need for a directory for db export
...
Plus on import use the context directory. We can actually write there
just fine.
2023-02-16 16:06:41 +01:00
link2xt
ae19c9b331
Add more documentation
2023-02-15 21:56:33 +00:00
Floris Bruynooghe
d56e05a11a
fixup doc links
2023-02-14 13:27:15 +01:00
Floris Bruynooghe
e1087b4145
translate the string for qr code
2023-02-14 12:07:02 +01:00
Floris Bruynooghe
323535584b
implement ffi and use public sendme
2023-02-13 18:25:12 +01:00
Floris Bruynooghe
4c78553d90
Merge branch 'master' into flub/send-backup
2023-02-13 11:25:51 +01:00
link2xt
fa198c3b5e
Use SOCKS5 configuration for HTTP requests
2023-02-10 23:20:11 +00:00
Floris Bruynooghe
3c32de1859
Generate a QR code
2023-02-10 18:16:01 +01:00
Floris Bruynooghe
059af398eb
Allow decoding the QR code
2023-02-01 17:06:07 +01:00
Floris Bruynooghe
6044e5961b
Send and receive backup over network using QR code
...
This adds functionality to send and receive a backup over the network
using a QR code.
The sender or provider prepares the backup, sets up a server that
waits for clients. It provides a ticket in the form of a QR code
which contains connection and authentication information.
The receiver uses the QR code to connect to the provider and fetches
backup, restoring it locally.
2023-02-01 16:45:09 +01:00
link2xt
fcf73165ed
Inline format arguments
...
This feature has been stable since Rust 1.58.0.
2023-01-30 11:50:11 +03:00
link2xt
ae564ef702
Add documentation
2023-01-28 21:30:43 +00:00
link2xt
dab8acc7d8
Replace Result<_, Error> with Result<_>
2023-01-28 11:14:30 +00:00
link2xt
4615c84f31
Automatically group imports using nightly rustfmt
2023-01-19 13:13:25 +00:00
link2xt
89c8d26968
Add ContactAddress type
2023-01-11 23:07:47 +00:00
iequidoo
6d9d31cad1
Add timeouts to HTTP requests ( #3908 )
2023-01-11 14:29:49 -03:00
link2xt
e215b4d919
Return Option from Contact::add_or_lookup()
...
This allows to distinguish exceptions,
such as database errors, from invalid user input.
For example, if the From: field of the message
does not look like an email address, the mail
should be ignored. But if there is a database
failure while writing a new contact for the address,
this error should be bubbled up.
2023-01-10 20:43:20 +00:00
Sebastian Klähn
c562d17925
Add verifier information ( #3839 )
...
* add verifier information
* cleanup
Co-authored-by: bjoern <r10s@b44t.com >
* finish name change
* simple improvements & new ffi
* fixs
Co-authored-by: bjoern <r10s@b44t.com >
Co-authored-by: septias <xxsebastian.kleahnxx@gmail.com >
2022-12-27 10:41:15 +00:00
link2xt
2cd63234c1
Do not allow missing documentation by default
2022-12-13 23:45:12 +00:00
link2xt
98c16ddc4d
Remove Peerstate.to_save
2022-11-27 17:10:46 +00:00
link2xt
c7691fbebe
Use UPSERT when saving peerstates
...
This way there is no need to distinguish between creating
and updating peerstate.
2022-11-27 17:10:46 +00:00
link2xt
2ae9165bfb
Remove different states of ToSave in peerstate
2022-11-27 17:10:46 +00:00
Hocuri
f4ee86282e
Fix clippy warnings ( #3726 )
2022-11-03 15:44:35 +00:00
Simon Laux
110f56777d
implement dclogin scheme ( #3541 )
...
* start implementing dclogin scheme
* fix formatting
* add test for usename+extension@host cases
* add test with all advanced options
* add changelog
* jsonrpc api and regenerate node constants
* Update src/qr/dclogin_scheme.rs
Co-authored-by: Hocuri <hocuri@gmx.de >
* apply Hocuris comments from code review
* fix clippy
* Use .eq_ignore_ascii_case()
* rename internal function apply_from_login_qr
to configure_from_login_qr
* fix error message
* cargo fmt
* remove test todo comment
Co-authored-by: Hocuri <hocuri@gmx.de >
2022-09-29 18:32:17 +02:00
link2xt
14045a6162
ci: error on clippy warnings and check repl
2022-08-14 19:54:32 +02:00
Simon Laux
75960e8782
improve error handling for account setup from qrcode closes #3192 ( #3474 )
...
* improve error handling for account setup from qrcode
closes #3192
* replace issue id with pr id in changelog
* Update src/qr.rs
Co-authored-by: bjoern <r10s@b44t.com >
* show response when it's invalid in success case, too
* fix changelog entry
Co-authored-by: bjoern <r10s@b44t.com >
2022-07-30 09:57:08 +00:00
adbenitez
8c70393c90
fix other tests
2022-07-09 16:35:00 -04:00
adbenitez
68a15725d2
fix tests
2022-07-09 15:45:06 -04:00
link2xt
6ae278f735
cargo fmt
2022-07-09 19:25:04 +00:00
adbenitez
62a0ce29e9
decode draft
2022-07-09 15:19:39 -04:00
adbenitez
6b9aac5234
detect draft when scanning QR with mailto link as data
2022-07-09 05:42:39 -04:00
Hocuri
e60164b5f3
Add AEAP transition ( #3385 )
2022-07-05 14:20:01 +02:00
Friedel Ziegelmayer
3e2af8537c
refactor: remove dc_ prefix
...
* refactor: remove `dc_` prefix from mods
* refactor: remove dc_ prefix from functions
* fix: avoid temporary `File`s to avoid race conditions
* test(pgp): fix runtime usage in Lazy
Based on #3462
* fixup: undo some comment changes
2022-07-01 12:20:20 +02:00
Friedel Ziegelmayer
290ee20e63
feat: migrate from async-std to tokio
2022-06-27 14:05:21 +02:00
Floris Bruynooghe
f2c1e5c6e5
Replace some ContactId::new() calls with constants
2022-04-03 20:35:09 +02:00
Floris Bruynooghe
438940219e
Introduce a ContactId newtype
...
This makes the contact ID its own newtype instead of being a plain
u32. The change purposefully does not yet try and reap any benefits
from this yet, instead aiming for a boring change that's easy to
review. Only exception is the ToSql/FromSql as not doing that yet
would also have created churn in the database code and it is easier to
go straight for the right solution here.
2022-03-08 22:57:51 +01:00
link2xt
0e50bc1443
Fix 1.59 clippy warnings
2022-02-27 13:29:02 +00:00
link2xt
bfa641cea8
Error handling refactoring
...
- Replace .ok_or_else() and .map_err() with anyhow::Context where possible.
- Use .context() to check Option for None when it's an error
- Resultify Chatlist.get_chat_id()
- Add useful .context() to some errors
- IMAP error handling cleanup
2022-01-07 14:22:37 +00:00
link2xt
30cb0cbcfd
Reduce number of AsRef generics
...
They result in compilation of duplicate code.
2021-12-31 13:57:45 +00:00
link2xt
01db8d0130
test_utils: fix Alice's address in alice_keypair()
...
The key stored in test-data has @example.org identity.
2021-12-05 09:14:58 +00:00