mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 11:44:38 +03:00
add strict mode when parsing messages, typically enabled for incoming special-use messages like tls/dmarc reports, subjectpass emails
and pass a logger to the message parser, so problems with message parsing get the cid logged.
This commit is contained in:
@ -31,7 +31,7 @@ func (f *Filter) tokenizeMail(path string) (bool, map[string]struct{}, error) {
|
||||
if err != nil {
|
||||
return false, nil, err
|
||||
}
|
||||
p, _ := message.EnsurePart(mf, fi.Size())
|
||||
p, _ := message.EnsurePart(f.log, false, mf, fi.Size())
|
||||
words, err := f.ParseMessage(p)
|
||||
return true, words, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user