Chapter 2: The e-mail interface

The e-mail interface consists of the following elements:

The mailhandler file receives e-mail from the psychologists containing details about clients. Details must be sent in plain text, so make sure that no default html format is selected.

The subject of the mail must contain a pre-agreed psychologist ID and the e-mail's envelope must contain the psychologist's e-mail address. The e-mail's body must contain these three lines (other lines are ignored):


---BEGIN CLIENT---
client details
---END CLIENT---
    

The client details contain the following comma-separated fields (subject to change):

The client is informed about the inital part of the login-code. When receiving the invitation e-mail the client receives an additional suffix, to be added to the provided login code. This way, assuming that the client verbally received the initial part of the login-code during a face-to-face contact with the psychologist the required login code cannot be intercepted: only the client receives the information allowing him/her to correctly login.

E.g., if the psychologist tells the client that his/her login code starts with 12, the client may then be informed in the received invitation e-mail that the value 101 must be added to the login code received from the psychologist. The client thereupon logs in at the psycho-webpage providing login code 12101.

In addition, the client is requested to provide the initial login code to his/her assessors. Once the client has submitted his/her self-ratings the assessors receive an introductory e-mail requesting them to rate the client, and also receiving their individual login-suffix. There is a slight security hole here: the client might e-mail the assessors, informing them about the initial login code. In theory, this e-mail could be intercepted as well as the e-mail sent by the system to the client, thus providing third parties with the required details for accessing the system. Lacking stronger forms of security, I'm afraid we must accept this slight security hole.

2.1: The mailhandler handling received e-mail

The mailhandler script is installed in the computer providing the web-interface, and is given access to the psycho data.

2.1.1: Server installation

Installation assumes a debian (compatible) Linux system, running sendmail.