Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Extract Attachment from Mail using JAMES Mailet or JavaMail  RSS feed

 
Patrick Han
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I currently have setup a JAMES mail server to run a being-developed mailet that can extract the image attachment from an incoming email and further process the image.
However, I am now stuck at step 1! I have looked through the mailet API and have found methods to extract almost all parameters of an email BUT the email attachment!
I have spent the past hour or two browsing through old topics from this site and realized that although quite a few people asked similar question, they have never received any response from anyone. Is extracting attachment from an incoming email that hard of a task to accomplish, or it is such an easy task that no one wants to take a minute or two to answer? I did find people posing solution for "sending mail with attachment" though. Can this solution be used the other way around? Can this task be done solely through the mailet API, or I should also make use of the JavaMail API?
If anyone knows anything, please kindly spend some time and pose them here. Any help, really, any help, would be greatly, greatly appreciated!
 
Patrick Han
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to everyone's help from the JAMES developer mailing list, I have solved the problem. In addition, for those of you who are interested in knowing the solution to a similar task in the future, here is a good link to go to:
http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html#GettingAttachments
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!