Difference between revisions of "IMAS System at DAS"

From PresenceWiki
Jump to: navigation, search
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
{{Tutorials}}
 +
 +
<h1>The Journey Of The Folder</h1>
 +
 
The route through the system is as follows:-
 
The route through the system is as follows:-
 
   
 
   
Line 7: Line 11:
 
  If the attachment is a zip then the zip will be unzipped and each file in the zip placed in a new folder
 
  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:-
+
  The folder, eg "527" that is passed around will contain 3 files:-
 
   
 
   
 
  A trigger file, "imasready.txt" 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
 
  A message txt file, eg "527.txt" which contains the attachment
 
  A message txt file, eg "527.txt" which contains the attachment
  A email message id file, eg "OF9DB8CF05....@international-presence.com.deleteme"
+
  A email message id file, eg "OF9DB8CF05....@international-presence.com.message"
  
 
  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 31: Line 35:
 
  .\res\httpdocs\imas\archive\process\Unknown
 
  .\res\httpdocs\imas\archive\process\Unknown
  
 
 
 
  Once the as400 table has been inserted into, the program run,  
 
  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:-
+
  and then if 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\HomeDelimit
Line 42: Line 44:
 
  .\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.
+
  When the folder is placed in the ok, the message file is deleted which flags that the message is ready for deletion.
 +
Once every attachment has been successfully processed for that email message, all message files will be deleted.
 +
When no more message files can be found for that message the email will be forwarded and deleted.
  
 
  If something goes wrong then the folder ends up in:-
 
  If something goes wrong then the folder ends up in:-
Line 52: Line 56:
 
  .\res\httpdocs\imas\archive\fail\Unknown
 
  .\res\httpdocs\imas\archive\fail\Unknown
  
 +
<h1>The Email Directory</h1>
  
 
The emails are internally tracked through the following:-
 
The emails are internally tracked through the following:-
 
  
 
  .\res\httpdocs\imas\emails\read
 
  .\res\httpdocs\imas\emails\read

Latest revision as of 13:47, 17 October 2012

Tutorial Pages > IMAS System at DAS

The Journey Of The Folder

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, eg "527" 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.message"
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 if 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 placed in the ok, the message file is deleted which flags that the message is ready for deletion.
Once every attachment has been successfully processed for that email message, all message files will be deleted.
When no more message files can be found for that message the email will be forwarded and 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 Email Directory

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.