Documentation ¶
Index ¶
- type ListDB
- func (db *ListDB) AddKnowns(list *ulist.List, addrs []*mailutil.Addr) ([]*mailutil.Addr, error)
- func (db *ListDB) AddMembers(list *ulist.List, addrs []*mailutil.Addr, ...) ([]*mailutil.Addr, error)
- func (db *ListDB) Admins(list *ulist.List) ([]string, error)
- func (db *ListDB) AllLists() ([]ulist.ListInfo, error)
- func (db *ListDB) Close() error
- func (db *ListDB) Create(address, name string) (*ulist.List, error)
- func (db *ListDB) Delete(list *ulist.List) error
- func (db *ListDB) GetList(listAddress *mailutil.Addr) (*ulist.List, error)
- func (db *ListDB) GetMembership(list *ulist.List, addr *mailutil.Addr) (ulist.Membership, error)
- func (db *ListDB) IsKnown(list *ulist.List, rawAddress string) (bool, error)
- func (db *ListDB) IsList(address *mailutil.Addr) (bool, error)
- func (db *ListDB) IsMember(list *ulist.List, addr *mailutil.Addr) (bool, error)
- func (db *ListDB) Knowns(list *ulist.List) ([]string, error)
- func (db *ListDB) Members(list *ulist.List) ([]ulist.Membership, error)
- func (db *ListDB) Memberships(member *ulist.Addr) ([]ulist.Membership, error)
- func (db *ListDB) Notifieds(list *ulist.List) ([]string, error)
- func (db *ListDB) PublicLists() ([]ulist.ListInfo, error)
- func (db *ListDB) Receivers(list *ulist.List) ([]string, error)
- func (db *ListDB) RemoveKnowns(list *ulist.List, addrs []*mailutil.Addr) ([]*mailutil.Addr, error)
- func (db *ListDB) RemoveMembers(list *ulist.List, addrs []*mailutil.Addr) ([]*mailutil.Addr, error)
- func (db *ListDB) Update(list *ulist.List, display string, publicSignup, hideFrom bool, ...) error
- func (db *ListDB) UpdateMember(list *ulist.List, rawAddress string, receive, moderate, notify, admin bool) error
- type UserDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListDB ¶
type ListDB struct {
// contains filtered or unexported fields
}
func OpenListDB ¶
func (*ListDB) AddMembers ¶
func (db *ListDB) AddMembers(list *ulist.List, addrs []*mailutil.Addr, receive, moderate, notify, admin bool) ([]*mailutil.Addr, error)
returns addresses which have been added successfully
func (*ListDB) Create ¶
CreateList creates a new mailing list with default actions: messages from unknown senders are moderated, all others pass.
func (*ListDB) GetMembership ¶
GetMembership returns whether addr is a member of the list and what permissions she has.
func (*ListDB) Memberships ¶
func (*ListDB) RemoveKnowns ¶
func (*ListDB) RemoveMembers ¶
type UserDB ¶
type UserDB struct {
// contains filtered or unexported fields
}
func OpenUserDB ¶
func (*UserDB) Authenticate ¶
Click to show internal directories.
Click to hide internal directories.