MCPcopy Create free account
hub / github.com/foxcpp/maddy / Body

Method Body

framework/module/delivery_target.go:80–80  ·  view source on GitHub ↗

Body sets the body and header contents for the message. If this method fails, message is assumed to be undeliverable to all recipients. Implementation should avoid doing any persistent changes to the underlying storage until Commit is called. If that is not possible, Abort should (attempt to) rollb

(ctx context.Context, header textproto.Header, body buffer.Buffer)

Source from the content-addressed store, hash-verified

78 // Commit moves the created file to new/ directory.
79 // Abort removes the created file.
80 Body(ctx context.Context, header textproto.Header, body buffer.Buffer) error
81
82 // Abort cancels message delivery.
83 //

Callers 7

DoTestDeliveryErrMetaFunction · 0.65
BenchDeliveryFunction · 0.65
DataMethod · 0.65
BodyMethod · 0.65
BodyNonAtomicMethod · 0.65
doTestDeliveryFunction · 0.65

Implementers 4

dummyDeliveryframework/module/modules/dummy.go
testTargetDeliveryinternal/testutils/target.go
deliveryinternal/storage/imapsql/delivery.go
msgpipelineDeliveryinternal/msgpipeline/msgpipeline.go

Calls

no outgoing calls

Tested by 2

doTestDeliveryFunction · 0.52