String msg = st.nextToken();
System.out.println("Message:" + msg);
StringTokenizer stt = new StringTokenizer(msg, "\t");
try {
Article article = new Article();
article.setArticleNumber(Integer.parseInt(stt.nextToken()));
article.setSubject(stt.nextToken());
article.setFrom(stt.nextToken());
article.setDate(stt.nextToken());
article.setArticleId(stt.nextToken());
article.addHeaderField("References", stt.nextToken());
articles.add(article);
}
catch (NoSuchElementException nse) {
// ignore this message
}