[Commits] [SCM] claws branch, master, updated. 3.17.3-124-g4d4a522

ticho at claws-mail.org ticho at claws-mail.org
Tue Mar 5 23:01:21 CET 2019


The branch, master has been updated
       via  4d4a522f4f20333fe2eee97c5bbe960a455626ed (commit)
      from  38c6e6f776c906514f5fbeec5259dc9d8382d96b (commit)

Summary of changes:
 src/plugins/litehtml_viewer/lh_viewer.c |    2 +-
 src/plugins/pgpinline/pgpinline.c       |    8 ++++----
 src/plugins/pgpmime/pgpmime.c           |    2 +-
 src/plugins/vcalendar/vcalendar.c       |    2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)


- Log -----------------------------------------------------------------
commit 4d4a522f4f20333fe2eee97c5bbe960a455626ed
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Tue Mar 5 23:00:52 2019 +0100

    Update callers of procmime_get_part_as_string()

diff --git a/src/plugins/litehtml_viewer/lh_viewer.c b/src/plugins/litehtml_viewer/lh_viewer.c
index 011bbe8..e3e1fdb 100644
--- a/src/plugins/litehtml_viewer/lh_viewer.c
+++ b/src/plugins/litehtml_viewer/lh_viewer.c
@@ -86,7 +86,7 @@ static void lh_show_mimepart(MimeViewer *_viewer, const gchar *infile,
 {
 	debug_print("LH: show_mimepart\n");
 	LHViewer *viewer = (LHViewer *)_viewer;
-	gchar *utf8 = procmime_get_part_as_string(partinfo);
+	gchar *utf8 = procmime_get_part_as_string(partinfo, TRUE);
 
 	if (utf8 == NULL) {
 		g_warning("LH: couldn't get MIME part file\n");
diff --git a/src/plugins/pgpinline/pgpinline.c b/src/plugins/pgpinline/pgpinline.c
index f0801c4..f69c791 100644
--- a/src/plugins/pgpinline/pgpinline.c
+++ b/src/plugins/pgpinline/pgpinline.c
@@ -115,7 +115,7 @@ static gboolean pgpinline_is_signed(MimeInfo *mimeinfo)
 			return data->is_signed;
 	}
 	
-	textdata = procmime_get_part_as_string(mimeinfo);
+	textdata = procmime_get_part_as_string(mimeinfo, TRUE);
 	if (!textdata)
 		return FALSE;
 	
@@ -164,7 +164,7 @@ static gint pgpinline_check_signature(MimeInfo *mimeinfo)
 	cm_return_val_if_fail(mimeinfo->privacy != NULL, 0);
 	data = (PrivacyDataPGP *) mimeinfo->privacy;
 
-	textdata = procmime_get_part_as_string(mimeinfo);
+	textdata = procmime_get_part_as_string(mimeinfo, TRUE);
 
 	if (!textdata) {
 		g_free(textdata);
@@ -265,7 +265,7 @@ static gboolean pgpinline_is_encrypted(MimeInfo *mimeinfo)
 		mimeinfo->subtype = g_strdup("plain");
 	}
 
-	textdata = procmime_get_part_as_string(mimeinfo);
+	textdata = procmime_get_part_as_string(mimeinfo, TRUE);
 	if (!textdata)
 		return FALSE;
 
@@ -317,7 +317,7 @@ static MimeInfo *pgpinline_decrypt(MimeInfo *mimeinfo)
 		return NULL;
 	}
 
-	textdata = procmime_get_part_as_string(mimeinfo);
+	textdata = procmime_get_part_as_string(mimeinfo, TRUE);
 	if (!textdata) {
 		gpgme_release(ctx);
 		privacy_set_error(_("Couldn't get text data."));
diff --git a/src/plugins/pgpmime/pgpmime.c b/src/plugins/pgpmime/pgpmime.c
index 5633e0f..61eed9b 100644
--- a/src/plugins/pgpmime/pgpmime.c
+++ b/src/plugins/pgpmime/pgpmime.c
@@ -293,7 +293,7 @@ static gboolean pgpmime_is_encrypted(MimeInfo *mimeinfo)
 	if (g_ascii_strcasecmp(tmpinfo->subtype, "octet-stream"))
 		return FALSE;
 	
-	textdata = procmime_get_part_as_string(tmpinfo);
+	textdata = procmime_get_part_as_string(tmpinfo, TRUE);
 	if (!textdata)
 		return FALSE;
 	
diff --git a/src/plugins/vcalendar/vcalendar.c b/src/plugins/vcalendar/vcalendar.c
index 0c0490f..fe604ef 100644
--- a/src/plugins/vcalendar/vcalendar.c
+++ b/src/plugins/vcalendar/vcalendar.c
@@ -651,7 +651,7 @@ gchar *vcalviewer_get_uid_from_mimeinfo(MimeInfo *mimeinfo)
 	gchar *res = NULL;
 	VCalEvent *event = NULL;
 
-	compstr = procmime_get_part_as_string(mimeinfo);
+	compstr = procmime_get_part_as_string(mimeinfo, TRUE);
 	
 	event = vcal_get_event_from_ical(compstr, NULL);
 	if (event)

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list