David said is exactly what I mean. That is, I have created a lot of
sub-folders under Inbox, i.e. DUG. My MAPI program can only access messages
directly under Inbox, not those under sub-folders.
Jim
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of David Brennan
Sent: Monday, 02 October, 2000 14:33
To: Multiple recipients of list delphi
Subject: Re: [DUG]: access mail from a specified folder
Out of curiousity, what if you want to access a user created email folder,
called say Foo. Is there some way of selecting folders by name?
David.
DB Solutions.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Tuesday, October 03, 2000 3:15 AM
Subject: RE: [DUG]: access mail from a specified folder
> Jim.
>
> you have to use the Outlook constants to specify what box you are trying
to access.
> The constants are :-
>
> olFolderDeletedItems = 3;
> olFolderOutbox = 4;
> olFolderSentMail = 5;
> olFolderInbox = 6;
> olFolderCalendar = 9;
> olFolderContacts = 10;
> olFolderJournal = 11;
> olFolderNotes = 12;
> olFolderTasks = 13;
>
> If you are using OLE to acess these folders, then you do this :-
>
> myItem := myOlApp.CreateItem(olConstant); (olConstant being the constant
for the box you want to access).
>
> Hope this helps, Jeremy Coulter
>
>
>
>
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"