int messageMaxCount = Math.min(post.getInt("count", 100), 1000);
channelIteration: for (final String channelName: channels) {
// prevent that unauthorized access to this servlet get results from private data
final yacyChannel channel = yacyChannel.valueOf(channelName);
if (channel == null) continue channelIteration;
if (!authorized && yacyChannel.privateChannels.contains(channel)) continue channelIteration; // allow only public channels if not authorized
if ("TEST".equals(channelName)) {