Search the Community
Showing results for tags '.TO'.
...or maybe with the way it now communicates with CDO.DropDirectory. We have a script that monitors e-mails that come in to a drop directory. The script looks at the e-mails and sends a response accordingly to the user that sent the e-mail. However, after updating to the latest AutoIt, I cannot compile due to a supposed syntax error which does not exist. Here is the relevant code: $objDropDirectory = ObjCreate("CDO.DropDirectory") $colMessageCollection = $objDropDirectory.GetMessages($DropFolder) If $colMessageCollection.Count > 0 Then For $msg In $colMessageCollection $fileFullPath = $colMessageCollection.Filename($msg) If StringInStr($msg.To, "daily", 2) Then ...do stuff... EndIf Next EndIfThe error I receive upon compiling is this: (36,26) : ERROR: missing separator character after keyword. If StringInStr($msg.To, Clearly, there is a separator character. The comma is right there. This wasn't happening before 3.3.8.x. Any ideas?