Commit Graph

2641 Commits

Author SHA1 Message Date
Alexander Krotov
9d033e2ea1 Start autodelete timer when message is displayed 2020-05-23 21:09:33 +03:00
Alexander Krotov
cdc15ce980 Do not store NULL values in msgs.autodelete_* columns 2020-05-23 21:09:33 +03:00
Alexander Krotov
f017ffa0b3 Cleanup test_autodelete_timer()
Better comments and removed unnecessary .consume_events()
2020-05-23 21:09:33 +03:00
Alexander Krotov
28c79516da Test that autodelete timer is set for received messages 2020-05-23 21:09:33 +03:00
Alexander Krotov
af1be65e8b Set autodelete timer for received messages 2020-05-23 21:09:33 +03:00
Alexander Krotov
93ffcf530d Add autodelete timer and timestamp to message info 2020-05-23 21:09:33 +03:00
Alexander Krotov
028187eeaf Generate IMAP deletion jobs for ephemeral messages 2020-05-23 21:09:33 +03:00
Alexander Krotov
032b387c95 Process timer changes before calc_timestamps()
This way system message about timer change gets lower timestamp than the
message itself, and it is clear that new timer is applied to the message
that just arrived.
2020-05-23 21:09:33 +03:00
Alexander Krotov
5523e7ba19 Delete autodelete-expired messages locally 2020-05-23 21:09:33 +03:00
Alexander Krotov
b54c2a3196 Do not set autodelete timer on special chat IDs 2020-05-23 21:09:33 +03:00
Alexander Krotov
42d8502531 Parse Autodelete-Timer header in MDNs
It is not sent there yet.
2020-05-23 21:09:33 +03:00
Alexander Krotov
6002f54ce1 Set autodelete timer columns for outgoing messages 2020-05-23 21:09:33 +03:00
Alexander Krotov
a830d499eb Add autodelete timer columns to message table 2020-05-23 21:09:32 +03:00
Alexander Krotov
49e821d029 Apply autodelete timer changes to the chat before adding messages
Timer is started only when the message is read, but we want to be completely sure that correct value is used.

This commit also add some comments.
2020-05-23 21:09:32 +03:00
Alexander Krotov
010cf7140f Do not send messages in autodelete timer tests
System messages are sent automatically now, so it is not needed.
2020-05-23 21:09:32 +03:00
Alexander Krotov
e1773edf7f Send system message to chat when user changes autodelete timer 2020-05-23 21:09:32 +03:00
Alexander Krotov
b4337685cf Add info message when autodelete timer is changed 2020-05-23 21:09:32 +03:00
Alexander Krotov
997c5ad68a Set timer to 0 if no Autodelete-Timer header is present 2020-05-23 21:09:32 +03:00
Alexander Krotov
67b486bfbd Transmit autodelete timer over the network in test_autodelete_timer 2020-05-23 21:09:32 +03:00
Alexander Krotov
f5ee9c530d Add Event::ChatAutodeleteTimerModified 2020-05-23 21:09:32 +03:00
Alexander Krotov
0189644f08 Add python test for autodelete timer API 2020-05-23 21:09:32 +03:00
Alexander Krotov
0ca3e3100e Add {get,set}_autodelete_timer to python API 2020-05-23 21:09:32 +03:00
Alexander Krotov
d4c4070b3f Add C interface for autodelete timer settings 2020-05-23 21:09:32 +03:00
Alexander Krotov
51133ce0d6 Add autodelete timer to the database 2020-05-23 21:09:32 +03:00
Hocuri
26b0c43cc4 Remove help for nonexisting open and close commands.
See #1496
2020-05-22 18:45:42 +02:00
B. Petersen
779a906d97 move standards.md here
the document standards.md exist since a long time
to get an overview but also a nice reference to get some links.

however, its placement in the android-repo is a bit unlogical,
probably comes from a time where there was only one implementation :)

as ios and desktop use the same standards and as
all acutal implementations are in the core,
we move it to the core repo.

