MAPI access to Sent Items folder??? 
Author Message
 MAPI access to Sent Items folder???

I've got a few applications that make use of vb mapi controls to send
messages.  Problem is, my Exchange folders are getting a bit full.  I've
written some code to delete messages > 7 days old using the .fetch function.

With MAPIMessages1
 .SessionID = MAPISession1.SessionID
 .FetchMsgType = ""
 .FetchUnreadOnly = False
 For i = .MsgCount - 1 To 0 Step -1
  .MsgIndex = i
  If CDate(.MsgDateReceived) < Now() - 7 Then
  End If
 Next i
End With

Documentation states that the default for .FetchMsgType is IPM, which works,
but returns only the inbox.

I'd like to scan the Sent Items folder, any ideas?
What should the value of .FetchMsgType be?

Mon, 13 Jan 2003 03:00:00 GMT  
 MAPI access to Sent Items folder???

You cannot access the Sent folder with the MAPI controls, only the
InBox.  You will have to use CDO or use our IDSMail component.  For
information on IDSMail, see


Eric June
Intuitive Data Solutions

----- IDSMail - The Universal E-mail Component  --------
Send/Rcv E-mail *EASILY* through SMTP/POP, VIM,
MAPI, MHS, Banyan VINES, Active Messaging, & CDO:

Mon, 13 Jan 2003 03:00:00 GMT  
 MAPI access to Sent Items folder???
Figured it was a MAPIControls limitation...


Tue, 14 Jan 2003 03:00:00 GMT  
 [ 3 post ] 

 Relevant Pages 

1. Accessing Sent Items Folder in Outlook Express

2. Outlook Web Access - Sent Items Folder Problem

3. Programmatically delete an item from the Sent Items Folder

4. Howto trap MAPIFolder.Items.ItemAdd on Sent Items Folder

5. Removal of attachments on email items in Sent items folder

6. Finding Items in Outlooks MAPI-Folder

7. Referencing to the current item of a MAPI folder from VB

8. VB MAPI: saving email in Sent Folder

9. MAPI keeping mail copy in Sent Folder

10. MAPI: retaining email in Sent Folder

11. MAPI Sent Items

12. MAPI Sent Items


Powered by phpBB® Forum Software