我的 Lotus 代理分离文件并根据邮件的目的地将它们放入不同的文件夹中。实际上,它运行良好,但仅使用 SendTo :
found = False
If IsArray(curdoc.GetItemValue("SendTo")) Then
ForAll elt In curdoc.GetItemValue("SendTo")
idxFolder = 0
ForAll dest In destinations
If InStr(1,CStr(elt),CStr(dest),5) <> 0 Then
found = True
Exit ForAll
End If
idxFolder = idxFolder + 1
End ForAll
End ForAll
If found Then
Exit ForAll
End If
End If
我的问题:现在我希望它也适用于 CC 和 BCC 中的目的地!
我知道我可以通过重复上述代码 3 次来做到这一点,但这不是理想的解决方案