android can have a link to the new place.
2020-05-20 15:48:13 +02:00
B. Petersen
7e78d6a92b fix link 2020-05-19 22:52:11 +03:00
B. Petersen
6483b8c138 change to WAL only on one handle.
journal_mode is persisted, it is sufficient to change it only for one handle.
with_init() is called for a bunch of handles directly on pool-creation,
so changing to WAL here easily results in busy-errors.
2020-05-18 18:19:08 +02:00
B. Petersen
9702647044 enable sqlite's WAL-mode unconditionally 2020-05-18 06:55:06 +02:00
B. Petersen
3b2192a046 make clippy happy 2020-05-18 06:55:06 +02:00
B. Petersen
b864911e18 return current journal_mode in dc_get_info()
values are either 'delete' or 'wal';
having this info in debug reports is useful for debugging anyway,
if we switch to WAL or not.
2020-05-18 06:55:06 +02:00
bjoern
9e0506cb48 Merge pull request #1488 from deltachat/fix-get-sent-folder
improve finding out the sent-folder
2020-05-17 03:01:39 +02:00
B. Petersen
a0000b9489 update provider-db 2020-05-16 23:26:53 +02:00
Hocuri
df3fac4e5e Make clear that dc_set_chat_mute_duration() and dc_chat_is_muted() belong together. 2020-05-16 22:32:07 +02:00
bjoern
8a36f55439 Merge pull request #1491 from deltachat/fix-get-sent-folder1
Code style (#1488)
2020-05-16 15:25:04 +02:00
Hocuri
ab253744f8 Code style 2020-05-16 15:07:01 +02:00
bjoern
fff1eaba45 Merge pull request #1485 from deltachat/tweak-delete-docs
clarify delete_server_after option
2020-05-16 11:29:13 +02:00
B. Petersen
eafb7b979d make clippy happy 2020-05-16 00:09:22 +02:00
B. Petersen
9e22bf39cc smoother searching for sentbox
search for the sentbox in two passes:
- first check the folder attributes
- only if that fails, check for some known names

this way, the sent-attribute always has precedence
over the name; this was not the case before.

moreover, this fixes an possibly wrong early exist
when the attribute list is completely empty.
2020-05-16 00:01:42 +02:00
B. Petersen
fc6691ce5b add 'sentmail' to the list of known names for 'sent', acutally used by chello.at 2020-05-15 23:05:23 +02:00
holger krekel
598dc86ca5 make sure we don't garble output during test runs by more carefully
switching logging on/off globally
2020-05-15 21:19:57 +02:00
Alexander Krotov
3e2bfc35e3 Delete hidden expired messages
The condition remains from the time when expired messages were hidden
instead of being moved into trash chat. As a result, old hidden
messages, such as location messages, were not deleted.
2020-05-15 20:46:41 +03:00
B. Petersen
6658ad8618 clarify delete_server_after option 2020-05-15 17:12:19 +02:00
bjoern
759ccdbee2 Merge pull request #1441 from deltachat/config-from-provider-db
optionally get default-options from provider-db
2020-05-15 12:19:14 +02:00
bjoern
635060a02d Merge pull request #1481 from deltachat/adbenitez-patch-1
Update CHANGELOG.md
2020-05-14 11:16:15 +02:00
Asiel Díaz Benítez
a128e7e7ab Update CHANGELOG.md 2020-05-14 03:22:45 -04:00
Jikstra
3cb69b8035 Merge pull request #1479 from deltachat/prep-1.33
Prep 1.33
2020-05-13 23:17:54 +02:00
B. Petersen
7dc58bb330 bump version 1.33.0 2020-05-13 22:46:04 +02:00
B. Petersen
8bd0a62cb3 changelog 2020-05-13 22:45:01 +02:00
Alexander Krotov
3ee81cbee0 Revert "imap: simplify select_folder() interface"
This reverts commit b614de2f80.
2020-05-13 11:36:33 +02:00