# The structure of MyMail

Information in this document is subject to change without prior notice.

## General

This document is intended to describe technicaly how the program works.
The program use as few files as possible to minimize disk fragmenting problems.

## Incoming mail

All incoming mails are stored in the file mail.txt and is unformatted in this file. Every mail in this file has a start and an end sign.
#START_MyMAIL
.
mail text
.
#END_MyMAIL
It's also minimizing the number of files stored in the folder where the program is installed.

## Mail formatting
A mail is formatted and file attachments extracted at the moment you open the mail. The textbody is extracted to the file mail.tmp and then opened in a window for viewing. If there are any characters that needs converting, for example when there is swedish chars and/or MIME coded chars, this will also be done. All file attachments will be extracted with their respective name in the mailprogram folder.

## Outgoing mail
All outgoing mail will be encoded in the memory and sent directly without any swapping to the harddrive. When using a large mailing list the mail automatically splits into smaller parts, still without any swapping to the harddrive. All file attachments will be base64 or uuencoded at mail transmitting whithout any swapping to the harddrive.

Programming information
The program is created with Megamax C compiler. The RSC file is created with Interface. All this is done on my Hades 060.