Converts Outlook PST files for Overview
10K+
This is an Overview converter.
It extracts the contents of .pst email archives to .eml files.
Currently, we support Microsoft Outlook .pst files. The converter:
input.pst in the CWD.eml files in multipart/form-data on stdoutTo be extra-clear, the output is a MIME multipart message composed of MIME multipart messages:
.eml file is a message/rfc822. It is usually a MIME multipart
message: a sequence of "parts" separated by --RANDOM-BOUNDARY boundaries..eml files, and that sequence
is encoded as multipart/form-data, which is a MIME multipart message
separated by --DIFFERENT-RANDOM-BOUNDARY boundaries.Outlook doesn't store messages as they were received, so this converter does both MIME encodings. The output may look something like:
HTTP message
╟─001.eml
║ ╟─body, encoded as text/plain
║ ╟─body, encoded as text/html
║ ╟─body, encoded as application/rtf
║ ╟─attachment1.doc
║ ╙─attachment2.pdf
╟─002.eml
║ ╟─body, encoded as text/plain
║ ╟─body, encoded as text/html
║ ╟─body, encoded as application/rtf
║ ╙─attachment3.pdf
╟─003.eml
║ ╙─body, encoded as text/plain
...
PST files store messages in a proprietary format. This converter encodes each as
a message/rfc822 message.
In an Overview cluster, you'll want to use the Docker container:
docker run -e POLL_URL=http://worker-url:9032/Pst overview/overview-convert-pst:0.0.1
./dev will connect to the overviewserver_default network and run with
POLL_URL=http://overview-worker:9032/Pst.
docker build . will run tests.
To run valgrind:
Makefile to enable debugging (just change which lines are commented)docker build . and find the latest working Docker image IDdocker run -it --rm --privileged IMAGE_IDcd test/test-XXXapk add --update gdb valgrindgdb --args /app/extract-pst MIME-BOUNDARY '{"filename":"FILENAME","foo":"bar"}'valgrind /app/extract-pst MIME-BOUNDARY '{"filename":"FILENAME","foo":"bar"}'src/extract-pst.c is in C. That's because we rely on
libpst to do the extraction: its Python
wrapper is long obsolete and its readpst executable doesn't do streaming or
progress reports.
This extractor output is simple: .eml files. That's because:
.eml converter can be reused to convert eml and mbox files..eml files to open them in
virtually any email-related program..eml files in parallel.This software is Copyright 2011-2018 Jonathan Stray, and distributed under the terms of the GNU Affero General Public License. See the LICENSE file for details.
Content type
Image
Digest
Size
5.8 MB
Last updated
almost 7 years ago
docker pull overview/overview-convert-pst