aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-filter-chomp.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-02-28 07:45:28 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-02-28 07:45:28 +0800
commite83a759e4ea8eec0615f8306cacacd620702dc2f (patch)
treebe33277fa2fe2c1369dc385b3ab23c73dd0ebc2e /camel/camel-mime-filter-chomp.h
parent9cf2e390356256917fe31ae544e39dfc35a879ce (diff)
downloadgsoc2013-evolution-e83a759e4ea8eec0615f8306cacacd620702dc2f.tar
gsoc2013-evolution-e83a759e4ea8eec0615f8306cacacd620702dc2f.tar.gz
gsoc2013-evolution-e83a759e4ea8eec0615f8306cacacd620702dc2f.tar.bz2
gsoc2013-evolution-e83a759e4ea8eec0615f8306cacacd620702dc2f.tar.lz
gsoc2013-evolution-e83a759e4ea8eec0615f8306cacacd620702dc2f.tar.xz
gsoc2013-evolution-e83a759e4ea8eec0615f8306cacacd620702dc2f.tar.zst
gsoc2013-evolution-e83a759e4ea8eec0615f8306cacacd620702dc2f.zip
New stream filter that chomps excess trailing whitespace from the end of
2002-02-27 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-filter-chomp.c (camel_mime_filter_chomp_new): New stream filter that chomps excess trailing whitespace from the end of the stream. This is needed to update the PGP/MIME code to comply with rfc3156. * camel-pgp-mime.c (camel_pgp_mime_part_verify): Don't attach a from filter, if it ain't from-filtered already, then we'll just be breaking stuff. To become rfc3156 compliant, add a chomp filter here. (camel_pgp_mime_part_sign): Add a chomp filter here too. svn path=/trunk/; revision=15863
Diffstat (limited to 'camel/camel-mime-filter-chomp.h')
-rw-r--r--camel/camel-mime-filter-chomp.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/camel/camel-mime-filter-chomp.h b/camel/camel-mime-filter-chomp.h
new file mode 100644
index 0000000000..781f2a6368
--- /dev/null
+++ b/camel/camel-mime-filter-chomp.h
@@ -0,0 +1,47 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * Copyright (C) 2002 Ximian Inc.
+ *
+ * Authors: Jeffrey Stedfast <fejj@ximian.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _CAMEL_MIME_FILTER_CHOMP_H
+#define _CAMEL_MIME_FILTER_CHOMP_H
+
+#include <camel/camel-mime-filter.h>
+
+#define CAMEL_MIME_FILTER_CHOMP_TYPE (camel_mime_filter_chomp_get_type ())
+#define CAMEL_MIME_FILTER_CHOMP(obj) CAMEL_CHECK_CAST (obj, CAMEL_MIME_FILTER_CHOMP_TYPE, CamelMimeFilterChomp)
+#define CAMEL_MIME_FILTER_CHOMP_CLASS(klass) CAMEL_CHECK_CLASS_CAST (klass, CAMEL_MIME_FILTER_CHOMP_TYPE, CamelMimeFilterChompClass)
+#define CAMEL_IS_MIME_FILTER_CHOMP(obj) CAMEL_CHECK_TYPE (obj, CAMEL_MIME_FILTER_CHOMP_TYPE)
+
+typedef struct _CamelMimeFilterChompClass CamelMimeFilterChompClass;
+
+struct _CamelMimeFilterChomp {
+ CamelMimeFilter parent;
+
+};
+
+struct _CamelMimeFilterChompClass {
+ CamelMimeFilterClass parent_class;
+};
+
+CamelType camel_mime_filter_chomp_get_type (void);
+
+CamelMimeFilter *camel_mime_filter_chomp_new (void);
+
+#endif /* ! _CAMEL_MIME_FILTER_CHOMP_H */