Better protection against Denial-of-Service, patch contributed by Andrzej Rusin (JAMES-1427)

git-svn-id: https://svn.apache.org/repos/asf/james/server/trunk@1467776 13f79535-47bb-0310-9956-ffa450edef68