Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java mail

 
david allen
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I hope someone out there can give me some adbvice.
I have to develop an application that will allow outlook(or some other mail client) to connect to a spam filter(java app) and the spam filter will conntect to a mail server. So in other words the spam filter will act as a server to the mail client and as a client to the mail server.
What will happen is that the client will request its mail, the spam filter will request it from the mail server. Once the spam filter has it, it will only forward mail to the client that is not spam.
I have been looking at java mail to do this. Is this correct? Can anyone offer any advice as to how I should tackle this.
Thank you very much
David
 
Torsten Schippel
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,
JavaMail doesn't implement the server functionality you need. So you should implement the POP3 protocol yourself.
Just search for Java POP3 Proxy.
Regards
Torsten
 
Rangarajan Suresh
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at James
They have a Java API to let you write Java code to process emails that are called mailet API.
A mailet can generate an automatic reply, update a database, prevent spam, build a message archive, or whatever you can imagine
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic