A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Copy attached MSG to Inbox in IMAP folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 21st 09, 09:01 PM posted to microsoft.public.outlook.program_vba
Aaron
external usenet poster
 
Posts: 23
Default Copy attached MSG to Inbox in IMAP folder

I am currently using Outlook 2007 as my email program. One of the accounts
is a work account that I setup as an IMAP. There is a separate work account
that I have forwarded to the first account. When a message is forwarded it
shows as a message from me (Postmaster on behalf of Me) with the original
message as a attachment.

Is there a way to programmatically have any messages of this type have the
attachment copied to the IMAP's inbox and the original message marked for
deletion? Thank you.
Ads
  #2  
Old September 22nd 09, 06:48 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Copy attached MSG to Inbox in IMAP folder



You can use the ItemAdd event of the folder. In that event check the Item's
SenderEmailAddress, or whatever identifies the message you're looking or,
then save the attachment as a file, with that file call the
CreateItemFromTemplate function, and add the returned object to the folder's
Items collection. Eventually you can call the Delete method of the received
message.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 21 Sep 2009 13:01:01 -0700 schrieb Aaron:

I am currently using Outlook 2007 as my email program. One of the

accounts
is a work account that I setup as an IMAP. There is a separate work

account
that I have forwarded to the first account. When a message is forwarded

it
shows as a message from me (Postmaster on behalf of Me) with the original
message as a attachment.

Is there a way to programmatically have any messages of this type have the
attachment copied to the IMAP's inbox and the original message marked for
deletion? Thank you.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I setup my IMAP inbox folder to be my main inbox? cervenyc Outlook - Installation 3 January 10th 07 08:17 PM
Newbie question: How to copy an email item from inbox to a folder Marceepoo Outlook and VBA 1 November 1st 06 06:54 PM
Forwarding a copy of a form from a Public Folder to a user's inbox Bubba Smith Outlook - Using Forms 5 October 10th 06 03:57 PM
What's going on with the trick to copy Sent Items to IMAP folder? Santiago Outlook - General Queries 1 August 20th 06 03:28 AM
IMAP sent items should copy to sent folder on server not PST dhhoitz Outlook and VBA 0 May 31st 06 01:05 AM


All times are GMT +1. The time now is 05:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.