From d6291ddc1fcf2537953b54c674f96ce651a16cd3 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 12 Jun 2000 22:32:54 +0000 Subject: Deprecated. 2000-06-12 Jeffrey Stedfast * camel-mime-filter-smtp.c: Deprecated. * providers/smtp/camel-smtp-transport.c (smtp_data): Updated to use camel-mime-filter-crlf with my 'dot' extension in place of camel-mime-filter-smtp * camel-mime-part.c (write_to_stream): Updated to reflect changes made to camel-mime-filter-crlf.c * camel-mime-filter-crlf.c (filter): Modified to be able to encode/decode dots ("\n.\n"<->"\n..\n"). Also fixed the decoder so that it should no longer get caught in an infinite loop. svn path=/trunk/; revision=3536 --- camel/camel-mime-filter-crlf.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'camel/camel-mime-filter-crlf.h') diff --git a/camel/camel-mime-filter-crlf.h b/camel/camel-mime-filter-crlf.h index 57b6869446..27f78030e3 100644 --- a/camel/camel-mime-filter-crlf.h +++ b/camel/camel-mime-filter-crlf.h @@ -1,7 +1,9 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Copyright (C) 2000 Helix Code Inc. * * Authors: Dan Winship + * Jeffrey Stedfast * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License @@ -35,11 +37,18 @@ typedef enum { CAMEL_MIME_FILTER_CRLF_DECODE } CamelMimeFilterCRLFDirection; +typedef enum { + CAMEL_MIME_FILTER_CRLF_MODE_CRLF_DOTS, + CAMEL_MIME_FILTER_CRLF_MODE_CRLF_ONLY, +} CamelMimeFilterCRLFMode; + struct _CamelMimeFilterCRLF { CamelMimeFilter parent; CamelMimeFilterCRLFDirection direction; + CamelMimeFilterCRLFMode mode; gboolean saw_cr; + gboolean saw_dot; }; struct _CamelMimeFilterCRLFClass { @@ -48,6 +57,6 @@ struct _CamelMimeFilterCRLFClass { GtkType camel_mime_filter_crlf_get_type (void); -CamelMimeFilter *camel_mime_filter_crlf_new (CamelMimeFilterCRLFDirection direction); +CamelMimeFilter *camel_mime_filter_crlf_new (CamelMimeFilterCRLFDirection direction, CamelMimeFilterCRLFMode mode); #endif /* ! _CAMEL_MIME_FILTER_CRLF_H */ -- cgit