feat(protocols): trusted senders are not filed as spam, when the message proves its sender
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b536ed13e7
commit
d7f9659b5e
7 files changed
+226
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package port
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
// TrustedSenders is the list of senders a mailbox has said it trusts.
|
||||
//
|
||||
// Mail from one of them is not filed as spam, which is what makes "this is not
|
||||
// spam" mean something: before, moving a message out of Junk taught nothing and
|
||||
// the next reply from the same person went straight back.
|
||||
type TrustedSenders interface {
|
||||
// IsTrusted reports whether the mailbox trusts this address, which is
|
||||
// already lowercased.
|
||||
IsTrusted(ctx context.Context, mailboxID uuid.UUID, address string) (bool, error)
|
||||
}
|
||||
Reference in new issue
Block a user