Any text content is collected into a single file, which is displayed using the text viewer defined in the 'settings.txt' file. If no viewer definition is found, 'e.exe' is used instead. Before presenting the message text to the viewer program, RexxMail adds a set of header lines, based on the 'ReaderHeader' definition in the 'settings.txt' file.
Any remaining content (including HTML) is presented in the form of normal file objects in the attachments folder.
Before opening the attachments folder, RexxMail looks for a command line on the 'RunAttIn' line in the 'settings.txt' file. If a command is found, this is run in the attachments folder directory. This command can be used for example to run a virus check on incoming attachments before they can be opened.
When the message viewer is closed, RexxMail deletes the attachments folder and any remaining contents. The folder and all its contents will be recreated (and the RunAttIn command run) the next time RexxMail opens the message for viewing.
Note that the original message contents remain untouched. The '/view' switch causes RexxMail to decode the message contents into separate files to be presented to the viewer. Even so, there may be times when it is useful to see the message contents in their original form. RexxMail provides the '/raw' switch for this purpose. Using this switch, a copy of the original message file can be seen using the viewer program. The '/raw' switch option can be accessed through the message file object's pop-up menu.