• Post Reply Bookmark Topic Watch Topic
  • New Topic

reading mail from the server not from inbox  RSS feed

 
naaz abhi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to develop a software for my final year project that should detect unknown e-mail virus.My first step is to read emails before it reaches INBOX ,how do i write a javamail program that should fetch email from server.pls give me suggestions.I'm able to read email from inbox using javamail by pop3.
thanks in advance
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using POP3 the 'inbox' is a folder on the server, not on the client machine your JavaMail program runs on. So the only way to read emails before it reaches your inbox is to have some sort of screening program which mail traffic is routed through before it reaches the mail server. You can't do that with the JavaMail API.

Would it not be easier to write a client program which recovers email from the server as you normally would, and screens it at that point?
 
naaz abhi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.I would have realized that 'inbox' folder is at the server only not on the client machine.
well, as you suggested to recover email from the server and to screen them at that point ,so how is it possible to screen the email before user reads that as email is already in 'inbox'.
can you please advise.
Thank you very much
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!