RewriteBody modifies passed Header argument and may optionally inspect the passed body buffer to make a decision on new header field values. There is no way to modify the body and RewriteBody should avoid removing existing header fields and changing their values.
(ctx context.Context, h *textproto.Header, body buffer.Buffer)
| 76 | // There is no way to modify the body and RewriteBody should avoid |
| 77 | // removing existing header fields and changing their values. |
| 78 | RewriteBody(ctx context.Context, h *textproto.Header, body buffer.Buffer) error |
| 79 | |
| 80 | // Close is called after the message processing ends, even if any of the |
| 81 | // Rewrite* functions return an error. |
no outgoing calls