1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-06-25 00:37:17 +02:00

Feature: Search support for before: and after: dates (#252)

This commit is contained in:
Ralph Slooten
2024-04-12 14:44:14 +12:00
parent 186f8b1829
commit a7dfbf4af0
11 changed files with 79 additions and 17 deletions

View File

@ -59,6 +59,9 @@ export default {
}
this.apiURI = this.resolve(`/api/v1/search`) + '?query=' + encodeURIComponent(s)
if (mailbox.timeZone != '' && (s.indexOf('after:') != -1 || s.indexOf('before:') != -1)) {
this.apiURI += '&tz=' + encodeURIComponent(mailbox.timeZone)
}
this.loadMessages()
}
}