On Thu, 2021-03-18 at 17:14 +0000, Surla, Sai Kalyan wrote: > Please find a PST file
As far as I can tell from the `readpst -d debug.log` output, this new PST file does not have any MIME headers in it, so it is expected that fixing the valid_headers function will do nothing. I expect if you look at the PST file in Outlook you will see there are no MIME headers. I noticed something in common between the original PST file and the new PST file you have sent, they both have an unknown MAPI type 0x39fe that contains the email addresses of the recipients. So I will try to find out in the PST file specifications what this MAPI type is for and then add some code to libpst and readpst to decode it. $ rm -f * ; /usr/bin/readpst -d debug.log ~/stash/samples/pst/bugs.debian.org/984581/forpst.pst ; echo ; grep -A5 'mapi-id: 0x39fe' debug.log Opening PST file and indexes... Processing Folder "Deleted Items" Processing Folder "for pst" "Outlook Data File" - 2 items done, 0 items skipped. "for pst" - 1 items done, 0 items skipped. 2356166 pst_process libpst.c(2194) #10 - mapi-id: 0x39fe type: 0x1f length: 0x13 2356166 pst_process libpst.c(3172) Unknown type 0x39fe Unicode String Data [size = 0x13] 2356166 pst_process libpst.c(3174) 2356166 000000 :64 65 65 70 74 69 73 6b 40 67 6d 61 69 6c 2e 63 :deeptisk@gmail.c 2356166 000010 :6f 6d 00 :om. $ rm -f * ; /usr/bin/readpst -d debug.log ~/stash/samples/pst/bugs.debian.org/984581/u3si.pst ; echo ; grep -A5 'mapi-id: 0x39fe' debug.log Opening PST file and indexes... Processing Folder "Deleted Items" Processing Folder "Sent Items" "Outlook Data File" - 2 items done, 0 items skipped. "Sent Items" - 1 items done, 0 items skipped. 2356205 pst_process libpst.c(2194) #13 - mapi-id: 0x39fe type: 0x1f length: 0x16 2356205 pst_process libpst.c(3172) Unknown type 0x39fe Unicode String Data [size = 0x16] 2356205 pst_process libpst.c(3174) 2356205 000000 :4d 79 55 73 65 72 31 40 65 78 63 68 31 33 66 61 :MyUser1@exch13fa 2356205 000010 :73 2e 6c 6f 63 00 :s.loc. -- 2356205 pst_process libpst.c(2194) #13 - mapi-id: 0x39fe type: 0x1f length: 0x1c 2356205 pst_process libpst.c(3172) Unknown type 0x39fe Unicode String Data [size = 0x1c] 2356205 pst_process libpst.c(3174) 2356205 000000 :41 64 6d 69 6e 69 73 74 72 61 74 6f 72 40 65 78 :Administrator@ex 2356205 000010 :63 68 31 33 66 61 73 2e 6c 6f 63 00 :ch13fas.loc. -- bye, pabs https://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part