Re: Reading Outlook .msg file using Python

2010-10-22 Thread John Henry
On Oct 21, 1:48 am, Tim Golden wrote: > On 21/10/2010 09:34, Jon Clements wrote: > > > Only just noticed this thread, and had something similar. I took the > > following approach:- > > > (I'm thinking this might be relevant as you mentioned checking whether > > your client'sOutlookcould export .EM

Re: Reading Outlook .msg file using Python

2010-10-21 Thread Tim Golden
On 21/10/2010 09:34, Jon Clements wrote: Only just noticed this thread, and had something similar. I took the following approach:- (I'm thinking this might be relevant as you mentioned checking whether your client's Outlook could export .EML directly, which indicates (to me at least) that you ha

Re: Reading Outlook .msg file using Python

2010-10-21 Thread Jon Clements
On 20 Oct, 18:13, John Henry wrote: > On Oct 20, 9:01 am, John Henry wrote: > > > > > On Oct 20, 1:41 am, Tim Golden wrote: > > > > On 19/10/2010 22:48, John Henry wrote: > > > > > Looks like this flag is valid only if you are getting messages > > > > directly from Outlook.  When reading the msg

Re: Reading Outlook .msg file using Python

2010-10-20 Thread John Henry
On Oct 20, 9:01 am, John Henry wrote: > On Oct 20, 1:41 am, Tim Golden wrote: > > > > > On 19/10/2010 22:48, John Henry wrote: > > > > Looks like this flag is valid only if you are getting messages > > > directly from Outlook.  When reading the msg file, the flag is > > > invalid. > > > > Same is

Re: Reading Outlook .msg file using Python

2010-10-20 Thread John Henry
On Oct 20, 1:41 am, Tim Golden wrote: > On 19/10/2010 22:48, John Henry wrote: > > > Looks like this flag is valid only if you are getting messages > > directly from Outlook.  When reading the msg file, the flag is > > invalid. > > > Same issue when accessing attachments.  In addition, the MAPITab

Re: Reading Outlook .msg file using Python

2010-10-20 Thread Tim Golden
On 19/10/2010 22:48, John Henry wrote: Looks like this flag is valid only if you are getting messages directly from Outlook. When reading the msg file, the flag is invalid. Same issue when accessing attachments. In addition, the MAPITable method does not seem to work at all when trying to get

Re: Reading Outlook .msg file using Python

2010-10-19 Thread John Henry
On Oct 19, 2:46 pm, John Henry wrote: > On Oct 17, 4:45 am, Tim Golden wrote: > > > > > On 17/10/2010 6:39 AM, John Henry wrote: > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > > >> On 12/10/2010 4:59 PM, John Henry wrote: > > > >>> According to: > > > >>>http://support.microsoft.com/kb/813745

Re: Reading Outlook .msg file using Python

2010-10-19 Thread John Henry
On Oct 17, 4:45 am, Tim Golden wrote: > On 17/10/2010 6:39 AM, John Henry wrote: > > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > >> On 12/10/2010 4:59 PM, John Henry wrote: > > >>> According to: > > >>>http://support.microsoft.com/kb/813745 > > >>> I need to reset my Outlook registry keys.  Un

Re: Reading Outlook .msg file using Python

2010-10-19 Thread John Henry
On Oct 17, 4:45 am, Tim Golden wrote: > On 17/10/2010 6:39 AM, John Henry wrote: > > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > >> On 12/10/2010 4:59 PM, John Henry wrote: > > >>> According to: > > >>>http://support.microsoft.com/kb/813745 > > >>> I need to reset my Outlook registry keys.  Un

Re: Reading Outlook .msg file using Python

2010-10-18 Thread John Henry
On Oct 18, 4:09 am, Tim Golden wrote: > On 17/10/2010 20:25, John Henry wrote: > > > Not knowing anything about MAPI, I tried a number of the MAPI flags, > > the only one that works appears to be PR_SUBJECT. > > PR_CLIENT_SUBMIT_TIME, PR_CREATION_TIME and so forth doesn't work. > > I'll try to fis

Re: Reading Outlook .msg file using Python

2010-10-18 Thread Tim Golden
On 17/10/2010 20:25, John Henry wrote: Not knowing anything about MAPI, I tried a number of the MAPI flags, the only one that works appears to be PR_SUBJECT. PR_CLIENT_SUBMIT_TIME, PR_CREATION_TIME and so forth doesn't work. I'll try to fish out some of the code we use, but for most of the fiel

Re: Reading Outlook .msg file using Python

2010-10-17 Thread John Henry
On Oct 17, 11:37 am, John Henry wrote: > On Oct 17, 4:45 am, Tim Golden wrote: > > > > > On 17/10/2010 6:39 AM, John Henry wrote: > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > > >> On 12/10/2010 4:59 PM, John Henry wrote: > > > >>> According to: > > > >>>http://support.microsoft.com/kb/813745

Re: Reading Outlook .msg file using Python

2010-10-17 Thread John Henry
On Oct 17, 4:45 am, Tim Golden wrote: > On 17/10/2010 6:39 AM, John Henry wrote: > > > > > On Oct 12, 10:31 am, Tim Golden  wrote: > >> On 12/10/2010 4:59 PM, John Henry wrote: > > >>> According to: > > >>>http://support.microsoft.com/kb/813745 > > >>> I need to reset my Outlook registry keys.  Un

Re: Reading Outlook .msg file using Python

2010-10-17 Thread Tim Golden
On 17/10/2010 6:39 AM, John Henry wrote: On Oct 12, 10:31 am, Tim Golden wrote: On 12/10/2010 4:59 PM, John Henry wrote: According to: http://support.microsoft.com/kb/813745 I need to reset my Outlook registry keys. Unfortunately, I don't have my Office Install CD with me. This would

Re: Reading Outlook .msg file using Python

2010-10-16 Thread John Henry
On Oct 12, 10:31 am, Tim Golden wrote: > On 12/10/2010 4:59 PM, John Henry wrote: > > > According to: > > >http://support.microsoft.com/kb/813745 > > > I need to reset my Outlook registry keys.  Unfortunately, I don't have > > my Office Install CD with me.  This would have to wait. > > Thanks for

Re: Reading Outlook .msg file using Python

2010-10-12 Thread Tim Golden
On 12/10/2010 4:59 PM, John Henry wrote: According to: http://support.microsoft.com/kb/813745 I need to reset my Outlook registry keys. Unfortunately, I don't have my Office Install CD with me. This would have to wait. Thanks for the information; I'm keen to see if you're able to use the so

Re: Reading Outlook .msg file using Python

2010-10-12 Thread John Henry
On Oct 11, 8:54 am, Tim Golden wrote: > On 11/10/2010 4:39 PM, John Henry wrote: > > > I am trying your code but when it get to the line: > > >>     mapi.MAPIInitialize ((mapi.MAPI_INIT_VERSION, 0)) > > > I got the error message: > > > Either there is no default mail client or the current mail cli

Re: Reading Outlook .msg file using Python

2010-10-12 Thread John Henry
On Oct 11, 8:54 am, Tim Golden wrote: > On 11/10/2010 4:39 PM, John Henry wrote: > > > I am trying your code but when it get to the line: > > >>     mapi.MAPIInitialize ((mapi.MAPI_INIT_VERSION, 0)) > > > I got the error message: > > > Either there is no default mail client or the current mail cli

Re: Reading Outlook .msg file using Python

2010-10-11 Thread Tim Golden
On 11/10/2010 4:39 PM, John Henry wrote: I am trying your code but when it get to the line: mapi.MAPIInitialize ((mapi.MAPI_INIT_VERSION, 0)) I got the error message: Either there is no default mail client or the current mail client cannot fulfill the messsage requrest. Please run Micr

Re: Reading Outlook .msg file using Python

2010-10-11 Thread John Henry
On Oct 11, 3:56 am, Tim Golden wrote: > On 10/10/2010 22:51, John Henry wrote: > > > I have a need to read .msg files exported from Outlook.  Google search > > came out with a few very old posts about the topic but nothing really > > useful.  The email module in Python is no help - everything come

Re: Reading Outlook .msg file using Python

2010-10-11 Thread Tim Golden
On 10/10/2010 22:51, John Henry wrote: I have a need to read .msg files exported from Outlook. Google search came out with a few very old posts about the topic but nothing really useful. The email module in Python is no help - everything comes back blank and it can't even see if there are attac

Re: Reading Outlook .msg file using Python

2010-10-10 Thread John Henry
On Oct 10, 8:27 pm, Lawrence D'Oliveiro wrote: > In message > , John > > Henry wrote: > > I have a need to read .msg files exported from Outlook. > > Try using EML format instead. That’s plain text. Thanks for the reply. I would have to check to see if my client's Outlook can export in EML forma

Re: Reading Outlook .msg file using Python

2010-10-10 Thread Lawrence D'Oliveiro
In message , John Henry wrote: > I have a need to read .msg files exported from Outlook. Try using EML format instead. That’s plain text. -- http://mail.python.org/mailman/listinfo/python-list