mirror of
https://github.com/axllent/mailpit.git
synced 2025-02-05 13:14:57 +02:00
UI: Only show number of messages ignored statistics if --ignore-duplicate-ids
is set
This commit is contained in:
parent
5271f5226b
commit
a31672b6f3
@ -29,6 +29,9 @@ type webUIConfiguration struct {
|
||||
|
||||
// Whether SpamAssassin is enabled
|
||||
SpamAssassin bool
|
||||
|
||||
// Whether messages with duplicate IDs are ignored
|
||||
DuplicatesIgnored bool
|
||||
}
|
||||
|
||||
// WebUIConfig returns configuration settings for the web UI.
|
||||
@ -59,6 +62,7 @@ func WebUIConfig(w http.ResponseWriter, _ *http.Request) {
|
||||
|
||||
conf.DisableHTMLCheck = config.DisableHTMLCheck
|
||||
conf.SpamAssassin = config.EnableSpamAssassin != ""
|
||||
conf.DuplicatesIgnored = config.IgnoreDuplicateIDs
|
||||
|
||||
bytes, _ := json.Marshal(conf)
|
||||
|
||||
|
@ -259,7 +259,7 @@ export default {
|
||||
{{ formatNumber(mailbox.appInfo.RuntimeStats.SMTPRejected) }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr v-if="mailbox.uiConfig.DuplicatesIgnored">
|
||||
<td>
|
||||
SMTP messages ignored
|
||||
</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user