Set mail to only display mail within 30 or 60 days
20 Jul
2020
20 Jul
'20
11:44 a.m.
Set mail to only display mail within 30 or 60 days, Here are two examples.
- normal E.g:
A654 FETCH 2:4 (FLAGS BODY[HEADER.FIELDS (DATE FROM)])
- 2 FETCH (FLAGS (\Seen) BODY[HEADER.FIELDS (DATE FROM)] {73} Date: Tue, 07 May 2020 12:26:55 +0800 From: test@www.chengmail.ml
)
- 3 FETCH (FLAGS (\Seen) BODY[HEADER.FIELDS (DATE FROM)] {62} Date: Tue, 07 May 2020 12:35:34 +0800 From: lty@cndns.com
)
- 4 FETCH (FLAGS (\Seen) BODY[HEADER.FIELDS (DATE FROM)] {62} Date: Tue, 07 Jul 2020 17:41:53 +0800 From: lty@cndns.com
) A654 OK Fetch completed (0.002 + 0.000 + 0.001 secs).
- Set to display mail within 30 days E.g:
A654 FETCH 2:4 (FLAGS BODY[HEADER.FIELDS (DATE FROM)])
- 4 FETCH (FLAGS (\Seen) BODY[HEADER.FIELDS (DATE FROM)] {62} Date: Tue, 07 Jul 2020 17:41:53 +0800 From: lty@cndns.com
) A654 OK Fetch completed (0.002 + 0.000 + 0.001 secs).
Is there any way to display the result of case 2? I found lua. https://doc.dovecot.org/admin_manual/lua/#mail-lua But I don't know how to edit the lua script, Are there more examples? I also watched the help, but it doesn't help much. https://doc.dovecot.org/configuration_manual/authentication/lua_based_authen... https://doc.dovecot.org/configuration_manual/push_notification/#lua-push-not...
Can Lua fulfill my needs?
1577
Age (days ago)
1577
Last active (days ago)
0 comments
1 participants
participants (1)
-
lty