config: Handle larger SPAM messages

* Handle larger SPAM messages that were skipped.
* Most imapfilter implementations will be low volume and hence
  performance of the filter is more important then throughput.