various nits

This commit is contained in:
Mechiel Lukkien
2025-03-01 10:27:00 +01:00
parent 7756150a69
commit 3b731b7afe
3 changed files with 2 additions and 3 deletions

View File

@ -167,7 +167,6 @@ binary should be setgid that group:
for { for {
block, rest := pem.Decode(pemBuf) block, rest := pem.Decode(pemBuf)
if block == nil && len(rest) != 0 { if block == nil && len(rest) != 0 {
log.Printf("xxx, leftover data %q", rest)
log.Fatalf("leftover data in pem file") log.Fatalf("leftover data in pem file")
} else if block == nil { } else if block == nil {
break break

View File

@ -7,7 +7,7 @@ import (
"os" "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 // database (typically received headers), followed by the on-disk msg file
// contents. MsgReader is an io.Reader, io.ReaderAt and io.Closer. // contents. MsgReader is an io.Reader, io.ReaderAt and io.Closer.
type MsgReader struct { type MsgReader struct {

View File

@ -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. // 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. // 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) { 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 { if !ok {
return nil, nil, ErrAccountUnknown return nil, nil, ErrAccountUnknown
} }