Ah, now I got it :) You have 2 options here:
1. write your own MailMarshaler deriving from the default one 2. let the mail poller send to a bean endpoint or alike and do the splitting there Regards Lars 2009/11/30 Jeroen Verhagen <[email protected]>: > > Hi Lars, > > > Lars Heinemann-2 wrote: >> >> as far as I can remember the default marshaler exactly does what you want. >> The binary attachments are put to the message exchange attachments and the >> text or html content is put to body and/or message properties. So you >> do not need >> to have a special marshaler I would think. >> > > Sorry, but I must not have been clear enough. I want the mail attachment as > separate message on the flow. So the opposite of the default marshaller. > > For example, a mail message containing 1 pdf attachment should produce 2 > (JBI) messages: 1 with the body content of the mail and 1 with the binary > content of the pdf mail attachment. Both (JBI) messages wouldn't have > attachments themselves. > > Regards, > > Jeroen > > -- > View this message in context: > http://old.nabble.com/How-to-split-attachments--tp26567311p26570557.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > -- http://lhein.blogspot.com
