Fix search parsing
SearchParser delegates parsing of email contents to the
EmailSyncParser. Whenever it encounters a <Properties> tag,
it pushes that tag onto the EmailSyncParser, and then has
it parse and get message contents. It will keep doing this
until it encounters a </Properties> tag.
However, this means that that the </Properties> tag is no
longer in the input stream. The parent parser (SearchParser)
won't see it, so it won't remove it from its internal stack.
We must manually pop that from the stack or the parser is in
a confused state.
2 files changed