mox/store
Mechiel Lukkien 9b3a170cc2
fix nil pointer deref when importing a message that the junkfilter could not parse (e.g. malformed header)
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
2023-02-26 22:21:13 +01:00
..
account.go fix nil pointer deref when importing a message that the junkfilter could not parse (e.g. malformed header) 2023-02-26 22:21:13 +01:00
account_test.go add funtionality to import zip/tgz with maildirs/mboxes to account page 2023-02-16 09:57:27 +01:00
export.go when exporting mbox files, set new status,x-status,x-keywords headers, and remove any content-length header 2023-02-17 17:04:48 +01:00
export_test.go export more imap flags (eg $Junk/$NotJunk/$Forwarded) with maildirs, in dovecot-keywords file 2023-02-13 22:37:25 +01:00
import.go consistently use log.Check for logging errors that "should not happen", don't influence application flow 2023-02-16 13:22:00 +01:00
import_test.go add funtionality to import zip/tgz with maildirs/mboxes to account page 2023-02-16 09:57:27 +01:00
msgreader.go mox! 2023-01-30 14:27:06 +01:00
msgreader_test.go mox! 2023-01-30 14:27:06 +01:00
state.go mox! 2023-01-30 14:27:06 +01:00
tmp.go consistently use log.Check for logging errors that "should not happen", don't influence application flow 2023-02-16 13:22:00 +01:00
train.go fix nil pointer deref when importing a message that the junkfilter could not parse (e.g. malformed header) 2023-02-26 22:21:13 +01:00
transact.go mox! 2023-01-30 14:27:06 +01:00
validation.go mox! 2023-01-30 14:27:06 +01:00