Outlook and IMAP

  • Thread starter Thread starter Benny
  • Start date Start date
B

Benny

Hello

I use Outlook with IMAP. That means I have a personal folder in a pst
file and I have an Imap folder with several subfolders. When I send a
mail the mail will be saved in my personal folder (SentItems).
I have made a rule which moves a copy of that mail to my IMAP folder
under sentItems.
Unfortunately the moved mail appears as unread in the IMAP folder and so
I always have to mark the mails as read.
Does someone know a VBA Macro which automatically marks the mail that
has been moved to the IMAP folder as read???

Thank you.

Benny
 
Be aware that if you are using the Rule Wizard to move a copy of your
messages, the FROM field header information is not being copied to the IMAP
Sent Items folder, because it sends it while it's still in the Outbox,
instead of after it reaches the Sent Items MAPI folder. You may see it on
your Outlook client, but if you check the server, the From field would be
blank. It may not matter at first, but if you archive your messages in
different folders for future reference, and need to use the Advance Find
command, you could have problems, specially if you have two PCs accessing
the same account or you have to reformat your PC.

I've been looking for ways to modify the field by intercepting the Sub
Application_ItemSend, but since Microsoft implemented the new security
updates for
Outlook, is no longer possible to do it unless you have an Exchange Server.

My new solution would be to create a macro that will execute every time
Outlook checks for new email. This macro should move all items in the MAPI
Sent Items folder to the IMAP Sent Items Folder.
If you do it this way, you shouldn't have to worry about marking messages as
Read.

And that is what I'm trying to figure out. I haven't written any software in
a long time, and VBA sintax seems a little confusing when compared to good
ol' Assembler :)
Maybe I don't have the same patience level as I used to. I don't know
anymore...
The problem with this macros is that you will need to implement good error
handling, or Outlook could freeze.
 
Back
Top