1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GMimeFilterCRLF</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GMime 2.6 Reference Manual">
8 <link rel="up" href="Filters.html" title="Stream Filters">
9 <link rel="prev" href="GMimeFilterCharset.html" title="GMimeFilterCharset">
10 <link rel="next" href="GMimeFilterEnriched.html" title="GMimeFilterEnriched">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17 <td><a accesskey="p" href="GMimeFilterCharset.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="Filters.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GMime 2.6 Reference Manual</th>
21 <td><a accesskey="n" href="GMimeFilterEnriched.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GMimeFilterCRLF.synopsis" class="shortcut">Top</a>
26 <a href="#GMimeFilterCRLF.description" class="shortcut">Description</a>
28 <a href="#GMimeFilterCRLF.object-hierarchy" class="shortcut">Object Hierarchy</a>
31 <div class="refentry">
32 <a name="GMimeFilterCRLF"></a><div class="titlepage"></div>
33 <div class="refnamediv"><table width="100%"><tr>
35 <h2><span class="refentrytitle"><a name="GMimeFilterCRLF.top_of_page"></a>GMimeFilterCRLF</span></h2>
36 <p>GMimeFilterCRLF — Convert line-endings from LF to CRLF or vise versa</p>
38 <td valign="top" align="right"></td>
40 <div class="refsynopsisdiv">
41 <a name="GMimeFilterCRLF.synopsis"></a><h2>Synopsis</h2>
42 <pre class="synopsis">struct <a class="link" href="GMimeFilterCRLF.html#GMimeFilterCRLF-struct" title="struct GMimeFilterCRLF">GMimeFilterCRLF</a>;
43 <a class="link" href="GMimeFilter.html" title="GMimeFilter"><span class="returnvalue">GMimeFilter</span></a> * <a class="link" href="GMimeFilterCRLF.html#g-mime-filter-crlf-new" title="g_mime_filter_crlf_new ()">g_mime_filter_crlf_new</a> (<em class="parameter"><code><span class="type">gboolean</span> encode</code></em>,
44 <em class="parameter"><code><span class="type">gboolean</span> dots</code></em>);
47 <div class="refsect1">
48 <a name="GMimeFilterCRLF.object-hierarchy"></a><h2>Object Hierarchy</h2>
49 <pre class="synopsis">
51 +----<a class="link" href="GMimeFilter.html" title="GMimeFilter">GMimeFilter</a>
55 <div class="refsect1">
56 <a name="GMimeFilterCRLF.description"></a><h2>Description</h2>
58 A <a class="link" href="GMimeFilter.html" title="GMimeFilter"><span class="type">GMimeFilter</span></a> for converting between DOS and UNIX line-endings.
61 <div class="refsect1">
62 <a name="GMimeFilterCRLF.details"></a><h2>Details</h2>
63 <div class="refsect2">
64 <a name="GMimeFilterCRLF-struct"></a><h3>struct GMimeFilterCRLF</h3>
65 <pre class="programlisting">struct GMimeFilterCRLF;</pre>
67 A filter to convert between line-ending formats and encode/decode
68 lines beginning with a '.'.
70 <div class="variablelist"><table border="0">
71 <col align="left" valign="top">
76 <div class="refsect2">
77 <a name="g-mime-filter-crlf-new"></a><h3>g_mime_filter_crlf_new ()</h3>
78 <pre class="programlisting"><a class="link" href="GMimeFilter.html" title="GMimeFilter"><span class="returnvalue">GMimeFilter</span></a> * g_mime_filter_crlf_new (<em class="parameter"><code><span class="type">gboolean</span> encode</code></em>,
79 <em class="parameter"><code><span class="type">gboolean</span> dots</code></em>);</pre>
81 Creates a new <a class="link" href="GMimeFilterCRLF.html" title="GMimeFilterCRLF"><span class="type">GMimeFilterCRLF</span></a> filter.
84 If <em class="parameter"><code>encode</code></em> is <code class="literal">TRUE</code>, then lone line-feeds ('\n') will be 'encoded'
85 into the canonical CRLF end-of-line sequence ("\r\n") otherwise
86 CRLF sequences will be 'decoded' into the UNIX line-ending form
90 The <em class="parameter"><code>dots</code></em> parameter tells the filter whether or not it should
91 encode or decode lines beginning with a dot ('.'). If both <em class="parameter"><code>encode</code></em>
92 and <em class="parameter"><code>dots</code></em> are <code class="literal">TRUE</code>, then a '.' at the beginning of a line will be
93 'encoded' into "..". If <em class="parameter"><code>encode</code></em> is <code class="literal">FALSE</code>, then ".." at the
94 beginning of a line will be decoded into a single '.'.
96 <div class="variablelist"><table border="0">
97 <col align="left" valign="top">
100 <td><p><span class="term"><em class="parameter"><code>encode</code></em> :</span></p></td>
102 <code class="literal">TRUE</code> if the filter should encode or <code class="literal">FALSE</code> otherwise</td>
105 <td><p><span class="term"><em class="parameter"><code>dots</code></em> :</span></p></td>
106 <td>encode/decode dots (as for SMTP)</td>
109 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
110 <td>a new <a class="link" href="GMimeFilterCRLF.html" title="GMimeFilterCRLF"><span class="type">GMimeFilterCRLF</span></a> filter.</td>
119 Generated by GTK-Doc V1.18</div>