bjoern
6ba45c88ec
Merge pull request #1281 from deltachat/fix-pin-test
...
fix pinning test by forcing a reliable order
2020-02-16 01:32:37 +01:00
Alexander Krotov
5a4040cf0b
cargo fmt
2020-02-16 03:22:30 +03:00
Alexander Krotov
b54f580e66
mimeparser: allow "inline" attachments
...
RFC 2183 specifically allows filenames to be specified for MIME parts
with "inline" Content-Disposition.
Previously we treated such attachments as an error, causing the whole
message parsing to fail. Now it is only an error if Content-Disposition
cannot be parsed.
MIME parts with filename are now considered to be attachments
regardless of their Content-Disposition type. However, "attachment"
Content-Disposition is still processed differently: we generate a
filename for it even if it is not specified.
2020-02-16 03:22:30 +03:00
B. Petersen
a9ac69fe9c
fix pinning test by forcing a reliable order
2020-02-16 00:55:13 +01:00
B. Petersen
5c52b5e404
fix order of shared chats, move pinned up
...
we forgot to respect the new pinned-state for the list of shared chats
as it is shown eg. in the profile of a contact.
2020-02-15 21:15:01 +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
bjoern
ced73ffb14
Merge pull request #1248 from deltachat/pinned_chats
...
feat: pin chats
2020-02-15 00:15:33 +01:00
Alexander Krotov
672fe2dfd7
Parse KML without converting to UTF-8 and back to bytes
2020-02-14 22:34:41 +01:00
Alexander Krotov
04bb6997a2
Remove unused imap::idle::Error::ImapError variant
2020-02-14 22:33:36 +01:00
B. Petersen
1f9520dc78
target comments from @flub
2020-02-14 13:43:48 +01:00
B. Petersen
a177df32b7
omit values in ChatVisibility enum as suggested by @dignifiedquire and @flub
2020-02-14 13:43:48 +01:00
B. Petersen
f25d5dd123
do not unpin chats on sending/receiving messages
2020-02-14 13:43:48 +01:00
B. Petersen
4cfa9e6165
send event as before, uis depend on that
2020-02-14 13:43:48 +01:00
B. Petersen
0303ea7f57
rename to ChatVisibility, simplify ffi
2020-02-14 13:43:48 +01:00
B. Petersen
2813e01e61
remove unneeded sql-roundtrip on getting archived state
2020-02-14 11:28:55 +01:00
B. Petersen
e3420da60f
reword ffi from 'archived' to 'visibility'
2020-02-14 11:28:55 +01:00
B. Petersen
60493d30f6
target comment from @dignifiedquire, use ArchiveState inside core
2020-02-14 11:28:55 +01:00
Simon Laux
6efe8e7d7c
change ChatInfo.archived to tri-state
...
and add to the changelog
2020-02-14 11:28:55 +01:00
Simon Laux
2e8409f146
address some of flubs comments
2020-02-14 11:28:55 +01:00
Simon Laux
23b6178e78
add rust test for pin chat
2020-02-14 11:28:55 +01:00
Simon Laux
5e5d45fb0a
better fallbacks
2020-02-14 11:28:54 +01:00
Simon Laux
1765b8f2cf
show pinned chats again and order them to the top
2020-02-14 11:28:54 +01:00
Simon Laux
5678562ce2
represent archivestate as enum
...
before it was a boolean, even though it is a 3 state
2020-02-14 11:28:54 +01:00
Alexander Krotov
9008a65c14
Remove DC_IMAP_SEEN constant
...
Replace "flags" integer with a "seen" boolean.
2020-02-13 13:55:06 +01:00
Alexander Krotov
4e07e4c7f3
Fix a typo (bbc-self instead of bcc-self)
2020-02-12 23:15:04 +03:00
dignifiedquire
e440d8503a
fixup
2020-02-12 19:12:22 +01:00
dignifiedquire
9cc99ffcd6
add more ser and de impls
2020-02-12 19:12:22 +01:00
Alexander Krotov
beb91271de
Unlock session before calling add_flag_finalized
...
add_flag_finalized tries to lock session again and IMAP thread deadlocks
if session is not unlocked.
2020-02-12 11:38:18 +00:00
Alexander Krotov
7e9585ebc5
cargo fmt
2020-02-12 11:38:18 +00:00
Alexander Krotov
0c4b3f71e5
Check for MOVE capability before using MOVE command
2020-02-12 11:38:18 +00:00
B. Petersen
8b4edc46a7
implement dc_set_config_from_qr()
2020-02-11 21:04:18 +01:00
B. Petersen
2b7a0a4585
prototype dc_set_config_from_qr()
2020-02-11 21:04:18 +01:00
B. Petersen
1882176489
let dc_check_qr() accept DCACCOUNT-schemes
2020-02-11 21:04:18 +01:00
holger krekel
875e89e71a
better event information for moved messages
2020-02-11 20:38:14 +01:00
Alexander Krotov
2d4c20af35
Revert "Make dc_receive_imf non-public"
...
This reverts commit cabb58a9aa .
dc_receive_imf() is used in the "repl" example.
This was not caught by CI because it does not build examples.
2020-02-11 02:03:36 +03:00
Alexander Krotov
66fdb447f7
Rename get_headerdef into get_header_value
2020-02-11 01:59:41 +03:00
Alexander Krotov
c801775a39
Implement get_headerdef method for MailHeader slices
2020-02-11 01:59:41 +03:00
Alexander Krotov
f5bb57d6a6
Fix a typo ("Messag")
2020-02-11 00:07:37 +03:00
Alexander Krotov
1071ab05db
Move created_db_entries into cleanup closure instead of borrowing
2020-02-10 23:31:46 +03:00
Simon Laux
8461cf6443
Merge pull request #1143 from deltachat/feat_mute_chat
...
feat: mute chat
2020-02-10 01:39:50 +01:00
Alexander Krotov
cabb58a9aa
Make dc_receive_imf non-public
2020-02-09 23:30:06 +00:00
Alexander Krotov
e64ce5bb4f
Reduce is_msgrmsg_rfc724_mid_in_list scope to pub(crate)
2020-02-09 23:28:29 +00:00
Alexander Krotov
bc750d61d2
Remove outdated comment
2020-02-09 23:28:29 +00:00
Alexander Krotov
3150901b6e
Improve logs for prefetch checks
2020-02-09 23:28:29 +00:00
Alexander Krotov
4f6745b742
Check if contact is blocked or accepted before downloading it
2020-02-09 23:28:29 +00:00
Alexander Krotov
bcdc323a97
Factor from_field_to_contact_id out of dc_receive_imf
2020-02-09 23:28:29 +00:00
Alexander Krotov
4fd4cc709d
Prefetch FROM field
2020-02-09 23:28:29 +00:00
Alexander Krotov
0fac463144
Prefetch Message-ID header instead of envelope
...
Envelope has the same Message-ID, but using other fields from the
envelope, such as From field, is error-prone. They may contain values
different from the message body. As we don't parse the envelope later on,
it is better not to fetch it during prefetch too.
2020-02-09 23:28:29 +00:00
Alexander Krotov
d809dfac65
Do not download messages that are not displayed
2020-02-09 23:28:29 +00:00