I\'m reading http://xmpp.org/extensions/xep-0313.html to query Ejabberd for messages archived with a certain user.
This is the xml that I\'m sending:
You should add an empty element:
user1@localhost 20
See here.