GMimeFilterCRLF

## GMimeFilterCRLF GMimeFilterCRLF — Convert line-endings from LF to CRLF or vise versa |

## Synopsis

                        GMimeFilterCRLF;
    enum                GMimeFilterCRLFDirection;
    enum                GMimeFilterCRLFMode;
    GMimeFilter*        g_mime_filter_crlf_new              (GMimeFilterCRLFDirection direction,
                                                             GMimeFilterCRLFMode mode);

## Object Hierarchy

      GObject
       +----GMimeFilter
             +----GMimeFilterCRLF

## Description

A GMimeFilter for converting between DOS and UNIX line-endings.

## Details

### GMimeFilterCRLF

    typedef struct _GMimeFilterCRLF GMimeFilterCRLF;

### enum GMimeFilterCRLFDirection

    typedef enum {
    	GMIME_FILTER_CRLF_ENCODE,
    	GMIME_FILTER_CRLF_DECODE
    } GMimeFilterCRLFDirection;

The direction in which the CRLF filter should convert.

`GMIME_FILTER_CRLF_ENCODE` | Convert from Unix line endings to CRLF.
`GMIME_FILTER_CRLF_DECODE` | Convert from CRLF to Unix line endings.

### enum GMimeFilterCRLFMode

    typedef enum {
    	GMIME_FILTER_CRLF_MODE_CRLF_DOTS,
    	GMIME_FILTER_CRLF_MODE_CRLF_ONLY
    } GMimeFilterCRLFMode;

The mode for the GMimeFilterCRLF filter.

`GMIME_FILTER_CRLF_MODE_CRLF_DOTS` | Escape lines beginning with a '.'
`GMIME_FILTER_CRLF_MODE_CRLF_ONLY` | Do only LF->CRLF conversion

### g_mime_filter_crlf_new ()

    GMimeFilter*        g_mime_filter_crlf_new              (GMimeFilterCRLFDirection direction,
                                                             GMimeFilterCRLFMode mode);

Creates a new GMimeFilterCRLF filter.

`direction` : | encode direction
`mode` : | crlf or crlf & dot mode
Returns : | a new crlf(/dot) filter.