smfi_setreply.html (112810) | smfi_setreply.html (120256) |
---|---|
1<html> 2<head><title>smfi_setreply</title></head> 3<body> 4<h1>smfi_setreply</h1> 5 6<table border="0" cellspacing=4 cellpadding=4> 7<!---------- Synopsis -----------> 8<tr><th valign="top" align=left width=150>SYNOPSIS</th><td> 9<pre> 10#include <libmilter/mfapi.h> 11int smfi_setreply( 12 SMFICTX *ctx, 13 char *rcode, 14 char *xcode, 15 char *message 16); 17</pre> | 1<html> 2<head><title>smfi_setreply</title></head> 3<body> 4<h1>smfi_setreply</h1> 5 6<table border="0" cellspacing=4 cellpadding=4> 7<!---------- Synopsis -----------> 8<tr><th valign="top" align=left width=150>SYNOPSIS</th><td> 9<pre> 10#include <libmilter/mfapi.h> 11int smfi_setreply( 12 SMFICTX *ctx, 13 char *rcode, 14 char *xcode, 15 char *message 16); 17</pre> |
18Set the default SMTP error reply code. | 18Set the default SMTP error reply code. Only 4XX and 5XX replies are accepted. |
19</td></tr> 20 21<!----------- Description ----------> 22<tr><th valign="top" align=left>DESCRIPTION</th><td> 23<table border="1" cellspacing=1 cellpadding=4> 24<tr align="left" valign=top> 25<th width="80">Called When</th> 26<td>smfi_setreply may be called from any of the xxfi_ callbacks --- 10 unchanged lines hidden (view full) --- 37<!----------- Arguments ----------> 38<tr><th valign="top" align=left>ARGUMENTS</th><td> 39 <table border="1" cellspacing=0> 40 <tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr> 41 <tr valign="top"><td>ctx</td> 42 <td>Opaque context structure. 43 </td></tr> 44 <tr valign="top"><td>rcode</td> | 19</td></tr> 20 21<!----------- Description ----------> 22<tr><th valign="top" align=left>DESCRIPTION</th><td> 23<table border="1" cellspacing=1 cellpadding=4> 24<tr align="left" valign=top> 25<th width="80">Called When</th> 26<td>smfi_setreply may be called from any of the xxfi_ callbacks --- 10 unchanged lines hidden (view full) --- 37<!----------- Arguments ----------> 38<tr><th valign="top" align=left>ARGUMENTS</th><td> 39 <table border="1" cellspacing=0> 40 <tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr> 41 <tr valign="top"><td>ctx</td> 42 <td>Opaque context structure. 43 </td></tr> 44 <tr valign="top"><td>rcode</td> |
45 <td>The three-digit (RFC 821) SMTP reply code, as a null-terminated string. rcode cannot be NULL, and must be a valid reply code. 46 </td></tr> | 45 <td>The three-digit (RFC 821/2821) SMTP reply code, as a 46 null-terminated string. rcode cannot be NULL, and must be a valid 47 4XX or 5XX reply code. 48 </td></tr> |
47 <tr valign="top"><td>xcode</td> | 49 <tr valign="top"><td>xcode</td> |
48 <td>The extended (RFC 2034) reply code. If xcode is NULL, no extended code is used. Otherwise, xcode must conform to RFC 2034. | 50 <td>The extended (RFC 1893/2034) reply code. If xcode is NULL, no 51 extended code is used. Otherwise, xcode must conform to RFC 1893/2034. |
49 </td></tr> 50 <tr valign="top"><td>message</td> 51 <td>The text part of the SMTP reply. If message is NULL, an empty message is used. 52 </td></tr> 53 </table> 54</td></tr> 55 56<!----------- Return values ----------> --- 11 unchanged lines hidden (view full) --- 68 69<!----------- Notes ----------> 70<tr align="left" valign=top> 71<th>NOTES</th> 72<td> 73<ul> 74<li>Values passed to smfi_setreply are not checked for standards compliance. 75<li>For details about reply codes and their meanings, please see RFC's | 52 </td></tr> 53 <tr valign="top"><td>message</td> 54 <td>The text part of the SMTP reply. If message is NULL, an empty message is used. 55 </td></tr> 56 </table> 57</td></tr> 58 59<!----------- Return values ----------> --- 11 unchanged lines hidden (view full) --- 71 72<!----------- Notes ----------> 73<tr align="left" valign=top> 74<th>NOTES</th> 75<td> 76<ul> 77<li>Values passed to smfi_setreply are not checked for standards compliance. 78<li>For details about reply codes and their meanings, please see RFC's |
76821 77and <a href="http://www.rfc-editor.org/rfc/rfc2034.txt">2034</a>. | 79<a href="http://www.rfc-editor.org/rfc/rfc821.txt">821</a>/ 80<a href="http://www.rfc-editor.org/rfc/rfc2821.txt">2821</a> 81and 82<a href="http://www.rfc-editor.org/rfc/rfc1893.txt">1893</a>/ 83<a href="http://www.rfc-editor.org/rfc/rfc2034.txt">2034</a>. |
78<li>If the reply code (rcode) given is a '4XX' code but SMFI_REJECT is used 79for the message, the custom reply is not used. 80<li>Similarly, if the reply code (rcode) given is a '5XX' code but 81SMFI_TEMPFAIL is used for the message, the custom reply is not used. 82</ul> 83</td> 84</tr> 85 --- 12 unchanged lines hidden --- | 84<li>If the reply code (rcode) given is a '4XX' code but SMFI_REJECT is used 85for the message, the custom reply is not used. 86<li>Similarly, if the reply code (rcode) given is a '5XX' code but 87SMFI_TEMPFAIL is used for the message, the custom reply is not used. 88</ul> 89</td> 90</tr> 91 --- 12 unchanged lines hidden --- |