A
axla
In my company we have "regulatory walls" between different work group
to prevent priveliged information from being shared across differen
organizations. A simple example is that we have Work Groups: A, B, an
C. Employess from Work Group A can freely communicate electronicall
with Employees from Work Group B or Work Group C. However, Group B an
Work Group C employees can not freely communicate with each othe
electronically.
In Microsoft Outlook (Microsoft® Office Outlook® 2003 (11.8206.8221)
SP3) I created a rule that uses a list of names of employees i
restricted work groups as a filter to scan incoming messages. When i
finds a name on the list it changes the color of the folder to "blue".
From within VBA I would like to have a rule that uses a similar proces
to scan "outgoing" messages and have a dialog box that warns the use
they are about to forward a message that originated from an employee o
the restricted work group. The process would also force the end-user t
select a value of "Yes" or "No" for whether or not they want to continu
to send the E-Mail message. I also want to be able to capture th
results of the end-users "Yes" or "No" answer in a database as an audi
trail.
Someone shared the code below with me as a starting point to frame ou
what's required. What I'm wondering now is if there is a way to ge
"under the hood" of the rules object to call the functionality the rul
uses to scan the text body of the incoming E-Mail message. Is thi
possible or can you only call rules from VBA, but not the underlyin
code or functions behind rules?
axla
Private Sub Application_ItemSend(ByVal Item As Object, Cancel A
Boolean)
If the body of the email includes cetain names then
set up a YES/NO message box with the question if they still want t
send.
If No Then
Cancel = False 'this will cancel the send
End If
If YES Then
get all the details of the email you need
maybe write them to a database or what ever you think
End If
End i
to prevent priveliged information from being shared across differen
organizations. A simple example is that we have Work Groups: A, B, an
C. Employess from Work Group A can freely communicate electronicall
with Employees from Work Group B or Work Group C. However, Group B an
Work Group C employees can not freely communicate with each othe
electronically.
In Microsoft Outlook (Microsoft® Office Outlook® 2003 (11.8206.8221)
SP3) I created a rule that uses a list of names of employees i
restricted work groups as a filter to scan incoming messages. When i
finds a name on the list it changes the color of the folder to "blue".
From within VBA I would like to have a rule that uses a similar proces
to scan "outgoing" messages and have a dialog box that warns the use
they are about to forward a message that originated from an employee o
the restricted work group. The process would also force the end-user t
select a value of "Yes" or "No" for whether or not they want to continu
to send the E-Mail message. I also want to be able to capture th
results of the end-users "Yes" or "No" answer in a database as an audi
trail.
Someone shared the code below with me as a starting point to frame ou
what's required. What I'm wondering now is if there is a way to ge
"under the hood" of the rules object to call the functionality the rul
uses to scan the text body of the incoming E-Mail message. Is thi
possible or can you only call rules from VBA, but not the underlyin
code or functions behind rules?
axla
Private Sub Application_ItemSend(ByVal Item As Object, Cancel A
Boolean)
If the body of the email includes cetain names then
set up a YES/NO message box with the question if they still want t
send.
If No Then
Cancel = False 'this will cancel the send
End If
If YES Then
get all the details of the email you need
maybe write them to a database or what ever you think
End If
End i