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
17ce02a87c
add some comment and remove some code after quick a/v with @r10s
2019-12-09 21:45:01 +01:00
holger krekel
4dc5e0378f
fix final problem, tests pass now
2019-12-09 20:25:46 +01:00
holger krekel
c33797ff84
remove reverse "check_self" return
2019-12-09 19:41:58 +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
0e8df7d633
use automatic serialization, thanks @link2xt for the tip
2019-12-09 15:43:06 +03:00
holger krekel
e4155e0e16
remove lookup_field in favor of get(HeaderDef::...) with all headers defined in headerdef.rs
2019-12-09 15:43:06 +03:00
Alexander Krotov
a99b96e36e
Use bool for from_id_blocked flag
2019-12-09 09:54:46 +01:00
Alexander Krotov
0889467c7b
Use bool for hidden flag
2019-12-09 09:54:46 +01:00
Alexander Krotov
d141e228de
Use bool for incoming flag
2019-12-09 09:54:46 +01:00
Alexander Krotov
9b15c42801
Use bool for allow_creation flag
2019-12-09 09:54:46 +01:00
Alexander Krotov
a781b631e1
Return bool from is_reply_to_{known_message,messenger_message}
2019-12-09 09:54:46 +01:00
Alexander Krotov
08af5c8e09
Replace some integers with bools in dc_receive_imf.rs
2019-12-09 09:54:46 +01:00
holger krekel
d6d94adab0
remove encrypted attr from mimeparser.
2019-12-08 00:47:46 +01:00
holger krekel
099cc9f727
remove subject attribute
2019-12-08 00:47:46 +01:00
holger krekel
61f8d6f171
remove is_send_by_messenger attr from mimeparser
2019-12-08 00:47:46 +01:00
holger krekel
86ace1a4af
- test and fix receiving text/html attachment in multipart/mixed situations
...
They are now preserved as attachment, instead of diving into parsing-html
and simplifying.
- adapt mime-debugging
2019-12-07 22:56:54 +01:00
holger krekel
9e2a96675d
try fix incoming text/html in multipart/mixed
2019-12-07 22:56:54 +01:00
holger krekel
ec81d29580
fix multi-line subject encoding and introduce MIME debugging env var
2019-12-05 19:29:12 +01:00
holger krekel
2a081aac2b
fix grpid extraction from In-Reply-To and References headers
2019-12-05 01:18:53 +01:00
holger krekel
9b10f31fb3
more cleanups
2019-12-05 00:56:09 +01:00
holger krekel
63ad7b8d34
make to_ids const in some places, and simplify returns from create_or_lookup_adhoc_group
2019-12-05 00:56:09 +01:00
holger krekel
86baaab2e9
get rid of unsafe and indirect return values for create_or_lookup.*group
2019-12-05 00:56:09 +01:00
Alexander Krotov
ad87b7c4a5
Fix clippy warnings
2019-12-03 20:20:52 +03:00
dignifiedquire
db88212a64
refactor: unsafe, CStr and libc moved out
2019-12-03 12:25:22 +01:00
dignifiedquire
43074464ac
cleanup mimeparser and use mime
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
734bbff04d
cleanup and finish missing parts
2019-12-03 12:25:22 +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
dignifiedquire
d2de2aef07
first compile
2019-12-03 12:22:55 +01:00
Alexander Krotov
3a08c92433
Replace u32 with a PeerstateKeyType enum
2019-12-01 17:07:33 +01:00
Floris Bruynooghe
642276c90c
Attempt to fix race in securejoin handling
...
The ongoing process of dc_join_securejoin() was stopped before the
corresponding chat was created. This resulted in a race-condition
between the sqlite threads executing the creation and query
statements, thus sometimes the query would not find the group and
mysteriously fail.
Tripple-programming with hpk & r10s.
2019-11-30 00:48:14 +01:00
B. Petersen
b6bb5b79af
target comments of @flub
2019-11-28 23:56:12 +01:00
B. Petersen
1d996d9ed9
track created_timetamp for chats
2019-11-28 22:38:48 +01:00
Alexander Krotov
59700cb477
Restore peerstate constants from C core
2019-11-27 05:41:54 +01:00
Alexander Krotov
6412adcfa7
Use forked version of async-imap and imap-proto
...
This attempts to fix fetching when the inbox contains mail with non-utf8 subjects.
2019-11-24 12:05:30 +01:00
Alexander Krotov
51a804a80f
location: use "bool" for "independent" argument
2019-11-06 14:17:59 +03:00
B. Petersen
67e2e4d415
target comment of @hpk42
2019-11-04 13:20:35 +01:00
B. Petersen
8c2efa707a
name special contact-ids where easily possible
...
the point of this pr is to get an overview
how and where DC_CONTACT_ID_DEVICE is used,
to prepare introducing a device-"chat".
i did not change the sql statements for now
as this would require some more refactoring
and has the potential to introduce bugs.
2019-11-04 13:20:35 +01:00
B. Petersen
70cef68eeb
display failed messages
2019-11-03 01:19:29 +01:00
holger krekel
c5f64d2988
address @link2xt comments
2019-11-03 00:21:27 +01:00
holger krekel
d24a982757
fix various location-streaming issue, test passes now
2019-11-03 00:21:27 +01:00
B. Petersen
e4b3e23769
prefer to_string_lossy() over as_str() as the latter pancis on non-wellformatted utf-8
2019-11-01 00:46:48 +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
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
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