IMAP trash script

  • Thread starter Thread starter Curtis Vaughan
  • Start date Start date
C

Curtis Vaughan

Does anyone know of a script that's been developed or a third-party
utility that will move any deleted messages to a trash bin when using
IMAP with Outlook 2003? As everyone knows the default behavior is just
to strike out any deleted messages, which then have to be purged.

Thanks for any info.

Curtis
 
Yeh, one of the first things I always do when searching for something
like this for Outlook is visit outlookcode.com, but regardless I don't
see anything like that which I am looking for.

Or are you trying to say, here are some examples of what you can do, now
you try to program it yourself? If so, does what I am describing sound
do-able? Ideally when the user hits to delete an item, it should not
just be marked for deletion but also copied to the deleted items folder.

Curtsi
 
Apparently, I thought the link under Samples for "Purge IMAP folders"
sounded like just what you were looking for. But it's hard to tell now that
you haven't quoted any of your original message.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
What I want to do is have a script that will move any message that is
deleted to the Deleted Items folder when using IMAP. The way Outlook
does it at present is merely puts a line through the item and leaves it
in your Inbox. Of course, users could just copy each item over to
Deleted items, but then that's kind of silly.

Curtis
 
That's going to be a bit difficult. The property that shows that the item
has been marked for deletion is a MAPI property available only through
Extended MAPI or Redemption (not CDO 1.21):

GUID: {00062008-0000-0000-C000-000000000046}
ID: 0x8570
Data type: PT_LONG

I haven't done any testing to see if marking an IMAP item for deletion fires
a MAPIFolder.Items.ItemChange event. I think it will, because
LastModificationDate definitely changes on the item. Your milage may vary.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top