# IMAS System at DAS

The route through the system is as follows:-

Scanned emails come and each attachment is unzipped to a new folder in:-

.\res\httpdocs\imas\scan\BasicDetach

If the attachment is a zip then the zip will be unzipped and each file in the zip placed in a new folder

Each of the above folders is then taken and placed in one of the following folders

.\res\httpdocs\imas\scan\Buckets\HomeDelimit
.\res\httpdocs\imas\scan\Buckets\HomeFixed
.\res\httpdocs\imas\scan\Buckets\MotorDelimit
.\res\httpdocs\imas\scan\Buckets\MotorFixed
.\res\httpdocs\imas\scan\Buckets\Unknown

Anything in Unknown will need to be dealt with 'by hand'

Another task will then move the folders from the above directories to the equivalent in process:-

.\res\httpdocs\imas\archive\process\HomeDelimit
.\res\httpdocs\imas\archive\process\HomeFixed
.\res\httpdocs\imas\archive\process\MotorDelimit
.\res\httpdocs\imas\archive\process\MotorFixed
.\res\httpdocs\imas\archive\process\Unknown

Once the as400 table has been inserted into, the program run,
and then the as400 table found to be empty again the folder will be placed in:-

.\res\httpdocs\imas\archive\ok\HomeDelimit
.\res\httpdocs\imas\archive\ok\HomeFixed
.\res\httpdocs\imas\archive\ok\MotorDelimit
.\res\httpdocs\imas\archive\ok\MotorFixed
.\res\httpdocs\imas\archive\ok\Unknown

If something goes wrong then the folder ends up in:-

.\res\httpdocs\imas\archive\fail\HomeDelimit
.\res\httpdocs\imas\archive\fail\HomeFixed
.\res\httpdocs\imas\archive\fail\MotorDelimit
.\res\httpdocs\imas\archive\fail\MotorFixed
.\res\httpdocs\imas\archive\fail\Unknown