PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Permanently Deleting Mails in IMAP-Folder

Reply

Permanently Deleting Mails in IMAP-Folder

 
Thread Tools Rate Thread
Old 08-11-2004, 08:22 PM   #1
=?iso-8859-1?Q?Andreas_St=FCrmlinger?=
Guest
 
Posts: n/a
Default Permanently Deleting Mails in IMAP-Folder


Hi,

I'm using an IMAP-Folder structure to view mails on different computers.
Unfortunately, in Outlook mails that are deleted are only marked for
deletion but not really deleted.
I know, that there is the menu Edit/Purge Deleted, but this has to be done
for each folder each time you leave the folder.

So I want to write a short Makro, that does this job for me.

I did already write all that GetFolder stuff to see each message in the IMAP
hierarchy, but i dont know how i can see, if the particular message is
marked for deletion or not. The Property "RemoteState" is alwalys
"olRemoteStatusNone" (no difference if the item is marked for deletion or
not).

The next question is, what method should i call, if i found the right
property? Is it enough to call the Delete-method or is there something else?

Please can anybody help me??

Thanks on behalf
Andreas


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off