Difference between revisions of "IMAS System at DAS"

From PresenceWiki
Jump to: navigation, search
Line 9: Line 9:
 
  The folder that is passed around will contain 3 files:-
 
  The folder that is passed around will contain 3 files:-
 
   
 
   
  imasready.txt - a trigger file to say that the folder is ready to be processed
+
  A trigger file, "imasready.txt" to say that the folder is ready to be processed
  CABR.deleteme
+
  A message txt file, eg "527.txt" which contains the attachment
 +
A email message id file, eg "OF9DB8CF05....@international-presence.com.deleteme"
  
 
  Each of the above folders is then taken and placed in one of the following folders
 
  Each of the above folders is then taken and placed in one of the following folders
Line 21: Line 22:
 
   
 
   
 
  Anything in Unknown will need to be dealt with 'by hand'
 
  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:-
 
  Another task will then move the folders from the above directories to the equivalent in process:-
Line 41: Line 41:
 
  .\res\httpdocs\imas\archive\ok\MotorFixed
 
  .\res\httpdocs\imas\archive\ok\MotorFixed
 
  .\res\httpdocs\imas\archive\ok\Unknown
 
  .\res\httpdocs\imas\archive\ok\Unknown
 
+
 
+
When the folder is place in the ok, the deleteme file is deleted.
  
 
  If something goes wrong then the folder ends up in:-
 
  If something goes wrong then the folder ends up in:-
Line 51: Line 51:
 
  .\res\httpdocs\imas\archive\fail\MotorFixed
 
  .\res\httpdocs\imas\archive\fail\MotorFixed
 
  .\res\httpdocs\imas\archive\fail\Unknown
 
  .\res\httpdocs\imas\archive\fail\Unknown
 +
 +
 +
The emails are internally tracked through the following:-
 +
 +
 +
.\res\httpdocs\imas\emails\read
 +
 +
A list of emails that have been read and so will be ignored if found again
 +
 +
.\res\httpdocs\imas\emails\delete
 +
 +
This folder is scanned and if the message id is not in the Archive, Buckets or Scan directory, we know that we have
 +
finished with the email and so it can be forwarded and then deleted.
 +
 +
.\res\httpdocs\imas\emails\forwardstore
 +
 +
When an email is read, a copy of it is placed in here, so that we can use this file to forward the email later
 +
 +
.\res\httpdocs\imas\emails\forward
 +
 +
When we are actually ready to forward the email, we place it in here.
 +
This folder is scanned and the emails in it are forwarded.

Revision as of 12:37, 18 July 2012

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

The folder that is passed around will contain 3 files:-

A trigger file, "imasready.txt" to say that the folder is ready to be processed
A message txt file, eg "527.txt" which contains the attachment
A email message id file, eg "OF9DB8CF05....@international-presence.com.deleteme"
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

When the folder is place in the ok, the deleteme file is deleted.
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


The emails are internally tracked through the following:-


.\res\httpdocs\imas\emails\read

A list of emails that have been read and so will be ignored if found again
.\res\httpdocs\imas\emails\delete
This folder is scanned and if the message id is not in the Archive, Buckets or Scan directory, we know that we have
finished with the email and so it can be forwarded and then deleted.
.\res\httpdocs\imas\emails\forwardstore 
When an email is read, a copy of it is placed in here, so that we can use this file to forward the email later
.\res\httpdocs\imas\emails\forward

When we are actually ready to forward the email, we place it in here.
This folder is scanned and the emails in it are forwarded.