We need a "Postbox Manager" Java Applet, which would be like a mail sorting station which would be web-accessible from our client's computer, allowing them to redirect messages from an incoming POP3S account to their internal email system, and in the reverse direction out through SMTPS. All the protocol and local storage should be easily handled using JavaMail. As a first step, the Applet needs just the basic window with incoming and outgoing message panes, and one form to handle redirecting messages.
Postbox Manager would need to:
* be embedded in an HTTPS page (one of read4sure's, we can make the page)
* run anywhere - we can sign the code if required, I think this will be necessary because data will be stored locally - read on)
* securely receive some runtime parameters from the page at initialisation. Four passwords will need to be lightly encrypted to to pass into the applet.
* check for new mail (e.g. using JavaMail) every 5 min (or on demand by a button press) from two remote mailboxes, saving on local computer into two different local mailboxes...
1. using POP3S from one account with details provided in the downloaded parameters (e.g. [url removed, login to view]@[url removed, login to view], server: [url removed, login to view], password, etc.),
2. over IMAP(S) or POP3(S) (specified in the downloaded parameters) from the user's organisation's email server (more downloaded parameters), into a local mailbox (e.g. mailroom@[url removed, login to view])
* have two grids for messages
- grids one above the other
- each grid would be a table of messages that have been received into the local mailboxes, labelled above the grid with "Incoming" and "Outgoing";
- columns: From, To, Subject, Date
- From and To are only the display-name part of the email address, i.e. xxxx in xxxx<somebody@somedomain>
- Double clicking a table row in either pane opens the message, displaying a form with a blank To: box for an email address, a button "Post", and (below them) the text/html (or text/plain if text/html is absent) part of the message with a list of attachments (double click on them and they open the attachment)
- Once the button "Post" is pressed, Postbox Manager would use SMTP(S) to send the message to a server, with a different forwarding server specified for each of the two incoming mailboxes
* show some status information, i.e. each time it checks mail, "Downloading message n of m..."
* messages that have been successfully forwarded (i.e. server accepted it okay) would be identified in the local storage as such (destination and time/date of forwarding).
* The main window would have two tabs "Inbox" and "Forwarded". Only unforwarded messages would be shown in each grid when in the Inbox tab; and only forwarded messages when in the Forwarded tab.
* no need for any logos that can all be on the HTTPS page
* no need to actually edit messages or attachments, just to read them and redirect them