Documentation ¶
Index ¶
- Constants
- type Bot
- func (s Bot) AdminRoom() id.RoomID
- func (s Bot) BanlistEnabled() bool
- func (s Bot) CatchAll() string
- func (s Bot) DKIMPrivateKey() string
- func (s Bot) DKIMSignature() string
- func (s Bot) Get(key string) string
- func (s Bot) Greylist() int
- func (s Bot) QueueBatch() int
- func (s Bot) QueueRetries() int
- func (s Bot) Set(key, value string)
- func (s Bot) Users() []string
- type List
- type Manager
- func (m *Manager) GetBanlist() List
- func (m *Manager) GetBot() Bot
- func (m *Manager) GetGreylist() List
- func (m *Manager) GetRoom(roomID id.RoomID) (Room, error)
- func (m *Manager) SetBanlist(cfg List) error
- func (m *Manager) SetBot(cfg Bot) error
- func (m *Manager) SetGreylist(cfg List) error
- func (m *Manager) SetRoom(roomID id.RoomID, cfg Room) error
- type Room
- func (s Room) Active() bool
- func (s Room) ContentOptions() *email.ContentOptions
- func (s Room) Domain() string
- func (s Room) Get(key string) string
- func (s Room) Mailbox() string
- func (s Room) MigrateSpamlistSettings()
- func (s Room) NoCC() bool
- func (s Room) NoFiles() bool
- func (s Room) NoHTML() bool
- func (s Room) NoRecipient() bool
- func (s Room) NoSend() bool
- func (s Room) NoSender() bool
- func (s Room) NoSubject() bool
- func (s Room) NoThreads() bool
- func (s Room) Owner() string
- func (s Room) Password() string
- func (s Room) Set(key, value string)
- func (s Room) SpamcheckDKIM() bool
- func (s Room) SpamcheckMX() bool
- func (s Room) SpamcheckSMTP() bool
- func (s Room) SpamcheckSPF() bool
- func (s Room) Spamlist() []string
Constants ¶
View Source
const ( BotAdminRoom = "adminroom" BotUsers = "users" BotCatchAll = "catch-all" BotDKIMSignature = "dkim.pub" BotDKIMPrivateKey = "dkim.pem" BotQueueBatch = "queue:batch" BotQueueRetries = "queue:retries" BotBanlistEnabled = "banlist:enabled" BotGreylist = "greylist" )
bot options keys
View Source
const ( RoomActive = ".active" RoomOwner = "owner" RoomMailbox = "mailbox" RoomDomain = "domain" RoomNoSend = "nosend" RoomNoCC = "nocc" RoomNoSender = "nosender" RoomNoRecipient = "norecipient" RoomNoSubject = "nosubject" RoomNoHTML = "nohtml" RoomNoThreads = "nothreads" RoomNoFiles = "nofiles" RoomPassword = "password" RoomSpamcheckDKIM = "spamcheck:dkim" RoomSpamcheckSMTP = "spamcheck:smtp" RoomSpamcheckSPF = "spamcheck:spf" RoomSpamcheckMX = "spamcheck:mx" RoomSpamlist = "spamlist" )
option keys
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Room ¶
func (Room) ContentOptions ¶
func (s Room) ContentOptions() *email.ContentOptions
ContentOptions converts room display settings to content options
func (Room) MigrateSpamlistSettings ¶
func (s Room) MigrateSpamlistSettings()
func (Room) NoRecipient ¶
func (Room) SpamcheckDKIM ¶
func (Room) SpamcheckMX ¶
func (Room) SpamcheckSMTP ¶
func (Room) SpamcheckSPF ¶
Click to show internal directories.
Click to hide internal directories.