foxcpp / foxcpp/maddy-storage

Atomic message delivery interface

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

For SMTP/LMTP-based message delivery, there should be an interface that allows message to be efficiently (and preferrably atomically) stored into a mailbox of multiple accounts.

```go
type Delivery interface {
Rcpt(ctx context.Context, accountName string, folderRole folder.Role) error
Size(bodySize uint64) error
Body(r io.Reader) error
Commit() error
Close() error
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.