Documentation ¶
Index ¶
- Constants
- type Bot
- func (s Bot) AdminRoom() id.RoomID
- func (s Bot) BanlistAuth() bool
- func (s Bot) BanlistAuto() bool
- 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) Mautrix015Migration() int64
- 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(ctx context.Context) List
- func (m *Manager) GetBot(ctx context.Context) Bot
- func (m *Manager) GetGreylist(ctx context.Context) List
- func (m *Manager) GetRoom(ctx context.Context, roomID id.RoomID) (Room, error)
- func (m *Manager) SetBanlist(ctx context.Context, cfg List) error
- func (m *Manager) SetBot(ctx context.Context, cfg Bot) error
- func (m *Manager) SetGreylist(ctx context.Context, cfg List) error
- func (m *Manager) SetRoom(ctx context.Context, roomID id.RoomID, cfg Room) error
- type Room
- func (s Room) Active() bool
- func (s Room) Autoreply() string
- 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) NoInlines() bool
- func (s Room) NoRecipient() bool
- func (s Room) NoReplies() 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) Relay() *url.URL
- func (s Room) Set(key, value string)
- func (s Room) Signature() string
- func (s Room) SpamcheckDKIM() bool
- func (s Room) SpamcheckMX() bool
- func (s Room) SpamcheckRBL() bool
- func (s Room) SpamcheckSMTP() bool
- func (s Room) SpamcheckSPF() bool
- func (s Room) Spamlist() []string
- func (s Room) Stripify() bool
- func (s Room) Threadify() bool
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" BotBanlistAuto = "banlist:auto" BotBanlistAuth = "banlist:auth" BotGreylist = "greylist" BotMautrix015Migration = "mautrix015migration" )
bot options keys
View Source
const ( RoomActive = ".active" RoomOwner = "owner" RoomMailbox = "mailbox" RoomDomain = "domain" RoomPassword = "password" RoomSignature = "signature" RoomAutoreply = "autoreply" RoomRelay = "relay" RoomThreadify = "threadify" RoomStripify = "stripify" RoomNoCC = "nocc" RoomNoFiles = "nofiles" RoomNoHTML = "nohtml" RoomNoInlines = "noinlines" RoomNoRecipient = "norecipient" RoomNoReplies = "noreplies" RoomNoSend = "nosend" RoomNoSender = "nosender" RoomNoSubject = "nosubject" RoomNoThreads = "nothreads" RoomSpamcheckRBL = "spamcheck:rbl" 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 Bot ¶
Bot map
func (Bot) Mautrix015Migration ¶ added in v0.9.15
Mautrix015Migration option (timestamp)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager of configs
func (*Manager) GetBanlist ¶
GetBanlist config
func (*Manager) GetGreylist ¶
GetGreylist config
func (*Manager) SetBanlist ¶
SetBanlist config
func (*Manager) SetGreylist ¶
SetGreylist config
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) Relay ¶ added in v0.9.19
Relay returns the SMTP Relay configuration in a manner of URL: smtp://user:pass@host:port
func (Room) SpamcheckDKIM ¶
func (Room) SpamcheckMX ¶
func (Room) SpamcheckRBL ¶ added in v0.9.20
func (Room) SpamcheckSMTP ¶
func (Room) SpamcheckSPF ¶
Click to show internal directories.
Click to hide internal directories.