Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98193

Re: Creating PST files using Python

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Cameron Simpson <cs@zip.com.au>
Newsgroups comp.lang.python
Subject Re: Creating PST files using Python
Date Wed, 4 Nov 2015 11:10:23 +1100
Lines 48
Message-ID <mailman.2.1446596099.20590.python-list@python.org> (permalink)
References <CAPTjJmrVrLYrFvHuMR1Sjv59D_8UAA_wovKBRXfEdnU3oTPCPQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii; format=flowed
X-Trace news.uni-berlin.de 5Mj9/SpgKpwbkivHEYaUiAjn3awOXRRYmsHnKeFKptFw==
Return-Path <cameron@cskk.homeip.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'url:pypi': 0.03; 'subject:Python': 0.05; 'pages.': 0.07; 'pretend': 0.07; 'url:msdn': 0.07; 'cc:addr:python-list': 0.09; 'pop3': 0.09; 'subject:files': 0.09; 'subject:using': 0.09; 'sections': 0.13; 'wed,': 0.15; 'importing': 0.15; 'server,': 0.15; '>on': 0.16; 'cc:name:python list': 0.16; 'count;': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'layout,': 0.16; 'maildir': 0.16; 'message-id:@cskk.homeip.net': 0.16; "outlook's": 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'rfc-822': 0.16; 'simpson': 0.16; 'task.': 0.16; 'worst': 0.16; 'wrote:': 0.16; 'python?': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'cheers,': 0.22; 'am,': 0.23; 'seems': 0.23; 'matching': 0.23; 'header:In-Reply-To:1': 0.24; 'all.': 0.24; 'module': 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'chris': 0.26; 'outlook': 0.28; 'mail:': 0.29; 'allows': 0.30; "i'm": 0.30; 'creating': 0.30; "i'd": 0.31; 'probably': 0.31; 'anyone': 0.32; 'though,': 0.32; 'url:python': 0.33; 'pst': 0.33; 'case,': 0.34; 'know.': 0.34; 'could': 0.35; 'nov': 0.35; 'something': 0.35; 'but': 0.36; 'project': 0.36; 'there': 0.36; 'url:org': 0.36; 'totally': 0.36; 'url:library': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'version': 0.38; 'files': 0.38; 'means': 0.39; 'format': 0.39; 'does': 0.39; 'still': 0.40; 'some': 0.40; 'url:office': 0.40; 'your': 0.60; "you'll": 0.61; 'skip:u 10': 0.61; 'strange': 0.63; 'different': 0.63; 'here:': 0.63; 'limit': 0.65; 'request.': 0.66; 'cameron': 0.66; 'url:%28': 0.66; 'url:%29': 0.66; 'url:%1': 0.67; 'feeling': 0.72; 'received:61': 0.72; 'url:en-us': 0.72; 'mail.': 0.75; '>of': 0.84; 'gut': 0.84; 'pdfs.': 0.84; 'wiring': 0.84; 'migrating': 0.91; 'refuse': 0.93; 'thing,': 0.93
X-Authentication-Info Submitted using ID cskk@bigpond.com
X-Authority-Analysis v=2.0 cv=JY8+XD2V c=1 sm=1 a=M0N8dF5DkBtUMF4ry797aQ==:17 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=qtqOOiqGOCEA:10 a=pGLkceISAAAA:8 a=HSQemBg_AAAA:8 a=8AHkEIZyAAAA:8 a=yMhMjlubAAAA:8 a=pNGmx8qeAAAA:8 a=enMK3SmMQ51Pdqz4eJEA:9 a=CjuIK1q_8ugA:10 a=M0N8dF5DkBtUMF4ry797aQ==:117
Content-Disposition inline
In-Reply-To <CAPTjJmrVrLYrFvHuMR1Sjv59D_8UAA_wovKBRXfEdnU3oTPCPQ@mail.gmail.com>
User-Agent Mutt/1.5.23 (2014-03-12)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:98193

Show key headers only | View raw


On 04Nov2015 09:12, Chris Angelico <rosuav@gmail.com> wrote:
>On Wed, Nov 4, 2015 at 6:09 AM, Anthony Papillion
><anthony@cajuntechie.org> wrote:
>> Does anyone know of a module that allows the wiring of Outlook PST files using Python? I'm working on a project that will require me to migrate 60gb of maildir mail (multiple accounts) to Outlook.
>
>*wince*
>
>I don't, but if there is such a thing, it'll probably be mentioned here:
>https://pypi.python.org
>
>But be careful. My gut feeling is that the format will be different in
>every version of Outlook, so you'll need something exactly matching
>it.

Microsoft have a page here:

  https://msdn.microsoft.com/en-us/library/ff385210%28v=office.12%29.aspx

which purports to document the PST format. There are links to the document 
sections and also to PDFs.

It seems to be a simple and understandable format of a mere 190 pages. Yes, I 
am joking, though not about the page count; it seems like an obscene and 
totally nuts way to store email. IIRC, M$ LookOut! doesn't even use 
Message-IDs, but some proprietry scheme.

>Since you're migrating your mail *to* Outlook, I'd look for some means
>of importing mail. Worst case, you could create a bunch of files in
>the maildir layout,

The OP has these I think.

>spin up an off-the-shelf POP3 server, and tell
>Outlook to read it all.
>
>Personally, though, I'd refuse the job altogether. Creating a 60GB
>blob of mail is going to cause nothing but pain. That might even be
>beyond Outlook's current hard limit - I don't know. Bad, bad idea.

It is a very strange request. But very corporate/government in mindset.

Alas, I cannot help to the with any tools or module for his task.

Cheers,
Cameron Simpson <cs@zip.com.au>

Microsoft Mail: as far from RFC-822 as you can get and still pretend to care.
        - Abby Franquemont-Guillory <abbyfg@tezcat.com>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Creating PST files using Python Cameron Simpson <cs@zip.com.au> - 2015-11-04 11:10 +1100

csiph-web