Therefore, never use a custom-added header with the expectation
that it could convey information to subsequent Milters.
26.5.2 Milter smfi_addrcpt()
Add an envelope recipient All sendmail versions
The smfi_addrcpt() Milter library routine is used to add an envelope recipient to the envelope.
To remove an envelope recipient use smfi_delrcpt() (?§26.5.6 on page 1189). To
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
1186 | Chapter 26: The X (Milters) Configuration Command
include ESMTP arguments along withth e new recipient use smfi_addrcpt_par() (?§26.5.3
on page 1186).
Before you can add recipients, you first need to declare your intention to do so by including
the SMFIF_ADDRCPT flag in the flags portion of the smfiDesc structure:
struct smfiDesc smfilter =
{
...
SMFIF_ADDRCPT, /* flags */
...
Failure to include this flag causes smfi_addrcpt() to return MI_FAILURE every time it is called.
The smfi_addrcpt() routine may be called only from within an xxfi_eom() function you
write (?§26.6.9 on page 1215). It is called like this:
ret = smfi_addrcpt(ctx, addr);
Here, ctx is the common context pointer that was passed to your xxfi_eom() function. The
addr is the email address of the recipient you wish to add. On success, MI_SUCCESS will be
returned (to ret).
Pages:
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133