Alexander Krotov
d6cc0694f0
Move Chat from MimeFactory to Loaded::Message
2020-01-10 06:42:36 +00:00
Alexander Krotov
9738515129
Construct immutable MimeFactory in from_msg
2020-01-10 06:42:36 +00:00
Alexander Krotov
b05ee10f41
Return Err from MimeFactory::from_msg on database errors
2020-01-10 06:42:36 +00:00
Alexander Krotov
67d85f0f86
Make all MimeFactory fields private
2020-01-10 06:42:36 +00:00
Alexander Krotov
12cd56e3e8
Rename type_0 into viewtype
2020-01-08 19:00:45 +03:00
Alexander Krotov
cb6376094c
Get rid of DC_FP_* constants
2020-01-01 20:53:31 +00:00
Alexander Krotov
ea03e4d34a
Send location.kml instead of message.kml for streaming
...
message.kml is sent when user manually selects a point on the map to
point to a location.
2019-12-30 17:20:46 +01:00
Alexander Krotov
980bb35441
refactor(mimefactory): use iter::repeat_with instead of (0..)
2019-12-20 12:55:25 +01:00
Alexander Krotov
f2f8898004
fix(mimefactory): wrap base64-encoded attachments to 78 columns
...
RFC5322 requires emails to be wrapped to 78 columns excluding CRLF.
2019-12-20 09:11:35 +01:00
Alexander Krotov
66adfa074b
Do not cache gossiped_timestamp
2019-12-13 12:51:44 +01:00
Alexander Krotov
9e309132f8
Only add gossip headers if chat has more than one peer
2019-12-13 12:51:44 +01:00
Alexander Krotov
88923173c2
Set is_gossiped to true when Autocrypt-Gossip header is added
2019-12-13 12:51:44 +01:00
B. Petersen
3bb58be2b5
add missing delete header
2019-12-13 01:17:48 +01:00
B. Petersen
409c96e571
add compatiblity headers
2019-12-13 01:17:48 +01:00
B. Petersen
d681fa6cba
use Chat-User-Avatar and Chat-Group-Avatar
...
we change the name on the wire as the old Chat-Group-Image header
could not be used on random mails, it was the marker for a "Changed" message,
if we would keep this names, things will fail for exising installations
as messages are dropped and a "Group image changed" message is shown instead.
2019-12-13 01:17:48 +01:00
B. Petersen
7c3d8356c4
always handle incoming group-avatars
2019-12-13 01:17:48 +01:00
B. Petersen
ff29b84146
share group image on group creation, fixes #602
2019-12-13 01:17:48 +01:00
B. Petersen
7f723ef2bf
attach selfavatar
2019-12-13 01:17:48 +01:00
holger krekel
1819712667
make sure we send out <> around message-id's in references and in-reply-to
2019-12-10 21:25:36 +01:00
holger krekel
69a596fdff
fix #994 -- avoid double-attachment messages in local chats
2019-12-10 21:25:36 +01:00
holger krekel
d0a04be825
remove hack for decoding, and add a test that encoding/decoding works now
2019-12-10 01:35:09 +01:00
holger krekel
054cf98754
try to work around mailparser not decoding rfc2047 displaynames
...
this pulls in changes in our fork of rust-email to also correctly
generate rfc2047 encoding
2019-12-10 00:26:46 +01:00
holger krekel
5f916f5a9c
- create and use a ContactIds type as an ordered set instead of "Vec<u32>".
...
- recreate the group list more carefully, fixes #985
- resultify a few functions in the dc_receive pipeline
- don't quote displaynames in email-addresses, use utf8, preliminrarily addresses #976
2019-12-09 16:29:24 +01:00
holger krekel
6edb525540
snap
2019-12-09 14:16:46 +01:00
holger krekel
9e2a96675d
try fix incoming text/html in multipart/mixed
2019-12-07 22:56:54 +01:00
holger krekel
212848409f
use encoded-words crate, which friedel ported from python
2019-12-05 19:29:12 +01:00
holger krekel
e45ee0eb81
try fix filename encoding bug -- fails in one test
2019-12-05 19:29:12 +01:00
dignifiedquire
3b8e37de58
switch to quoted-printable, which is already used by mailparse
2019-12-05 19:29:12 +01:00
holger krekel
c2e8cc9bd6
use rfc2047 crate from @valodim and remove dc_strencode.rs completely
2019-12-05 19:29:12 +01:00
holger krekel
ec81d29580
fix multi-line subject encoding and introduce MIME debugging env var
2019-12-05 19:29:12 +01:00
dignifiedquire
609b5588fa
fix(mimefactory): only send Autocrypt-Gossip headers on encrypted messages
2019-12-04 13:58:33 +01:00
Alexander Krotov
ad87b7c4a5
Fix clippy warnings
2019-12-03 20:20:52 +03:00
holger krekel
2df43b6c5d
avoids double-semicolon problem leading to empty messages in pre-master releases
2019-12-03 16:55:53 +01:00
holger krekel
1c5a3e6698
remove debug logging and fix update_gossip_headers location
2019-12-03 12:25:22 +01:00
dignifiedquire
1e7afa9da0
fix chat-verified
2019-12-03 12:25:22 +01:00
dignifiedquire
e985887739
fix content-type setting and some encryption
2019-12-03 12:25:22 +01:00
dignifiedquire
d5287256e0
fix various parsing and sending issues
2019-12-03 12:25:22 +01:00
dignifiedquire
5adde12dff
implement mdn rendering
2019-12-03 12:25:22 +01:00
dignifiedquire
5079e15401
restructure mimefactory
2019-12-03 12:25:22 +01:00
dignifiedquire
9196ed1e9f
remove dead code
2019-12-03 12:22:55 +01:00
dignifiedquire
c69a2406ad
integrate encryption when sending
2019-12-03 12:22:55 +01:00
dignifiedquire
47197aa495
Implement message generation using lettre_email
2019-12-03 12:22:55 +01:00
dignifiedquire
dbd6303829
remove mmime
2019-12-03 12:22:55 +01:00
B. Petersen
4e6d0c9c69
fix places where string-cmp was used instead of addr_cmp() for email-address-comparison
2019-11-30 01:49:45 +01:00
Alexander Krotov
59700cb477
Restore peerstate constants from C core
2019-11-27 05:41:54 +01:00
holger krekel
d774430ec2
simplify location parsing
2019-11-03 00:21:27 +01:00
holger krekel
d74c70a57c
fix and streamline location-outgoing pipeline
2019-11-03 00:21:27 +01:00
holger krekel
b0ccbc36d9
fix FFI-behaviour: return default empty messages when asked for special ones
2019-10-30 19:29:13 +01:00
Floris Bruynooghe
c8d296ea0e
A MsgId newtype
...
This more strongly types the ubiquitous message id type by no longer
making it an integer. It keeps the actual ID opaque. Only for the
generic job API the number keeps being used. Some locations also need
to create it from an integer and call MsgId::new().
2019-10-29 15:30:53 +01:00
Alexander Krotov
7916a7fa07
Fix spelling of Param::GuaranteeE2ee
2019-10-27 11:51:59 +01:00