Outlook 2003: Purge messages in IMAP box programmatically

S

smart.spooky

Hi experts,

I basically need to create a rule (and I suppose an associated macro)
in Outlook 2003 which would automatically purge all already deleted
messages in IMAP box. Any ideas, links etc would be really
appreciated.


Cheers :)
 
M

Michael Bauer [MVP - Outlook]

This clicks the menubar button for you. I don't know what kind of automatism
you have in mind.

Sub PurgeDeletedMessages()
On Error Resume Next
Dim Bars As Office.CommandBars
Dim Btn As Office.CommandBarButton

Set Bars = Application.ActiveExplorer.CommandBars
Set Btn = Bars.FindControl(, 5583)
If Not Btn Is Nothing Then
Btn.Execute
End If
End Sub

--
Best regards
Michael Bauer - MVP Outlook
Use Outlook Categories? This is Your Tool:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Mon, 18 Feb 2008 19:31:04 -0800 (PST) schrieb (e-mail address removed):
 
B

Brian Tillman

I basically need to create a rule (and I suppose an associated macro)
in Outlook 2003 which would automatically purge all already deleted
messages in IMAP box. Any ideas, links etc would be really
appreciated.

You could edit the menu bar and add the Purge Deleted Items command to the
bar.
 

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

Top