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

Method RewriteBody

internal/modify/group.go:117–124  ·  view source on GitHub ↗
(ctx context.Context, h *textproto.Header, body buffer.Buffer)

Source from the content-addressed store, hash-verified

115}
116
117func (gs groupState) RewriteBody(ctx context.Context, h *textproto.Header, body buffer.Buffer) error {
118 for _, state := range gs.states {
119 if err := state.RewriteBody(ctx, h, body); err != nil {
120 return err
121 }
122 }
123 return nil
124}
125
126func (gs groupState) Close() error {
127 // We still try close all state objects to minimize

Callers

nothing calls this directly

Calls 1

RewriteBodyMethod · 0.65

Tested by

no test coverage detected