[balsa] Reset the GMimeStream for a new message
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Reset the GMimeStream for a new message
- Date: Thu, 4 May 2017 14:04:17 +0000 (UTC)
commit 8272e8ceddd380843baf3a609138b5a062343c5b
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Thu May 4 10:03:13 2017 -0400
Reset the GMimeStream for a new message
* libbalsa/mailbox_pop3.c (message_cb): reset the GMimeStream
before passing it to libbalsa_mailbox_add_message.
ChangeLog | 5 +++++
libbalsa/mailbox_pop3.c | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 052260f..f4ebf84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-04 Peter Bloomfield <pbloomfield bellsouth net>
+
+ * libbalsa/mailbox_pop3.c (message_cb): reset the GMimeStream
+ before passing it to libbalsa_mailbox_add_message.
+
2017-05-02 Peter Bloomfield <pbloomfield bellsouth net>
Do not dereference NULL GError pointer
diff --git a/libbalsa/mailbox_pop3.c b/libbalsa/mailbox_pop3.c
index 2ef2225..7fadf2a 100644
--- a/libbalsa/mailbox_pop3.c
+++ b/libbalsa/mailbox_pop3.c
@@ -430,6 +430,7 @@ message_cb(const gchar *buffer,
if (fd->filter_path == NULL) {
GError *add_err = NULL;
+ g_mime_stream_reset(fd->handler->mbx_stream);
result = libbalsa_mailbox_add_message(LIBBALSA_MAILBOX_POP3(fd->mailbox)->inbox,
fd->handler->mbx_stream,
LIBBALSA_MESSAGE_FLAG_NEW | LIBBALSA_MESSAGE_FLAG_RECENT, &add_err);
if (!result) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]