link2xt
a432303576
Remove explicit .iter() and .iter_mut() calls in for loops
2023-03-12 14:06:42 +00:00
link2xt
7e5a8714a0
Add scripts/codespell.sh and spellcheck
2023-03-03 18:40:36 +00:00
iequidoo
d1923d68a5
Add a config option to sign all messages with Autocrypt header ( #3986 )
...
Although it does a little for security, it will help to protect from unwanted server-side
modifications and bugs. And now we have a time to test "multipart/signed" messages compatibility
with other MUAs.
2023-02-25 10:30:35 -03:00
link2xt
8f0d07b93c
Make smeared timestamp creation non-async
...
Using atomic operations instead,
so create_smeared_timestamp() can be used in sync functions,
such as SQL transactions.
2023-02-25 01:10:56 +00:00
Hocuri
641d102aba
Add dc_msg_set_subject() C FFI ( #4057 )
2023-02-19 13:42:39 +00:00
link2xt
ae19c9b331
Add more documentation
2023-02-15 21:56:33 +00:00
link2xt
71d9716117
Remove MimeMessage::from_bytes()
...
It was not used anywhere except the tests.
2023-02-14 10:57:57 +00:00
link2xt
b62c61329a
Update to base64 0.21
2023-01-31 19:24:20 +00:00
link2xt
fcf73165ed
Inline format arguments
...
This feature has been stable since Rust 1.58.0.
2023-01-30 11:50:11 +03:00
iequidoo
76aaecb8f2
Add gossips to all Securejoin messages ( #3836 )
...
It worked before only because of the gossip-by-timeout logic in the branch above. And that is why
not always.
2023-01-25 20:28:49 -03:00
link2xt
d522b7ef1e
mimefactory: do not check if the key exists before rendering Autocrypt-Gossip
...
`render_gossip_header()` returns `None` in this case anyway.
2023-01-24 10:06:52 +00:00
link2xt
4615c84f31
Automatically group imports using nightly rustfmt
2023-01-19 13:13:25 +00:00
link2xt
1c44135b41
Remove deprecated attach_selfavatar config
...
According to the comment it was added in Dec 2019
with an intention to remove it "after some time".
2023-01-12 20:52:47 +00:00
iequidoo
5f883a4445
Prepare to remove "vc-contact-confirm-received", "vg-member-added-received" messages from Securejoin
...
protocol
2023-01-12 15:13:30 -03:00
iequidoo
d644988845
Securejoin: Fix adding and handling Autocrypt-Gossip headers ( #3836 )
...
- If bcc_self is set, gossip headers must be added despite of the number of group members.
- If another device observes Secure-Join, instead of looking for Secure-Join-Fingerprint in
"vg-member-added"/"vc-contact-confirm" messages it must use keys from Autocrypt-Gossip headers as
described in the Countermitm doc
(https://countermitm.readthedocs.io/en/latest/new.html#joining-a-verified-group-secure-join ).
2023-01-12 15:13:30 -03:00
iequidoo
27c6cfc958
Log messages in info!() if DCC_MIME_DEBUG is set
...
Using println!() leads to reordered output on terminal. Moreover, println!() prints to stdout which
is not for logging.
2023-01-12 15:13:30 -03:00
link2xt
89c8d26968
Add ContactAddress type
2023-01-11 23:07:47 +00: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
link2xt
58ba107d01
Resultify Message::get_filebytes()
2023-01-07 01:00:30 +00:00
link2xt
256ef7c5ec
Add missing documentation for location streaming
2022-12-27 17:31:24 +00:00
link2xt
89b7ce4c4e
Move format_flowed to a separate crate
...
This makes it possible to fuzz test the functions
without exposing the module interface in the deltachat core
interface.
Also ensure that format_flowed will not grow a dependency
on deltachat core types.
2022-12-26 19:21:44 +00:00
link2xt
3023d3c358
Don't use deprecated chrono functions
2022-12-11 23:43:00 +00:00
Hocuri
fc386f4fa1
Completely disable Autocrypt & Authres-checking for mailing lists ( #3765 )
...
* Because both only make problems with mailing lists, it's easiest to just disable them. If we want, we can make them work properly with mailing lists one day and re-enable them, but this needs some further thoughts.
Part of #3701
* Use load_from_db() in more tests
* clippy
* Changelog
* Downgrade warning to info, improve message
* Use lifetimes instead of cloning
2022-12-05 19:00:56 +00:00
iequidoo
f6a502a8e3
Remove the remaining AsRef<str> ( #3669 )
...
Using &str instead of AsRef is better for compile times, binary size and code complexity.
2022-11-28 17:02:05 -03:00
Hocuri
f4ee86282e
Fix clippy warnings ( #3726 )
2022-11-03 15:44:35 +00:00
link2xt
e5c9fea52d
Implement reactions
...
Co-Authored-By: bjoern <r10s@b44t.com >
Co-Authored-By: Simon Laux <mobile.info@simonlaux.de >
2022-10-22 09:59:43 +00:00
link2xt
450d113993
Fix Rust 1.64 clippy warnings and tests
2022-09-25 03:17:00 +00:00
Sebastian Klähn
065c7af9a0
Fix typos & add documentation ( #3569 )
...
* fix typo
* tips & typos
* improve doc string
* update documentation
* fmt
* fix typo
2022-09-06 11:15:49 +02: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
link2xt
525b04e69e
Format message lines starting with > as quotes
...
This makes quotes created by user display properly in other MUAs like
Thunderbird and not start with space in MUAs that don't support format=flowed.
To distinguish user-created quotes from top-quote inserted by Delta
Chat, a newline is inserted if there is no top-quote and the first
line starts with ">".
Nested quotes are not supported, e.g. line starting with "> >" will
start with ">" on the next line if wrapped.
2022-06-21 00:28:33 +00:00
link2xt
776a3ecd1f
mimefactory: use async_std instead of std
...
Read files asynchronously to avoid blocking threads.
2022-06-12 18:38:10 +00:00
link2xt
0a51db3005
Enable clippy::unused_async lint
2022-06-04 17:46:17 +00:00
link2xt
ce6ec64069
Do not assign group IDs to ad hoc groups
2021-11-07 15:55:47 +00:00
Hocuri
18126b42cb
Gossip to secondary addrs in group again
2022-04-26 18:56:35 +02:00
Hocuri
3b6fc9959f
Introduce SecondaryAddrs config and make stuff work
2022-04-26 18:56:35 +02:00
link2xt
a63464765c
dc_receive_imf: remove Received: based draft detection heuristic
...
Proper draft detection was implemented in
bf7f64d50b
Removing this heuristic also removes the need to pass IMAP folder name
around.
2022-04-17 00:00:00 +00:00
holger krekel
9c04ed483e
Streamline access/working with configured params and configured addr ( #3219 )
2022-04-16 09:50:26 +02:00
Floris Bruynooghe
f9ee70aa2e
Minor cleanup of Viewtype
...
Provide checking for attachment as a method and move it to the message
module. The method is a lot easier to read and have correct
expectations about.
2022-03-16 10:46:58 +01:00
Hocuri
50f13cb84b
Set X-Microsoft-Original-Message-ID on outgoing emails for amazonaws ( #3077 )
2022-03-13 14:39:49 +01:00
link2xt
7ab6d95b6c
mimefactory: place common IMF headers at the top of the message
...
This moves most common headers like From, To, Subject etc. defined in
the Internet Message Format standard at the top of the message
in the same order as used in RFC 5322.
2022-02-23 17:51:15 +00:00
link2xt
afd8c0d879
Add smtp table
...
It replaces SendMsgToSmtp job.
Prepared outgoing SMTP payloads are stored in the database now rather
than files in blobdir.
2022-01-01 19:14:53 +00:00
Hocuri
1e9e308df3
Fix clippy errors ( #2973 )
2022-01-14 17:34:19 +01:00
B. Petersen
327328412a
let render_webxdc_status_update_object() return an Option; add a test for that
2022-01-13 11:11:50 +01:00
B. Petersen
42f9ef00b9
wrap update-item-array into an update-object on the wire; this allows to add other members in the future. the updates the peers see is not changed
2022-01-13 11:11:50 +01:00
B. Petersen
8e8c10c438
rename w30 to webxdc
2022-01-13 11:11:50 +01:00
B. Petersen
e30c535f18
wrap payload to a json-structure that can be extended as needed
2022-01-13 11:11:50 +01:00
B. Petersen
de7706f622
wrap payloads to json-object on the wire
2022-01-13 11:11:50 +01:00
B. Petersen
de20e4c9dd
basic w30 sending and receiving
2022-01-13 11:11:50 +01:00