G+_Rud Dog Posted May 16, 2017 Share Posted May 16, 2017 My python script can search for a keyword in file based on the extension of the file. Would like to search my Outlook Mail Browser emails in the same way. Tried the extensions located by googling it but they don't work PST and OST. Does anyone know what type extension my emails on the browser version of Outlook uses? Link to comment Share on other sites More sharing options...
G+_David Peach Posted May 16, 2017 Share Posted May 16, 2017 I don't know about Outlook specifically, but if it is the browser version, do the emails actually live on your computer? Is there anything that it can search locally to find the info you need? Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted May 16, 2017 Author Share Posted May 16, 2017 David Peach first off thank you for contributing. This is what I am attempting to learn in my search using google for answers. It might be I will have to learn how to interrogate the URL page for info on my mail, not sure as of this post. Pretty sure the email is stored on the server which makes sense with access from any computer or device. Hopefully as the conversation moves on a direction will be formulated and I can start the coding part(makes me sound like a pro NOT I am a hobbyist at best). Onward! Link to comment Share on other sites More sharing options...
G+_Marcus Hall Posted May 16, 2017 Share Posted May 16, 2017 If it exists you would have to use an API connection to Office. Search for "Outlook Mail REST API reference". Do not know if they provide an API for python Link to comment Share on other sites More sharing options...
G+_Shooter_FPV (Shooter_FP Posted May 17, 2017 Share Posted May 17, 2017 How about using a PC-based email program, then use IMAP to link to your Outlook account? I'm not sure if the Outlook web supports IMAP, but it's worth a shot... Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted May 17, 2017 Author Share Posted May 17, 2017 Marcus Hall Thank you. My fear of the unknown and API's are unknown to me makes it difficult to address this with the solution offered. Trying to make it a project to learn more about API's. Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted May 17, 2017 Author Share Posted May 17, 2017 Ken Jancef Local email client so I can download the emails from hotmail, can't help wondering how much of the years and years of emails would be available but it sounds like the way to go. Download if all are available shouldn't be all the much, right? If the files will then be available for access on my local computer. Link to comment Share on other sites More sharing options...
G+_Shooter_FPV (Shooter_FP Posted May 17, 2017 Share Posted May 17, 2017 Rud Dog What email client are you using? I doubt you'd be able to search inside a PST file. Back in the day when I used Outlook on my PC I had PST files at about 1.5GB. But I don't think the guts of a PST are searchable. Guess it depends on how the program stores the downloaded email. I wish I could be more help... Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted May 17, 2017 Author Share Posted May 17, 2017 Ken Jancef Sorry if I was confusing the thought I am attempting to convey. I use browser email service, hotmail.com. So I access all my emails online via browser. At your suggestion thinking the client Thunderbird would be a good candidate. Sounding like (after google)search) I might be able to search the email container. Link to comment Share on other sites More sharing options...
G+_Shooter_FPV (Shooter_FP Posted May 17, 2017 Share Posted May 17, 2017 Yes. I Don't use Thunderbird, but if you don't use an email program on your PC, then web-based email is just that, web-based. I use outlook.com, which is the same really, and all the email is on the site, not local. It's worth a shot to try Thunderbird anyway... Link to comment Share on other sites More sharing options...
G+_David Peach Posted May 17, 2017 Share Posted May 17, 2017 Thunderbird uses the mbox file format (a bit modified, but basically the same). This python module can manipulate mbox in many many ways: docs.python.org - 18.4. mailbox — Manipulate mailboxes in various formats — Python 2.7.13 documentation Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted May 17, 2017 Author Share Posted May 17, 2017 Ken Jancef Believe me when I say there are no experts in this field within the walls of this household. Have seen bits and pieces of python,I think they call it scraping, websites for information. Now my thought and won't know till the list of thing-to-do shortens a bit, is could scrape my email via the online outlook email similar to the scrape done on websites. Don't know what this will require being it is a login username account. Will eventually allocate some time for a short test. Thank you. Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted May 17, 2017 Author Share Posted May 17, 2017 David Peach Will have to see if the code converts to python3.x then review the instructions. Thank you. Link to comment Share on other sites More sharing options...
G+_David Peach Posted May 17, 2017 Share Posted May 17, 2017 Here's the 3.6 version of the documentation: docs.python.org - 19.4. mailbox — Manipulate mailboxes in various formats — Python 3.6.1 documentation Link to comment Share on other sites More sharing options...
G+_Rud Dog Posted May 17, 2017 Author Share Posted May 17, 2017 David Peach sorry, didn't mean for you to do the footwork. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts