I want to be able to branch my pipeline based on a from (or to address).
Using $!{document.from} does not give me something I can use as getFrom() is returning an array of Address items so I see [Ljavax.mail.internet.InternetAddress;@15fadcf (Or similar).
Is there a way that I can see a readable address or should the MailoxScanner return a stinr of comma separted addresses?
Thanks for any insight
Martin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to be able to branch my pipeline based on a from (or to address).
Using $!{document.from} does not give me something I can use as getFrom() is returning an array of Address items so I see [Ljavax.mail.internet.InternetAddress;@15fadcf (Or similar).
Is there a way that I can see a readable address or should the MailoxScanner return a stinr of comma separted addresses?
Thanks for any insight
Martin
There is a new version checked into CVS that addresses this
Thanks to Michael Ansley for the following:
If the attributes are Address arrays you can use the following Velocity script to get at the contents.
#foreach ($address in $document.from)
<do what you need to using $address.toString()>
#end