File: 0001-Add-debugging-for-header-detection.patch

package info (click to toggle)
libpst 0.6.76-1.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,928 kB
  • sloc: ansic: 7,673; sh: 4,730; javascript: 1,950; cpp: 1,691; makefile: 137; xml: 3
file content (25 lines) | stat: -rw-r--r-- 910 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From a3bc33517a2ca1fc5f088d3d73debad9dc66aca2 Mon Sep 17 00:00:00 2001
From: Paul Wise <pabs3@bonedaddy.net>
Date: Sun, 30 May 2021 10:02:14 +0800
Subject: [PATCH 1/3] Add debugging for header detection

---
 src/readpst.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/readpst.c b/src/readpst.c
index 6d94f15f3..8de8fef9c 100644
--- a/src/readpst.c
+++ b/src/readpst.c
@@ -1591,6 +1591,8 @@ void write_normal_email(FILE* f_output, char f_name[], pst_item* item, int mode,
     DEBUG_ENT("write_normal_email");
 
     pst_convert_utf8_null(item, &item->email->header);
+    DEBUG_INFO(("PST headers\n%s\n", item->email->header.str));
+    DEBUG_INFO(("Extra MIME headers\n%s\n", *extra_mime_headers));
     headers = valid_headers(item->email->header.str) ? item->email->header.str :
               valid_headers(*extra_mime_headers)     ? *extra_mime_headers     :
               NULL;
-- 
2.32.0