Menu

MailboxScanner from address

Help
2004-04-06
2004-04-07
  • Martin Logan

    Martin Logan - 2004-04-06

    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

     
    • Martin Logan

      Martin Logan - 2004-04-07

      There is a new version checked into CVS that addresses this

       
    • Martin Logan

      Martin Logan - 2004-04-07

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.