MI_FAILURE will be returned if anything went wrong.
The addr must be in the form of a string composed of a user part and a host part separated
by an @ character:
"user@example.com"
Local addresses may omit the @ and the domain part:
"user"
The new address is added by sendmail. If there is a problem with the address, the problem
will be completely handled by sendmail and your Milter will not be notified. You may
enclose the address in angle braces with no change in effect.
"
" ?†? okay too
26.5.3 Milter smfi_addrcpt_par()
Add envelope recipient with ESMTP arguments V8.14 and later
The smfi_addrcpt_par() Milter library routine is used just like the smfi_addrcpt() routine
earlier, withtwo differences. First, instead of specifying SMFIF_ADDRCPT, you specify the
SMFIF_ADDRCPT_PAR flag in the flags portion of the smfiDesc structure:
struct smfiDesc smfilter =
{
...
SMFIF_ADDRCPT_PAR, /* flags */
...
Failure to include this flag causes smfi_addrcpt_par() to return MI_FAILURE every time it is
called.
Like smfi_addrcpt(), this smfi_addrcpt_par() routine may be called only from within an
xxfi_eom() function you write (?§26.6.9 on page 1215). It is called withan additional
argument:
ret = smfi_addrcpt_par(ctx, addr, args);
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc.
Pages:
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134