mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 13:04: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:
@ -325,7 +325,7 @@ func importctl(ctx context.Context, ctl *ctl, mbox bool) {
|
||||
mb.Add(m.MailboxCounts())
|
||||
|
||||
// Parse message and store parsed information for later fast retrieval.
|
||||
p, err := message.EnsurePart(msgf, m.Size)
|
||||
p, err := message.EnsurePart(ctl.log, false, msgf, m.Size)
|
||||
if err != nil {
|
||||
ctl.log.Infox("parsing message, continuing", err, mlog.Field("path", origPath))
|
||||
}
|
||||
|
Reference in New Issue
Block a user