hrishi Deshpande wrote:
> 
> I want to make a WEB MAIL server which offers all the mailing facilities using only 
>the Browser.

That would be great.
 
> How does JAMES fit into this and if yes, 

Yes, sure (it fits into this); James acts as the mail server and the web
mail _application_ as the user interface.

Considering that the implementation of the James POP server works fine,
a web mail application that reads/writes to the (database) mailboxes
would make reading email a bit more convenient. I don't know what would
happen if you just delete messages that already reside in the mailboxes
-- in relation with the POP server, I mean. I guess it would be all
right. The messages are already there in the mailboxes; all you need to
do is to retrieve them to the web pages and render them on the browsers,
and then delete them directly via JDBC if needed. Problems may arise
though; what would happen if a user used both POP and the web mail in
the same time? The two services would be mutually exclusive for a
particular user, I think. 

> where can i get some documentation so as i can start working on it.......

I think you can start at http://jakarta.apache.org/turbine and
http://jakarta.apache.org/velocity.
I believe you could just forget about SMTP, POP, IMAP, etc.. and then
just concentrate in the following:

mysql> describe Message;
+-----------------+--------------+------+-----+---------------------+-------+
| Field           | Type         | Null | Key | Default             |
Extra |
+-----------------+--------------+------+-----+---------------------+-------+
| message_name    | varchar(128) |      | PRI |                    
|       |
| repository_name | varchar(128) |      | PRI |                    
|       |
| message_state   | varchar(30)  |      | MUL |                    
|       |
| error_message   | varchar(200) | YES  |     | NULL               
|       |
| sender          | varchar(100) |      | MUL |                    
|       |
| recipients      | text         |      |     |                    
|       |
| remote_host     | varchar(100) |      |     |                    
|       |
| remote_addr     | varchar(20)  |      |     |                    
|       |
| message_body    | longblob     |      |     |                    
|       |
| last_updated    | datetime     |      |     | 0000-00-00 00:00:00
|       |
+-----------------+--------------+------+-----+---------------------+-------+

The SQL for the web app would be pretty simple: select sender,
recipients, message_body from Message where repository_name =
'inbox/<username>';

Where <username> is a James user.

I think the only problem is how to render the message_body on the web
page.

Oki

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to