mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
9b3a170cc2
import does its own batched junkfilter training, so the deliver function doesn't have to do it one message at a time, writing the updated filter each time. however, if the message cannot be parsed, it isn't trained during import, and deliver would try to train it again. it would try to open the junk filter to do so, but that would fail because the import function already has the junkfilter open (and the timeout is reached). a missing error check would continue with a nil junkfilter, resulting in the nil pointer deref. this adds the missing error check, and makes sure the deliver function does not also try to train unparseable imported messages. report from Jens Hilligsøe |
||
---|---|---|
.. | ||
account.go | ||
account_test.go | ||
export.go | ||
export_test.go | ||
import.go | ||
import_test.go | ||
msgreader.go | ||
msgreader_test.go | ||
state.go | ||
tmp.go | ||
train.go | ||
transact.go | ||
validation.go |