Commit d8e2b9f
committed
feat: Don't mark messages as seen on IMAP if bcc_self=0 or bot=1
bcc_self=0 means that the user disabled it or it's a chatmail setup with the only device and w/o
backups. If a backup is made someday, old messages not marked as IMAP-seen aren't a problem and new
ones are marked as IMAP-seen.
For bots, particularly multi-device ones (which are a rare case), probably no sane logic can be
built on the "seen" message status. Moreover, if the user has additionally a bot that reads incoming
messages, it doesn't mean that the user doesn't want to read them too.
Also don't mark a message as IMAP-seen just if it already exists on the device as this doesn't mean
that it exists on another device.
Also don't mark MDNs and DSNs as IMAP-seen. Marking MDNs as seen is useless, they shouldn't be
displayed by any MUA. Auto-marking DSNs as seen should be avoided because the user may want to see
them in another MUA.1 parent 7ee6f2c commit d8e2b9f
File tree
3 files changed
+16
-11
lines changed- deltachat-rpc-client/tests
- src
3 files changed
+16
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2248 | 2248 | | |
2249 | 2249 | | |
2250 | 2250 | | |
2251 | | - | |
2252 | | - | |
2253 | | - | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
2254 | 2257 | | |
2255 | | - | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
2256 | 2261 | | |
2257 | 2262 | | |
2258 | 2263 | | |
| |||
2397 | 2402 | | |
2398 | 2403 | | |
2399 | 2404 | | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
2400 | 2410 | | |
2401 | 2411 | | |
2402 | 2412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
993 | 993 | | |
994 | 994 | | |
995 | 995 | | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | 996 | | |
1002 | 997 | | |
1003 | 998 | | |
| |||
1145 | 1140 | | |
1146 | 1141 | | |
1147 | 1142 | | |
| 1143 | + | |
| 1144 | + | |
1148 | 1145 | | |
1149 | | - | |
1150 | 1146 | | |
1151 | 1147 | | |
1152 | 1148 | | |
| |||
0 commit comments