Outlook 2003: Purge messages in IMAP box programmatically

Discussion in 'Microsoft Outlook VBA Programming' started by smart.spooky@gmail.com, Feb 19, 2008.

  1. Guest

    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 :)
     
    , Feb 19, 2008
    #1
    1. Advertisements

  2. 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 :

    > 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 :)
     
    Michael Bauer [MVP - Outlook], Feb 19, 2008
    #2
    1. Advertisements

  3. <> wrote:

    > 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.
    --
    Brian Tillman [MVP-Outlook]
     
    Brian Tillman, Feb 19, 2008
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. igor

    Purge messages

    igor, Dec 10, 2003, in forum: Microsoft Outlook VBA Programming
    Replies:
    0
    Views:
    258
  2. lbouchard

    auto purge after imap/pop3 send/receive

    lbouchard, Jan 26, 2004, in forum: Microsoft Outlook VBA Programming
    Replies:
    1
    Views:
    523
    Eric Legault [MVP - Outlook]
    Feb 2, 2004
  3. Sitchensis

    Purge deleted messages from IMAP server MS Outlook

    Sitchensis, Jan 29, 2004, in forum: Microsoft Outlook VBA Programming
    Replies:
    1
    Views:
    390
    Sitchensis
    Jan 29, 2004
  4. Nico
    Replies:
    1
    Views:
    383
    Guest
    Jun 30, 2004
  5. Guest

    Custom Action or Script to Purge Deleted Messages on IMAP account

    Guest, Feb 8, 2006, in forum: Microsoft Outlook VBA Programming
    Replies:
    9
    Views:
    774
    BP1973
    Jul 10, 2009
Loading...

Share This Page