Alexander Krotov
1468f67b9b
Warn about multiple From addresses only when necessary
...
The message says "only using first" so it should be printed right before the first address is taken with .get_index(0) operation.
2020-01-01 21:03:28 +00:00
Alexander Krotov
a31c6d82c9
Remove get_origin_by_id
2019-12-28 22:33:57 +00:00
B. Petersen
f73ba895af
remove some meanwhile unneeded allow-statements
2019-12-26 16:26:06 +00:00
holger krekel
01df2e2dc7
fix #1077 for unknown senders in a group chat (such as mailer daemons): don't recreate member list and show a special stockstring-ed message advising to hit "more info".
2019-12-20 11:59:10 +01:00
holger krekel
cc6aa3209c
fix the fix
2019-12-19 16:53:55 +01:00
holger krekel
76a86763dd
address @r10s comment
2019-12-19 16:53:55 +01:00
holger krekel
09fb039528
another reverse mut bites the dust
2019-12-19 16:53:55 +01:00
holger krekel
174d3300c4
not sure it's much better but using a static-sized array is probably better than a dynamically sized vec, thanks @dignifiedquire
2019-12-19 16:53:55 +01:00
holger krekel
6c14e429eb
Origin::is_verified() -> Origin::is_known() because this has nothing to do with verified groups or contacts
2019-12-19 16:53:55 +01:00
holger krekel
5f200c6bc3
don't pass incoming_origin as &mut as the caller doesn't need it
2019-12-19 16:53:55 +01:00
holger krekel
d52347ee1d
also don't pass "to_id" and don't make it mut inside add_parts
2019-12-19 16:53:55 +01:00
holger krekel
d0d9aa4400
- move CC-parsing next to To-parsing where it blongs
...
- pass to_ids and from_id as immutable to add_parts
2019-12-19 16:53:55 +01:00
holger krekel
c3d909c818
add a test that contacts are properly created and fix ordering in dc_receive_imf to pass the test
2019-12-19 16:53:55 +01:00
holger krekel
2c0f847d3e
remove too verbose logging for received messages
2019-12-16 23:12:17 +01:00
holger krekel
09c7ab1ee6
avoid addrparse to panic() and refactor according code a little with test.
2019-12-15 21:54:20 +01:00
holger krekel
4bacae3711
fix #1037 and simplify mdn-report related code and state
2019-12-15 22:18:34 +03:00
Alexander Krotov
789fc0a7e0
Resultify set_gossiped_timestamp
2019-12-13 12:51:44 +01:00
B. Petersen
0a9f880fb4
remove another superfluous return value
2019-12-13 01:17:48 +01:00
holger krekel
b8faf54f0b
remove superflous expression values
2019-12-13 01:17:48 +01:00
B. Petersen
f6861ca5f5
target comments from @flub and @dignifiedquire
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
c3fd0889e2
use tri-state ImageAction instead of Option<Option>
2019-12-13 01:17:48 +01:00
B. Petersen
ca63d6ba1c
handle incoming profile-images
2019-12-13 01:17:48 +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
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