Fix FSF address (Tobias Mueller, #470445)
[platform/upstream/evolution-data-server.git] / camel / camel-mime-filter-canon.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2002 Ximian Inc.
4  *
5  * Authors: Jeffrey Stedfast <fejj@ximian.com>
6  *          Michael Zucchi <notzed@ximian.com>
7  *
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.
11  *
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.
16  *
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.
21  */
22
23 #ifndef _CAMEL_MIME_FILTER_CANON_H
24 #define _CAMEL_MIME_FILTER_CANON_H
25
26 #include <camel/camel-mime-filter.h>
27
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)
32
33 G_BEGIN_DECLS
34
35 typedef struct _CamelMimeFilterCanon CamelMimeFilterCanon;
36 typedef struct _CamelMimeFilterCanonClass CamelMimeFilterCanonClass;
37
38 enum {
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 */
42 };
43
44 struct _CamelMimeFilterCanon {
45         CamelMimeFilter parent;
46
47         guint32 flags;
48 };
49
50 struct _CamelMimeFilterCanonClass {
51         CamelMimeFilterClass parent_class;
52 };
53
54 CamelType camel_mime_filter_canon_get_type (void);
55
56 CamelMimeFilter *camel_mime_filter_canon_new(guint32 flags);
57
58 G_END_DECLS
59
60 #endif /* ! _CAMEL_MIME_FILTER_CANON_H */