Documentation ¶
Index ¶
- Constants
- func GetCachedInboxSettings(config *config.Config, mailboxID int) (storage.InboxSettings, error)
- func IsNotSpamAttackCampaign(config *config.Config, mailboxID int) bool
- func SendNotifications(config *config.Config, mailboxID, messageID int, subject string) (bool, error)
- func StoreCachedInboxSettings(config *config.Config, mailboxID int, inboxSettings storage.InboxSettings)
Constants ¶
View Source
const ( REDIS_KEY_TTL = 60 REDIS_KEY_MAX_COUNT = 15 NOTIFICATION_TIMEOUT = 30 MAX_TTL_FOR_SPAM = 20 MAX_EMAILS_FOR_SPAM = 10 INBOX_SETTINGS_TTL = 14400 // 4 hours )
Variables ¶
This section is empty.
Functions ¶
func GetCachedInboxSettings ¶
func IsNotSpamAttackCampaign ¶
func SendNotifications ¶
func StoreCachedInboxSettings ¶
func StoreCachedInboxSettings(config *config.Config, mailboxID int, inboxSettings storage.InboxSettings)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.