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

Method AddRcpt

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

AddRcpt adds the target address for the message. The domain part of the address is assumed to be U-labels with NFC normalization and case-folding applied. The message source should ensure that by calling address.CleanDomain if necessary. Implementation should assume that no case-folding or dedupli

(ctx context.Context, rcptTo string, opts smtp.RcptOptions)

Source from the content-addressed store, hash-verified

58 // contains BodyLength field. If it is non-zero, it can be used to check
59 // storage quota for the user before Body.
60 AddRcpt(ctx context.Context, rcptTo string, opts smtp.RcptOptions) error
61
62 // Body sets the body and header contents for the message.
63 // If this method fails, message is assumed to be undeliverable

Callers 8

DoTestDeliveryNonAtomicFunction · 0.65
DoTestDeliveryErrMetaFunction · 0.65
BenchDeliveryFunction · 0.65
rcptMethod · 0.65
AddRcptMethod · 0.65
AddRcptMethod · 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