mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
73bfc58453
the idea of the rejects mailbox is to show messages that were rejected. you can look there, and if you see a message that should have been delivered, you can move it to your inbox or archive. next time a deliver attempt by that user is attempted, they should be accepted, because you corrected the reject. but that wasn't happening, because the reputation-calculation is per-delivery mailbox (e.g. Inbox) and we look at MailboxOrigID when calculating the reputation. and that was set to the Rejects mailbox id, so the message wasn't considered. the same applies to moving messages from Rejects to Junk (to train your filter). we now keep track of a MailboxDestinedID, that is set to the mailbox that we would have delivered to if we would not have rejected the message. then, when a message is moved out of the Rejects mailbox, we change MailboxOrigID to MailboxDestinedID. this essentially makes the message look like it was delivered normally. |
||
---|---|---|
.. | ||
alignment.go | ||
analyze.go | ||
authresults.go | ||
authresults_test.go | ||
dnsbl.go | ||
dsn.go | ||
error.go | ||
fuzz_test.go | ||
limitwriter.go | ||
mx.go | ||
parse.go | ||
parse_test.go | ||
rejects.go | ||
reputation.go | ||
reputation_test.go | ||
server.go | ||
server_test.go |