Initial import from FreeBSD RELENG_4:
[games.git] / contrib / sendmail / libmilter / docs / smfi_getsymval.html
1 <html>
2 <head><title>smfi_getsymval</title></head>
3 <body>
4 <h1>smfi_getsymval</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 &lt;libmilter/mfapi.h&gt;
11 char* smfi_getsymval(
12         SMFICTX *ctx,
13         char *symname
14 );
15 </pre>
16 Get the value of a sendmail macro.
17 </td></tr>
18
19 <!----------- Description ---------->
20 <tr><th valign="top" align=left>DESCRIPTION</th><td>
21 <table border="1" cellspacing=1 cellpadding=4>
22 <tr align="left" valign=top>
23 <th width="80">Called When</th>
24 <td>smfi_getsymval may be called from within any of the xxfi_* callbacks.  Which macros are defined will depend on when it is called.</td>
25 </tr>
26 <tr align="left" valign=top>
27 <th width="80">Effects</th>
28 <td>None.</td>
29 </tr>
30 </table>
31
32 <!----------- Arguments ---------->
33 <tr><th valign="top" align=left>ARGUMENTS</th><td>
34     <table border="1" cellspacing=0>
35     <tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr>
36     <tr valign="top"><td>ctx</td>
37         <td>The opaque context structure.
38         </td></tr>
39     <tr valign="top"><td>symname</td>
40         <td>The name of a sendmail macro.
41         Single letter macros can optionally be enclosed in braces ("{" and "}"),
42         longer macro names must be enclosed in braces, just as in a
43         <tt>sendmail.cf</tt> file.
44         <a href="#notes">See below</a> for default macros.
45         </td></tr>
46     </table>
47 </td></tr>
48
49 <!----------- Return values ---------->
50 <tr>
51 <th valign="top" align=left>RETURN VALUES</th> 
52
53 <td>smfi_getsymval returns the value of the given macro as a null-terminated string, or NULL if the macro is not defined.</td>
54 </tr>
55
56 <!----------- Notes ---------->
57 <tr align="left" valign=top>
58 <th><a name="notes">NOTES</A></th> 
59 <td>
60 By default, the following macros are valid in the given contexts:
61
62 <table border="1" cellspacing=0>
63 <tr bgcolor="#dddddd"><th>Sent With</th><th>Macros</th></tr>
64 <tr><td>xxfi_connect</td>    <td>daemon_name, if_name, if_addr, j, _</td></tr>
65 <tr><td>xxfi_helo</td>       <td>tls_version, cipher, cipher_bits, cert_subject, cert_issuer</td></tr>
66 <tr><td>xxfi_envfrom</td>    <td>i, auth_type, auth_authen, auth_ssf, auth_author,
67                 mail_mailer, mail_host, mail_addr</td></tr>
68 <tr><td>xxfi_envrcpt</td>    <td>rcpt_mailer, rcpt_host, rcpt_addr</td></tr>
69 </table>
70 <p>
71 All macros stay in effect from the point they are received until the
72 end of the connection for the first two sets, the end of the message
73 for the third (xxfi_envfrom), and just for each recipient for the
74 final set (xxfi_envrcpt).
75 <p>
76 The macro list can be changed using the confMILTER_MACROS_* options in
77 sendmail.mc.  The scopes of such macros will be determined by when
78 they are set by sendmail.  For descriptions of macros' values, please
79 see the "Sendmail Installation and Operation Guide" provided with your
80 sendmail distribution.
81
82 </td>
83 </tr>
84
85 </table>
86
87 <hr size="1">
88 <font size="-1">
89 Copyright (c) 2000, 2002-2003 Sendmail, Inc. and its suppliers.
90 All rights reserved.
91 <br>
92 By using this file, you agree to the terms and conditions set
93 forth in the LICENSE.
94 </font>
95 </body>
96 </html>