mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 19:44:34 +03:00
various nits
This commit is contained in:
@ -7,7 +7,7 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
// MsgReader provides access to a message. Reads return the "msg_prefix" in the
|
||||
// MsgReader provides access to a message. Reads return the "MsgPrefix" in the
|
||||
// database (typically received headers), followed by the on-disk msg file
|
||||
// contents. MsgReader is an io.Reader, io.ReaderAt and io.Closer.
|
||||
type MsgReader struct {
|
||||
|
@ -24,7 +24,7 @@ var ErrNoJunkFilter = errors.New("junkfilter: not configured")
|
||||
// Do not forget to save the filter after modifying, and to always close the filter when done.
|
||||
// An empty filter is initialized on first access of the filter.
|
||||
func (a *Account) OpenJunkFilter(ctx context.Context, log mlog.Log) (*junk.Filter, *config.JunkFilter, error) {
|
||||
conf, ok := mox.Conf.Account(a.Name)
|
||||
conf, ok := a.Conf()
|
||||
if !ok {
|
||||
return nil, nil, ErrAccountUnknown
|
||||
}
|
||||
|
Reference in New Issue
Block a user