473,625 Members | 3,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[Q] Accessing Outlook Folders.

Hi All - I'm looking to be pointed in the right direction here: I need
to develop a one-off process to extract a bunch of email from an
Outlook folder, The emails are machine generated, so are all of an
identical format. I need to write a program to read all the messages
from a folder, extract fields from them (from, to, subject, body) and
write those into an Access table.

Any pointers on the way to do this? I'm a Unix C++ programmer who
knows a little about Access programming, but I don't know how I would
programatically access an Outlook email folder. I'm guessing there's
some sort of object framework for it; where do I find out about that?

TVMIA

JohnO
Nov 12 '05 #1
4 3491
Ol*******@hotma il.com (JohnO) wrote in message news:<ba******* *************** ****@posting.go ogle.com>...
Hi All - I'm looking to be pointed in the right direction here: I need
to develop a one-off process to extract a bunch of email from an
Outlook folder, The emails are machine generated, so are all of an
identical format. I need to write a program to read all the messages
from a folder, extract fields from them (from, to, subject, body) and
write those into an Access table.

Any pointers on the way to do this? I'm a Unix C++ programmer who
knows a little about Access programming, but I don't know how I would
programatically access an Outlook email folder. I'm guessing there's
some sort of object framework for it; where do I find out about that?

TVMIA

JohnO


File-> Get External Data -> Link Tables ->Choose Type (MS Exchange) ->
Specify the profile you want to look at (If I remember correctly) then
select the folder you want. Then you can query it like a native
Access table and you're done.
Nov 12 '05 #2
Pieter,

Is there a Transfer method similar to TransferSpreads heet or TransferText to do
this?

Steve
"Pieter Linden" <pi********@hot mail.com> wrote in message
news:bf******** *************** ***@posting.goo gle.com...
Ol*******@hotma il.com (JohnO) wrote in message

news:<ba******* *************** ****@posting.go ogle.com>...
Hi All - I'm looking to be pointed in the right direction here: I need
to develop a one-off process to extract a bunch of email from an
Outlook folder, The emails are machine generated, so are all of an
identical format. I need to write a program to read all the messages
from a folder, extract fields from them (from, to, subject, body) and
write those into an Access table.

Any pointers on the way to do this? I'm a Unix C++ programmer who
knows a little about Access programming, but I don't know how I would
programatically access an Outlook email folder. I'm guessing there's
some sort of object framework for it; where do I find out about that?

TVMIA

JohnO


File-> Get External Data -> Link Tables ->Choose Type (MS Exchange) ->
Specify the profile you want to look at (If I remember correctly) then
select the folder you want. Then you can query it like a native
Access table and you're done.

Nov 12 '05 #3
pi********@hotm ail.com (Pieter Linden) wrote in message news:<bf******* *************** ****@posting.go ogle.com>...
Ol*******@hotma il.com (JohnO) wrote in message news:<ba******* *************** ****@posting.go ogle.com>...
Hi All - I'm looking to be pointed in the right direction here: I need
to develop a one-off process to extract a bunch of email from an
Outlook folder, The emails are machine generated, so are all of an
identical format. I need to write a program to read all the messages
from a folder, extract fields from them (from, to, subject, body) and
write those into an Access table.

Any pointers on the way to do this? I'm a Unix C++ programmer who
knows a little about Access programming, but I don't know how I would
programatically access an Outlook email folder. I'm guessing there's
some sort of object framework for it; where do I find out about that?

TVMIA

JohnO


File-> Get External Data -> Link Tables ->Choose Type (MS Exchange) ->
Specify the profile you want to look at (If I remember correctly) then
select the folder you want. Then you can query it like a native
Access table and you're done.


Pieter, thanks for that - a much better solution!
Nov 12 '05 #4
"Steve" <sp**@nospam.co m> wrote in message news:<ql******* ************@ne wsread2.news.at l.earthlink.net >...
Pieter,

Is there a Transfer method similar to TransferSpreads heet or TransferText to do
this?

Steve


Steve,
I suppose you could from within Access, since it would treat the
attached table as a normal linked table... Can't you just do something
like

DoCmdTransferSp readsheet..."ol kInBox" or some such thing?
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6038
by: John | last post by:
Hi I am trying to access outlook contacts folders and delete the contacts that do not contain a certain category value in the categories field. I have written the below code but am stuck with the error on the indicated line. Any help would be appreciated. Thanks Regards
3
4948
by: Li Pang | last post by:
Hi, I wrote the following codes to read messages. They work fine for Outlook 2002 but fails for 2003. My felling it may be a bug of Outlook 2003. Anybody has experience on that? Thanks in advance Dim oOutlook As Outlook.Application Dim oNS As Outlook.NameSpace Dim oStores As Outlook.Folders Dim oStore As Outlook.MAPIFolder
0
1890
by: Bob | last post by:
Hi, I'm new to Python and I want to create a script that will import contactitems into an Outlook Public Folder. Therefore I've installed the Python for Windows Extensions. This way I can access my personal contacts <code> import win32com.client
0
1608
by: ratnakarp | last post by:
Is there any way i can improve on this code? If i run this application by giving the detials of the start date and end date in the range of 15 days, it's taking 3 mins. I'm looking for a code which can run faster than this. I'm running this on asp.net 2.0. Any suggestions/comments would be appreciated. Default.aspx -------------------------
26
4490
by: Tom Becker | last post by:
Is there a way, from Access, to programmatically click the Send and Receive button in Outlook?
1
7042
by: PhilD | last post by:
My C#.NET console app checks a public folder every 24 hours for incoming emails. For each unread email in the folder, it copies any attachments to the network, then loads the contents of these files into a SQL Server database, and marks the email as read. My problem is that in the loop that checks for all the Unread emails in the folder, as I spin through the loop, the number of unread items is being reset for every iteration. So...
2
6196
by: beeswax | last post by:
Hi, Does anyone knows how to read e-mails from a specific folders in outlook? I only found out how to read the mails from the inbox folder and how to list all available folder. I just don't found a way to access my mails from the other folders. Can anyone help me?
0
1624
by: jazeelkm | last post by:
Hi , I am developing a windows application using C#. In that I want to display all the outlook profiles in a listbox and on selecting one, The folder structure should be displayed on a treeview control. I can display all the profiles in the listbox and on its changedindex event I am calling the function to load all outlook folders(and add that to the treeview). When i run the application first time it is working properly , but when i...
0
3458
by: davidiwharper | last post by:
Hello all I am trying to modify a CDO script that moves email messages out of a user's inbox and into a drop folder. I want to update it to use a Public Folder instead. The portion of the original script that matters is: ' URL used for Outlook Web Access strOWAURL = "http://servername/exchange/"
4
6441
by: infomage27 | last post by:
I have tried scripting this with rules and VBA, now trying with C# but still failing. (code is exploratory, so please excuse the terribleness) maybe someone here will show me the error of my code... sending an email by hand - everything works as expected (rules, VBA, etc are all applied). sending an email from code (C#, external VBA, etc) has the messages saving in Sent Items regardless of any other settings or configurations (up to...
0
8189
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8694
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7184
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6118
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4193
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1500
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.