Move sent items




I am running an IMAP server and am wanting to move sent emails to the
"Sent" folder on the IMAP server.

I have it currently set up as a rule but want to change to VB as the
rule
turns itself off from time to time for unknown reasons. I have the
rule
set up on three computers and it turns off on each computer from time
to time.


I have added the following sub in "Microsoft Office Outlook Objects"
"Thisoutlooksession"
Initially, I thought I would just get it to move the sent emails to the
Inbox.

Private Sub olSentItems_ItemAdd(ByVal Item As Object)
Item.Move
Application.GetNamespace("MAPI").GetDefaultFolder (olFolderInbox)
End Sub

The sent emails are not moved to either the Personal Folders Inbox or
the Inbox on the IMAP server. I have tried it with "Saves copies Of
messages In Sent Items folder" checked and unchecked and also with the
rule off.

I would appreciate any advice.

Thanks,


--
Brian Tetlow
------------------------------------------------------------------------
Brian Tetlow's Profile: http://www.highdots.com/forums/m1516
View this thread: http://www.highdots.com/forums/t3125809

.



Relevant Pages

  • RE: Contact Program
    ... Currently the emails are setup by a rule. ... "Website" Inbox. ... specific contact folder to a csv file containing the full names and email ... these names and email address (via creating a Outlook contact first as ...
    (microsoft.public.outlook.program_vba)
  • RE: Contact Program
    ... choose the mail folder that contains the ... If objMailFolder Is Nothing Then Exit Sub ... > Currently the emails are setup by a rule. ... > one Inbox at a time ...
    (microsoft.public.outlook.program_vba)
  • Re: Getting emails into MS Access - Code enclosed
    ... *all* messages in the Inbox looking for the unread messages. ... each" loop, thus changing the item count in the folder. ... > run Access to pull emails out of Outlook into my tables automatically. ...
    (microsoft.public.outlook.program_vba)
  • Re: Sending email to Pocket PC 5.0 local inbox
    ... sometimes my emails remains in \Windows\Messaging folder and does not appear ... in Pocket PC Inbox (local emails) or outbox. ... I had seen that function 'SaveChanges' but in Pocket PC 5.0 ... instead of '1' to get sms inbox reference then I think, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Email disappeared
    ... Started OE to create new inbox and downloaded ... new emails from server (I have set options to leave copy ... of message on server). ... from the inbox to another folder, all messages disappear, ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)