Rule to copy CC list to TO list

Status
Not open for further replies.

dariusz_r

New Member
Outlook version
Email Account
POP3
Hi all,

I need help with the outlook rule. We have a group mailbox. The goal is to change all messages which are sent to this group by moving all the TO list to the CC list.

I know this has to be possible just don't know how to do it :( Anly help much appreciated!
 

dariusz_r

New Member
Outlook version
Email Account
POP3
Dear Michael, thank you for help!

I was not clear enough so I needed to change your script "not to lost the current cc list":
m.CC = m.CC + ";" + m.To
hope it's correct from the script point of view.

But I have one additional small question - when I'm testing this in my outlook it keeps asking me 'do I agree to use it' (and I can choose from 1m to 10m). What would happen if this script would be deployed on the server for the group mailbox? Can this be accepted 'permanently' or also those pop-up will "somewhere" pop up blocking the script?
 

dariusz_r

New Member
Outlook version
Email Account
POP3
This is fantastic Michael, thank you!

for those who will follow this topic:


Public Sub whatever(NewMail As Outlook.MailItem)
Dim Session As Outlook.NameSpace
Dim EntryID$, StoreID$
Dim Mail As Outlook.MailItem
EntryID = NewMail.EntryID
StoreID = NewMail.Parent.StoreID
Set Session = Application.Session
Set Mail = Session.GetItemFromID(EntryID, StoreID)


Mail.CC = Mail.CC + ";" + Mail.To
Mail.Save


End Sub
 
Status
Not open for further replies.
Top