changeset 255:ab87f9070ed2 stable-0-6-49

fix to ignore embedded objects that are not email messages
author Carl Byington <carl@five-ten-sg.com>
date Mon, 13 Sep 2010 14:47:09 -0700
parents fb66d428347d
children a863de65e5b8
files ChangeLog NEWS configure.in libpst.spec.in src/readpst.c
diffstat 5 files changed, 19 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Sep 02 12:28:01 2010 -0700
+++ b/ChangeLog	Mon Sep 13 14:47:09 2010 -0700
@@ -1,3 +1,7 @@
+LibPST 0.6.49 (2010-09-13)
+===============================
+    * fix to ignore embedded objects that are not email messages
+
 LibPST 0.6.48 (2010-09-02)
 ===============================
     * fix for broken internet headers from Outlook.
--- a/NEWS	Thu Sep 02 12:28:01 2010 -0700
+++ b/NEWS	Mon Sep 13 14:47:09 2010 -0700
@@ -1,3 +1,4 @@
+0.6.49  2010-09-13 fix to ignore embedded objects that are not email messages
 0.6.48  2010-09-02 fix for broken internet headers from Outlook, change to mboxrd quoting
 0.6.47  2010-05-07 patches from Kenneth Berland for solaris
 0.6.46  2010-02-13 fixes for fedora 13 change in implicit dso linking semantics
--- a/configure.in	Thu Sep 02 12:28:01 2010 -0700
+++ b/configure.in	Mon Sep 13 14:47:09 2010 -0700
@@ -1,5 +1,5 @@
 AC_PREREQ(2.59)
-AC_INIT(libpst,0.6.48,carl@five-ten-sg.com)
+AC_INIT(libpst,0.6.49,carl@five-ten-sg.com)
 AC_CONFIG_SRCDIR([src/libpst.c])
 AC_CONFIG_HEADER([config.h])
 AM_INIT_AUTOMAKE
@@ -19,7 +19,7 @@
 #  6. libtool will build libpst.so.x.y.z where the SONAME is libpst.so.x
 #     and x=current-age, y=age, z=revision
 
-libpst_version_info='4:3:0'
+libpst_version_info='4:4:0'
 AC_SUBST(LIBPST_VERSION_INFO, [$libpst_version_info])
 libpst_so_major='4'
 AC_SUBST(LIBPST_SO_MAJOR, [$libpst_so_major])
@@ -33,6 +33,7 @@
 # 0.6.43    libpst.so.4     libpst.so.4.0.1
 # 0.6.47    libpst.so.4     libpst.so.4.0.2
 # 0.6.48    libpst.so.4     libpst.so.4.0.3
+# 0.6.49    libpst.so.4     libpst.so.4.0.4
 
 
 
--- a/libpst.spec.in	Thu Sep 02 12:28:01 2010 -0700
+++ b/libpst.spec.in	Mon Sep 13 14:47:09 2010 -0700
@@ -147,6 +147,10 @@
 
 
 %changelog
+* Mon Sep 13 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.49-1
+- fix to ignore embedded objects that are not email messages
+  fedora bugzilla 633498
+
 * Thu Sep 02 2010 Carl Byington <carl@five-ten-sg.com> - 0.6.48-1
 - fix for broken internet headers from Outlook
 - fix ax_python.m4 to look for python2.7
--- a/src/readpst.c	Thu Sep 02 12:28:01 2010 -0700
+++ b/src/readpst.c	Mon Sep 13 14:47:09 2010 -0700
@@ -1012,9 +1012,13 @@
     if (!item) {
         DEBUG_WARN(("write_embedded_message: pst_parse_item was unable to parse the embedded message in attachment ID %llu", attach->i_id));
     } else {
-        fprintf(f_output, "\n--%s\n", boundary);
-        fprintf(f_output, "Content-Type: %s\n\n", attach->mimetype.str);
-        write_normal_email(f_output, "", item, MODE_NORMAL, 0, pf, 0, extra_mime_headers);
+        if (!item->email) {
+            DEBUG_WARN(("write_embedded_message: pst_parse_item returned type %d, not an email message", item->type));
+        } else {
+            fprintf(f_output, "\n--%s\n", boundary);
+            fprintf(f_output, "Content-Type: %s\n\n", attach->mimetype.str);
+            write_normal_email(f_output, "", item, MODE_NORMAL, 0, pf, 0, extra_mime_headers);
+        }
         pst_freeItem(item);
     }