I have a script that displays a message box with some information about certain incoming messages. If I'm not sitting at my computer, though, to click "ok", then all other mail processing is halted until I return.

Is there a way to have a message box displayed but not have Poco script get hung-up on it?

I'm not aware of a direct way. For what it's worth, I would not want PSI to change the current behavior, but of course it would be fine if they gave us a way to choose how the message box behaves.

I don't know what you're trying to report with the message box, but in general, I don't think that message boxes should be used in Incoming filters (except during testing). For example, even if PocoMail did not wait for the user to dismiss the message, what happens if you download 100 messages that generate 100 message boxes?! Of course that's an extreme example, but you get my point.

Have you considered other ways of notifying yourself of the event. Examples: mark the message with color, add a header that you display in a custom column, play a certain sound, write the message to a log file and then open an external application that displays the log file, save a copy of the message to a special mailbox, send yourself a special email, etc, etc.

Also, if you're using WinXP (or perhaps with a version like it), you could use DOS' msg command to display to yourself (or anyone) these message boxes. WinXP will queue them, so each time you click OK it then shows the next one in the queue.

Duh! Why didn't I think of that. . . the color coding is a great idea. Thanks, Pete.

As an aside, what I'm using this for is to flag messages that the Bayesian filter says are junk from sender in my address book or domains on my safe list, so I know to train the BFs that these are good messages. (Catching false positives that I might otherwise have missed.)

It won't stop the application while waiting for a response from the user. The help command has a &modal option which defaults to false (in which case the script continues to execute while the window is displayed). Setting the &modal value to True causes the script to pause until the window is closed.

I had a play with Help and it looks like it always opens full screen, plus you need to save the contents of the message to a file so it requires a little effort to use.

Another method is to download an external tool that will display the message box for you and then you can call that from within your PocoScript. I found one at:
http://debrock.org/It's called msgbox and it's only 15k.

If you wish to use it then download it and try the following from a script: