summaryrefslogtreecommitdiffstats
path: root/model/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/user.go')
-rw-r--r--model/user.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/model/user.go b/model/user.go
index 2b5092cfb..d94a28b2d 100644
--- a/model/user.go
+++ b/model/user.go
@@ -639,3 +639,9 @@ func IsValidCommentsNotifyLevel(notifyLevel string) bool {
notifyLevel == COMMENTS_NOTIFY_ROOT ||
notifyLevel == COMMENTS_NOTIFY_NEVER
}
+
+func IsValidEmailBatchingInterval(emailInterval string) bool {
+ return emailInterval == PREFERENCE_EMAIL_INTERVAL_IMMEDIATELY ||
+ emailInterval == PREFERENCE_EMAIL_INTERVAL_FIFTEEN ||
+ emailInterval == PREFERENCE_EMAIL_INTERVAL_HOUR
+}