freebsd-nq/contrib/sendmail/libmilter/docs/xxfi_header.html

112 lines
2.7 KiB
HTML
Raw Normal View History

2007-04-09 01:38:51 +00:00
<HTML>
<HEAD><TITLE>xxfi_header</TITLE></HEAD>
<BODY>
2004-08-01 01:04:57 +00:00
<!--
2007-04-09 01:38:51 +00:00
$Id: xxfi_header.html,v 1.17 2006/12/21 18:30:36 ca Exp $
2004-08-01 01:04:57 +00:00
-->
2007-04-09 01:38:51 +00:00
<H1>xxfi_header</H1>
2002-02-17 21:56:45 +00:00
2007-04-09 01:38:51 +00:00
<TABLE border="0" cellspacing=4 cellpadding=4>
2002-02-17 21:56:45 +00:00
<!---------- Synopsis ----------->
2007-04-09 01:38:51 +00:00
<TR><TH valign="top" align=left width=100>SYNOPSIS</TH><TD>
<PRE>
2002-02-17 21:56:45 +00:00
#include &lt;libmilter/mfapi.h&gt;
sfsistat (*xxfi_header)(
2007-04-09 01:38:51 +00:00
SMFICTX *ctx,
char *headerf,
char *headerv
2002-02-17 21:56:45 +00:00
);
2007-04-09 01:38:51 +00:00
</PRE>
2002-02-17 21:56:45 +00:00
Handle a message header.
2007-04-09 01:38:51 +00:00
</TD></TR>
2002-02-17 21:56:45 +00:00
<!----------- Description ---------->
2007-04-09 01:38:51 +00:00
<TR><TH valign="top" align=left>DESCRIPTION</TH><TD>
<TABLE border="1" cellspacing=1 cellpadding=4>
<TR align="left" valign=top>
<TH width="80">Called When</TH>
<TD>xxfi_header is called once for each message header.</TD>
</TR>
<TR align="left" valign=top>
<TH>Default Behavior</TH>
<TD>Do nothing; return SMFIS_CONTINUE.</TD>
</TR>
</TABLE>
2002-02-17 21:56:45 +00:00
<!----------- Arguments ---------->
2007-04-09 01:38:51 +00:00
<TR><TH valign="top" align=left>ARGUMENTS</TH><TD>
<TABLE border="1" cellspacing=0>
<TR bgcolor="#dddddd"><TH>Argument</TH><TH>Description</TH></TR>
<TR valign="top"><TD>ctx</TD>
<TD>Opaque context structure.
</TD></TR>
<TR valign="top"><TD>headerf</TD>
<TD> Header field name.
</TD></TR>
<TR valign="top"><TD>headerv</TD>
<TD>Header field value.
The content of the header may include folded white space,
i.e., multiple lines with following white space
where lines are separated by LF (not CR/LF).
The trailing line terminator (CR/LF) is removed.
2007-04-09 01:38:51 +00:00
</TD></TR>
</TABLE>
</TD></TR>
2002-02-17 21:56:45 +00:00
<!----------- Notes ---------->
2007-04-09 01:38:51 +00:00
<TR>
<TH valign="top" align=left>NOTES</TH>
<TD>
<UL>
<LI>Starting with sendmail 8.14, spaces after the colon in a header
field are preserved if requested using the flag
<A HREF="xxfi_negotiate.html#SMFIP_HDR_LEADSPC"><CODE>SMFIP_HDR_LEADSPC</CODE></A>.
That is, the header
2002-02-17 21:56:45 +00:00
2007-04-09 01:38:51 +00:00
<PRE>
From: sender &lt;f@example.com&gt;
To: user &lt;t@example.com&gt;
Subject:no
</PRE>
will be sent to a milter as
<PRE>
"From", " sender &lt;f@example.com&gt;"
"To", " user &lt;t@example.com&gt;"
"Subject", "no"
</PRE>
while previously
(or without the flag
<A HREF="xxfi_negotiate.html#SMFIP_HDR_LEADSPC"><CODE>SMFIP_HDR_LEADSPC</CODE></A>)
it was:
<PRE>
"From", "sender &lt;f@example.com&gt;"
"To", "user &lt;t@example.com&gt;"
"Subject", "no"
</PRE>
<LI>Later filters will see header changes/additions made by earlier ones.
<LI>For much more detail about header format, please see
RFC <A href="http://www.rfc-editor.org/rfc/rfc822.html">822</A>
and
RFC <A href="http://www.rfc-editor.org/rfc/rfc2822.html">2822</A>
</UL>
</TD>
</TR>
</TABLE>
<HR size="1">
<FONT size="-1">
Copyright (c) 2000, 2003, 2006 Sendmail, Inc. and its suppliers.
2002-02-17 21:56:45 +00:00
All rights reserved.
2007-04-09 01:38:51 +00:00
<BR>
2002-02-17 21:56:45 +00:00
By using this file, you agree to the terms and conditions set
2003-03-29 19:12:53 +00:00
forth in the LICENSE.
2007-04-09 01:38:51 +00:00
</FONT>
</BODY>
</HTML>