Skip to content

pfftools: fix subject truncation for non-ASCII message subjects - #166

Open
wf34 wants to merge 1 commit into
libyal:mainfrom
wf34:export_non_ascii-title-fix
Open

wf34 wants to merge 1 commit into
libyal:mainfrom
wf34:export_non_ascii-title-fix

Conversation

@wf34

@wf34 wf34 commented Aug 11, 2026

Copy link
Copy Markdown

Did reproduce this when exporting a PST archive, containing MS Todo entires. Tasks with English titles did convert correctly, while titles in other languages have converted with the first letter cut away.

My understanding that this prefix cutting is due to MAPI subject-prefix control code removal, but affects non-ASCII languages.

The proposed change was tested to correct exporting of non-English titles, e.g., to not produce this:

  cyr byte0=-48  triggers=1   "Задача" -> "адача"
  cjk byte0=-28  triggers=1   "你好"   -> "\xa0好"

@joachimmetz

joachimmetz commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

@wf34 thanks for the report and proposed changes, do you have a test file that can be shared that demonstrates these characteristics?

@wf34

wf34 commented Oct 11, 2026

Copy link
Copy Markdown
Author

@wf34 thanks for the report and proposed changes, do you have a test file that can be shared that demonstrates these characteristics?

The file which I've used to resolve this issue originally is not fit for sharing; my intention was to produce a similar but minimal file following the same route (exporting a Microsoft Todo archive that has just a single task). I am learning now that this exporting has recenly become harder - Windows and desktop Outlook are needed for that.

I'll share my example here as soon as I have produced it.

@joachimmetz

Copy link
Copy Markdown
Member

Thanks that would be beneficial. A while back I started https://github.com/dfirlabs/pst-specimens. But just spotted I did not add my test script yet

@joachimmetz
joachimmetz force-pushed the main branch 3 times, most recently from 864af36 to 2ed3e85 Compare October 28, 2026 17:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants