import errors?

From: theo@ccnet3.ccnet.com
Date: Fri, 9 Jan 1998 09:52:23 -0800

I wrote one of those scripts that:

1) packs my news/mail in a zipped, soup packet
2) Zmodems the packet from my Unix shell account to my Pc
3) runs yarn's ``import'' on the newly arrived packet
4) Prompts to delete my mail file, on Unix if 1, 2 and 3 went well.

The script does a lot of error error checking mostly to make sure I dont
lose mail somewhere along the previous process. However, the import
program apparently does not return a DOS errorlevel if it does not
successfully import a soup packet.

Import delivers various error messages to the screen when it has trouble,
but apparently does not return an error level.

Can anyone suggest how my script could test for the success of:

import filename-of-soup-packet

Right now I can only display imports screen messages.

thanks in advance