bjoern
0202ed7ca8
Merge pull request #1735 from deltachat/invite-call-api
...
add APIs for videochats
2020-07-26 18:11:02 +02:00
Hocuri
0131980372
Fix #1739 LastSubject should not be updated for read receipt ( #1744 )
...
* Fix #1739 LastSubject should not be updated for read receipt
* .
2020-07-23 11:57:54 +02:00
B. Petersen
04c90e2d87
differ between webrtc-instance-pattern and webrtc-rooms generated from that
2020-07-23 11:52:02 +02:00
B. Petersen
39364d1f6c
prefix webrtc_instance by type, unify naming
2020-07-22 23:36:20 +02:00
B. Petersen
b9d3e6b342
send videochat-url and -invitation also through header
2020-07-22 23:36:20 +02:00
Alexander Krotov
667364b90e
Mark location-only messages as auto-generated
2020-07-15 02:16:20 +03:00
Hocuri
ee7b7eb4f2
Once more, fix #1575 Messages sent by DeltaChat trigger spam filters due to incorrect/non-compliant formatting options
2020-07-11 21:10:06 +03:00
Alexander Krotov
7d048ac419
Add autodelete timers
2020-06-29 23:04:34 +03:00
Floris Bruynooghe
9d7b756ddb
Unify some testing interfaces
...
This tidies up our testing tools a little bit. We had several
functions which through various changes ended up doing the same and
some more which did very similar stuff, so I merged them to have
things simpler. Also moved towards methods on the TestContext struct
while cleaning this up anyway, seems like this structure is going to
stay around for a bit anyway.
The intersting change is in `test_utils.rs`, everything else is just
updating callers. A few tests used example.org which I moved to
example.com to be able to re-use more configuration of the test
context.
2020-06-20 14:37:41 +02:00
Hocuri
84be82c670
Add test
2020-06-10 13:22:03 +02:00
Hocuri
3370c51b35
Add test
2020-06-10 13:22:03 +02:00
Hocuri
dcfed03702
MISSING_MIME_VERSION, MIME_HEADER_CTYPE_ONLY
2020-06-10 13:22:03 +02:00
Hocuri
c18705fae3
Improve test
2020-06-07 12:11:52 +02:00
Hocuri
22973899b8
Assume that thare always is Config::Addr set
2020-06-07 12:11:52 +02:00
Hocuri
f172e92098
Repair test
2020-06-07 12:11:52 +02:00
Hocuri
e1ff657c78
Dont Hardcode 'Delta Chat'
2020-06-07 12:11:52 +02:00
Hocuri
3e6cd3ff34
Adapt to async, set first subject to 'Message from <sender name>'
2020-06-07 12:11:52 +02:00
Hocuri
f8680724f8
Set subject to Re: <last subject> for better compability with normal MUAs
...
The code in dc_receive_imf.rs looks a bit funny, an alternative would be a function:
fn upcate_chat_last_subject(context: &Context, chat_id: &ChatId, mime_parser: &mut MimeMessage) -> Result<()> {
let mut chat = Chat::load_from_db(context, *chat_id)?;
chat.param.set(Param::LastSubject, mime_parser.get_subject().ok_or_else(||Error::Message("No subject in email".to_string()))?);
chat.update_param(context)?;
Ok(())
}
2020-06-07 12:11:52 +02:00
dignifiedquire
2adeadfd73
fix: avoid blocking on expensive pgp operations
2020-05-25 00:17:01 +02:00
dignifiedquire
8a7923c974
Merge remote-tracking branch 'origin/master' into feat/async-jobs
2020-05-13 18:29:22 +02:00
B. Petersen
459fec56db
protect '--' in message from being treated as a footer-beginning
2020-04-27 16:47:16 +02:00
Alexander Krotov
daf40fde82
mimefactory: use .next() instead of .nth(0)
2020-04-13 23:02:57 +03:00
holger krekel
1855f84fe0
fix bug in that remove-contact failed on new groups where we didn't have the peerstate of the removed-contact yet
2020-04-13 17:39:31 +02:00
Friedel Ziegelmayer
24f4cbbb27
refactor: replace failure
...
- failure is deprecated
- thiserror for deriving Error impl
- anyhow for highlevel error handling
2020-04-10 22:39:28 +02:00
dignifiedquire
49b2f80ded
Merge remote-tracking branch 'origin/master' into feat/async-jobs
2020-03-26 16:52:07 +01:00
B. Petersen
17ff1ab372
this corrects the To:-list for group-messages with only SELF as member.
...
before, the list was empty
and trying to send to groups that only contain SELF lead to a crash.
in theory, this happens for both, bcc_self enabled or not, however,
if bcc_self was disabled (default setting),
things worked as the whole mimerendering was skipped on a higher level.
also, the saved-messages-chat was not affected as this was checked explicitly.
this pr changes the mimerendering so that From: is used as To:
if there is no recipient-list and the messasge will be sent to SELF only.
2020-03-23 01:48:27 +01:00
dignifiedquire
1846f20f6e
upgrade repl
2020-03-21 14:24:41 +01:00
dignifiedquire
7140898db9
async file io
2020-03-14 16:26:15 +01:00
dignifiedquire
818e921192
it compiles
2020-03-14 15:17:47 +01:00
dignifiedquire
6ea1d665bb
start making sql async
2020-03-14 15:17:23 +01:00
Alexander Krotov
bcbf192bbc
Remove deprecated Chat-Group-Image header
2020-02-17 13:41:50 +01:00
Alexander Krotov
b80360b7da
Pass avatar file path to build_selfavatar_file as &str
2020-02-15 22:20:05 +03:00
Alexander Krotov
2753883687
Rename add_selfavatar into attach_selfavatar to match field name
2020-02-15 21:22:25 +03:00
Alexander Krotov
aadeb3b87e
job: do not render messages without recipients
2020-02-08 16:58:55 +01: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
a7477516d1
mimefactory: factor out get_location_kml_part
2020-01-25 17:44:19 +00:00
Alexander Krotov
64026fde7c
Store main part of the message outside of "parts" vector
2020-01-22 04:28:35 +00:00
Alexander Krotov
adcdae4abe
Factor get_message_kml_part out of render_message
2020-01-22 04:28:35 +00:00
Alexander Krotov
84a5276ab0
Fix build
...
0f52f63863 rebase broke the build
2020-01-21 17:17:51 +03:00
Alexander Krotov
1732c3b350
Reduce the scope of clippy exceptions
...
This prevents creation of new overly complex functions.
2020-01-21 14:49:53 +01:00
Alexander Krotov
0f52f63863
Add "Auto-Submitted: auto-replied" header to MDNs
...
This header is specified in RFC 3834.
2020-01-21 16:29:18 +03:00
Floris Bruynooghe
186f5553b8
Introduce a ChatId newtype
...
This doesn't try and change the way ChatId is used. It still allows
creating them with 0 and lets some function use a ChatId(0) as error
return.
2020-01-19 23:42:08 +01:00
Alexander Krotov
b50d2358d3
Rename X-Additional-Message-IDs into Additional-Message-IDs
...
X- prefixes are deprecated in https://tools.ietf.org/html/rfc6648
2020-01-20 00:35:11 +03:00
Alexander Krotov
9d4437a7f5
Make it possible to add X-Additional-Message-IDs to MDNs
2020-01-20 00:35:11 +03:00
Alexander Krotov
79bc34ed76
Move check for blocked contact from mimefactory to SendMdn job
2020-01-20 00:35:11 +03:00
Alexander Krotov
1ab3fba212
Move check for enabled MDNs from message rendering to MDN job
2020-01-20 00:35:11 +03:00
Alexander Krotov
3cd0bbc0f4
Move foreign_id handling out of mimefactory
2020-01-20 00:35:11 +03:00
Alexander Krotov
213c5df706
mimefactory: remove unused "increation" field
2020-01-16 23:37:53 +03:00
B. Petersen
73c69c3f93
fix optimisation
2020-01-13 01:43:27 +01:00