1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2002 Ximian Inc.
5 * Authors: Jeffrey Stedfast <fejj@ximian.com>
6 * Michael Zucchi <notzed@ximian.com>
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of version 2 of the GNU Lesser General Public
10 * License as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this program; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
23 #ifndef _CAMEL_MIME_FILTER_CANON_H
24 #define _CAMEL_MIME_FILTER_CANON_H
26 #include <camel/camel-mime-filter.h>
28 #define CAMEL_MIME_FILTER_CANON_TYPE (camel_mime_filter_canon_get_type ())
29 #define CAMEL_MIME_FILTER_CANON(obj) CAMEL_CHECK_CAST (obj, CAMEL_MIME_FILTER_CANON_TYPE, CamelMimeFilterCanon)
30 #define CAMEL_MIME_FILTER_CANON_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, CAMEL_MIME_FILTER_CANON_TYPE, CamelMimeFilterCanonClass)
31 #define CAMEL_IS_MIME_FILTER_CANON(obj) CAMEL_CHECK_TYPE (obj, CAMEL_MIME_FILTER_CANON_TYPE)
35 typedef struct _CamelMimeFilterCanon CamelMimeFilterCanon;
36 typedef struct _CamelMimeFilterCanonClass CamelMimeFilterCanonClass;
39 CAMEL_MIME_FILTER_CANON_CRLF = (1<<0), /* canoncialise end of line to crlf, otherwise canonicalise to lf only */
40 CAMEL_MIME_FILTER_CANON_FROM = (1<<1), /* escape "^From " using quoted-printable semantics into "=46rom " */
41 CAMEL_MIME_FILTER_CANON_STRIP = (1<<2), /* strip trailing space */
44 struct _CamelMimeFilterCanon {
45 CamelMimeFilter parent;
50 struct _CamelMimeFilterCanonClass {
51 CamelMimeFilterClass parent_class;
54 CamelType camel_mime_filter_canon_get_type (void);
56 CamelMimeFilter *camel_mime_filter_canon_new(guint32 flags);
60 #endif /* ! _CAMEL_MIME_FILTER_CANON_H */