0 Replies Latest reply on May 24, 2013 6:55 AM by michael melsen

    accept different mail types in service?

    michael melsen Newbie

      Hi guys,


      I have this simple app that uses the camel mail binding. I have the mail binding poll a gmail account and if new emails are received they are consumed by my app. the mailbinding forwards the incoming mail to a service bean that has a very simple interface:


      consume(MimeMultipart content)


      if I send an email to this mail address it is consumed correctly. However if I send an email to this mail address that has a content-type of text/plain, I do not receive any content in my consumer service. This is correct of course as the contenttype does not match mimemultipart. I've tried to add another method to the interface:


      consume(String content)


      but this doesn't seem to work. Any idea how to fix this?