Consulting

Results 1 to 4 of 4

Thread: Purge Deleted emails from IMAP Folder

  1. #1
    VBAX Regular
    Joined
    Jan 2006
    Posts
    6
    Location

    Unhappy Purge Deleted emails from IMAP Folder

    I have been trying to find a method or proedure that I can include in my exit script that will basically complete the "Edit -> Purge Deleted Messages" function for Outlook 2003 and an IMAP server... Any ideas?

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    Hi and welcome to VBAX

    I'm not on an IMAP server so I can't test this, but there's some code and further discussions here that address this

    Hope it helps
    K :-)

  3. #3
    VBAX Regular
    Joined
    Jan 2006
    Posts
    6
    Location
    Thanks... it sort of does what i want.. however it filters through all imap folders and I need it to only look atthe inbox and deleted items folder... Got to play around with it... If anyone has any more direct way of doing it other than in the like Killian provided im all ears/

  4. #4
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    Now I've had a closer look at the posts and the OL Object model it would appear that there isn't a direct method available - just excecuting the command button.
    So it would be just this bit wouldn't it?[VBA]Dim myBar As CommandBar
    Set myBar = Application.ActiveExplorer.CommandBars("Menu Bar")
    Dim myButtonPopup As CommandBarPopup
    Set myButtonPopup = myBar.Controls("Edit")
    Dim myButton As CommandBarButton
    Set myButton = myButtonPopup.Controls("Purge Deleted Messages")
    myButton.Execute[/VBA]
    K :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •