Delete old mails in Inbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hallo everybody,

i have a little need for a program doing the following: Log on to a mailbox,
select the inbox of the mailbox, delete all mails from the inbox older than 1
day. Optionally it deletes them permanently.

I am little bit new to this whole outlook programming stuff, but i know
little vba and vbs. My biggest problems are, hoe can i access a mailbox and
it's Inbox. And how can i access all mailitems in it and delete them. If i
can get a few lines of code with little comment i would be very thankfull.

Best Regards and Thanks in advance

Jojo
 
See Namespace.GetSharedDefaultFolder(..., olFolderInbox) in the Outlook
Object Model.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top