If you are running this script against incoming messages it should work, if you are running it against selected messages after they have arrived you will need to add a "SaveMessage" command to the script. This will probably duplicate the message. This is ok for now (until you've tested it), when you are satisfied then you can add a "DeleteMessage" command before the SaveMessage command (and test that on a sample message before commiting to the change).
Here is a sample of code for the SaveMessage command. The AppendToFile may be unnecessary due to recent changes but I typically put it in in case people using older versions of Poco get hold of the script.
- Code: Select all
AppendToFile True
SaveMessage %Message $CurrentMailbox