james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel J. Bergman" <n...@devtech.com>
Subject RelayLimit question
Date Sat, 08 Jun 2002 21:54:06 GMT
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:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message