Package: pst-utils Version: 0.6.71-0.1 Severity: important Tags: patch Hi,
We have been using the tool to extract emails from the PST files. However with the recent observations, for some mails where the transport headers contain ARC headers, the email addresses are not extracted from the PST and only usernames are available in the MIME content of emails that are extracted. After enabling debug logs we got to know that all the internet headers are being ignored as bogus headers which also contains the headers To:, From: ... where we can see the email addresses available. As the tool is open-source we tried to debug the tool, post debug we identified that the the headers are ignored (as bogus headers) and the tool is using the metadata extracted to construct MIME content for the email where the email addresses are missing. We would like to point at two parts where the issue could be possibly happened. 1) Parsing the mail from PST - As the structure variable does not contain the addresses for these emails. 2) Ignoring the headers as bogus headers using the incorrect comparison. We are not able to look into the parsing part, but we did some changes to verify the behavior at identification part of bogus headers, probably not appropriate changes. Sample Data: Below is the sample MIME Content that is extracted for an email from PST by readpst utility From: user_1 To: user_2 CC: user_3 where user_1, user_2 and user_3 are just usernames without email addresses We would like to hear back as soon as possible. Thank you Sai Kalyan -- System Information: Debian Release: 10.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-8-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages pst-utils depends on: ii libc6 2.28-10 ii libgcc1 1:8.3.0-6 ii libgd3 2.2.5-5.2 ii libglib2.0-0 2.58.3-2+deb10u2 ii libgsf-1-114 1.14.45-1 ii libpst4 0.6.71-0.1 ii libstdc++6 8.3.0-6 pst-utils recommends no packages. pst-utils suggests no packages.