OP. This is a follow up to a thread[1] from two days ago which introduced me to some crazy things in XPath 2.0/3.1, a confirmation that you can indeed receive emails with it. I suppose before long it will evolve into a full competitor of JavaScript.
[1] https://news.ycombinator.com/item?id=24941663