-
Topic
-
I have an applet that removes hardcoded addresses from the TO field (if they exist) when a certain option is selected. Here is the source code:
Sub RemoveAddress(addressToRemove, msg)
If InStr(msg.To_, address) Then
Dim newString
newString = Replace(msg.To_, address, “”)Call GroupWise.ItemSetText(“X00”, itfCC, newString, FALSE)
MsgBox(“TO=” & msg.TO_)End If
End Sub
If the TO field contains a name in the following format: “John F. Doe” along with the addresses that I want to remove, the name is crossed out and becomes undeliverable.
The same thing happends to random Group names, and occassionally, even names that are formatted without an initial (ie. John Doe). If they are not processed by my script, these same names become deliverable again.
Note: My script works fine with fully resolved e-mail addresses (ie JohnFdoe@mail.com or ‘John F. Doe'<johnFdoe@mail.com>, but it would not be feasible to filter each of these names individually.
Why are these addresses undeliverable when they are processed by my script? And is there a workaround for the task that I am trying to accomplish?
- You must be logged in to reply to this topic.