From 6744815102df4dc71901b786f762cc4b5f601fad Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sun, 12 Oct 2014 11:14:09 +0200 Subject: [PATCH] SolipaMail: aggiustamento di ::get_as_string per camel >= 3.8. --- src/mail.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mail.c b/src/mail.c index d409e7c..1d8e787 100644 --- a/src/mail.c +++ b/src/mail.c @@ -470,8 +470,15 @@ solipa_mail_get_as_string (SolipaMail *mail) return NULL; } -#ifndef CAMEL3 +#ifdef CAMEL3 error = NULL; + if (!g_seekable_seek (G_SEEKABLE (mem), 0, G_SEEK_SET, NULL, &error)) + { + g_warning ("Unable to reset the camel mem stream: %s.", + error != NULL && error->message != NULL ? error->message : "no details"); + return NULL; + } +#else if (camel_stream_reset (mem, &error) < 0) { g_warning ("Unable to reset the camel mem stream: %s.", -- 2.49.0