mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:04:39 +03:00
implement the WITHIN IMAP extension, rfc 5032
for IMAP "SEARCH" command criteria "YOUNGER" and "OLDER".
This commit is contained in:
@ -111,6 +111,12 @@ func TestSearch(t *testing.T) {
|
||||
tc.transactf("ok", "search before 1-Jan-2020")
|
||||
tc.xsearch() // Before is about received, not date header of message.
|
||||
|
||||
// WITHIN extension with OLDER & YOUNGER.
|
||||
tc.transactf("ok", "search older 60")
|
||||
tc.xsearch(1, 2, 3)
|
||||
tc.transactf("ok", "search younger 60")
|
||||
tc.xsearch()
|
||||
|
||||
// SAVEDATE extension.
|
||||
tc.transactf("ok", "search savedbefore %s", saveDate.Add(24*time.Hour).Format("2-Jan-2006"))
|
||||
tc.xsearch(1, 2, 3)
|
||||
|
Reference in New Issue
Block a user