What is the difference between:
for (Enumeration e = mm.getAllHeaders(); e.hasMoreElements();) {
Header hdr = (Header)e.nextElement();
if (hdr.getName().equals("Received")) {
count++;
}
}
and
String headers[] = message.getHeader("Received");
count = headers.length;
If I'm not missing something, I'd just as soon make the code clearer (second
version).
--- Noel
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
