diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-03-06 22:39:30 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-03-06 22:39:30 +0800 |
commit | a0c1a491f146e480589496c0714a9be6857d2c26 (patch) | |
tree | 535af3bac6eac9d68762bae60b1ee8c46b2fce68 /camel/providers | |
parent | 9b665c1a82813d17deb3c50d357bc60f13d041dc (diff) | |
download | gsoc2013-evolution-a0c1a491f146e480589496c0714a9be6857d2c26.tar.gz gsoc2013-evolution-a0c1a491f146e480589496c0714a9be6857d2c26.tar.zst gsoc2013-evolution-a0c1a491f146e480589496c0714a9be6857d2c26.zip |
Fixes for bug #39168
2003-03-06 Jeffrey Stedfast <fejj@ximian.com>
Fixes for bug #39168
* providers/local/camel-spool-summary.c: Get rid of the empty
private struct.
* providers/local/camel-mbox-summary.c: Get rid of the empty
private struct.
* camel-vee-store.c: Get rid of the empty private struct.
* camel-mime-filter-from.c: Get rid of the empty private struct.
2003-03-05 Jeffrey Stedfast <fejj@ximian.com>
* providers/sendmail/camel-sendmail-transport.c
(sendmail_send_to): Add a CRLF filter to the output stream to
convert any CRLF sequences into plain old line-feeds to work
around a bug in some local transport programs.
svn path=/trunk/; revision=20187
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/local/camel-mbox-summary.c | 10 | ||||
-rw-r--r-- | camel/providers/local/camel-mbox-summary.h | 2 | ||||
-rw-r--r-- | camel/providers/local/camel-spool-summary.c | 10 | ||||
-rw-r--r-- | camel/providers/local/camel-spool-summary.h | 3 | ||||
-rw-r--r-- | camel/providers/sendmail/camel-sendmail-transport.c | 11 |
5 files changed, 14 insertions, 22 deletions
diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c index 41ebe28fa6..42d26e8a5b 100644 --- a/camel/providers/local/camel-mbox-summary.c +++ b/camel/providers/local/camel-mbox-summary.c @@ -46,11 +46,6 @@ #define CAMEL_MBOX_SUMMARY_VERSION (0x1000) -struct _CamelMboxSummaryPrivate { -}; - -#define _PRIVATE(o) (((CamelMboxSummary *)(o))->priv) - static int summary_header_load (CamelFolderSummary *, FILE *); static int summary_header_save (CamelFolderSummary *, FILE *); @@ -132,11 +127,8 @@ camel_mbox_summary_class_init(CamelMboxSummaryClass *klass) static void camel_mbox_summary_init(CamelMboxSummary *obj) { - struct _CamelMboxSummaryPrivate *p; struct _CamelFolderSummary *s = (CamelFolderSummary *)obj; - - p = _PRIVATE(obj) = g_malloc0(sizeof(*p)); - + /* subclasses need to set the right instance data sizes */ s->message_info_size = sizeof(CamelMboxMessageInfo); s->content_info_size = sizeof(CamelMboxMessageContentInfo); diff --git a/camel/providers/local/camel-mbox-summary.h b/camel/providers/local/camel-mbox-summary.h index 13c5f1c027..0588a9a81b 100644 --- a/camel/providers/local/camel-mbox-summary.h +++ b/camel/providers/local/camel-mbox-summary.h @@ -46,8 +46,6 @@ typedef struct _CamelMboxMessageInfo { struct _CamelMboxSummary { CamelLocalSummary parent; - struct _CamelMboxSummaryPrivate *priv; - CamelFolderChangeInfo *changes; /* used to build change sets */ size_t folder_size; /* size of the mbox file, last sync */ diff --git a/camel/providers/local/camel-spool-summary.c b/camel/providers/local/camel-spool-summary.c index d914af87e2..7991a881cc 100644 --- a/camel/providers/local/camel-spool-summary.c +++ b/camel/providers/local/camel-spool-summary.c @@ -44,11 +44,6 @@ #define CAMEL_SPOOL_SUMMARY_VERSION (0x400) -struct _CamelSpoolSummaryPrivate { -}; - -#define _PRIVATE(o) (((CamelSpoolSummary *)(o))->priv) - static int spool_summary_load(CamelLocalSummary *cls, int forceindex, CamelException *ex); static int spool_summary_check(CamelLocalSummary *cls, CamelFolderChangeInfo *changeinfo, CamelException *ex); @@ -95,11 +90,8 @@ camel_spool_summary_class_init(CamelSpoolSummaryClass *klass) static void camel_spool_summary_init(CamelSpoolSummary *obj) { - struct _CamelSpoolSummaryPrivate *p; struct _CamelFolderSummary *s = (CamelFolderSummary *)obj; - - p = _PRIVATE(obj) = g_malloc0(sizeof(*p)); - + /* message info size is from mbox parent */ /* and a unique file version */ diff --git a/camel/providers/local/camel-spool-summary.h b/camel/providers/local/camel-spool-summary.h index ac846220f4..eda6e64fab 100644 --- a/camel/providers/local/camel-spool-summary.h +++ b/camel/providers/local/camel-spool-summary.h @@ -36,8 +36,7 @@ typedef struct _CamelSpoolSummaryClass CamelSpoolSummaryClass; struct _CamelSpoolSummary { CamelMboxSummary parent; - - struct _CamelSpoolSummaryPrivate *priv; + }; struct _CamelSpoolSummaryClass { diff --git a/camel/providers/sendmail/camel-sendmail-transport.c b/camel/providers/sendmail/camel-sendmail-transport.c index 7ba567832b..f7059198b0 100644 --- a/camel/providers/sendmail/camel-sendmail-transport.c +++ b/camel/providers/sendmail/camel-sendmail-transport.c @@ -34,6 +34,8 @@ #include <string.h> #include "camel-sendmail-transport.h" +#include "camel-mime-filter-crlf.h" +#include "camel-stream-filter.h" #include "camel-mime-message.h" #include "camel-data-wrapper.h" #include "camel-stream-fs.h" @@ -88,6 +90,8 @@ sendmail_send_to (CamelTransport *transport, CamelMimeMessage *message, struct _header_raw *header, *savedbcc, *n, *tail; const char *from_addr, *addr, **argv; int i, len, fd[2], nullfd, wstat; + CamelStreamFilter *filter; + CamelMimeFilter *crlf; sigset_t mask, omask; CamelStream *out; pid_t pid; @@ -185,6 +189,13 @@ sendmail_send_to (CamelTransport *transport, CamelMimeMessage *message, /* Parent process. Write the message out. */ close (fd[0]); out = camel_stream_fs_new_with_fd (fd[1]); + filter = camel_stream_filter_new_with_stream (out); + crlf = camel_mime_filter_crlf_new (CAMEL_MIME_FILTER_CRLF_DECODE, CAMEL_MIME_FILTER_CRLF_MODE_CRLF_ONLY); + camel_stream_filter_add (filter, crlf); + camel_object_unref (crlf); + camel_object_unref (out); + + out = (CamelStream *) filter; if (camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (message), out) == -1 || camel_stream_close (out) == -1) { camel_object_unref (CAMEL_OBJECT (out)); |