git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@704498 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -203,10 +203,10 @@ public class MimeMailer extends Mailer { | |||||
| msg.addHeader("Date", getDate()); | msg.addHeader("Date", getDate()); | ||||
| if (headers != null) { | if (headers != null) { | ||||
| for (Iterator iter = headers.iterator(); iter.hasNext();) { | |||||
| Header h = (Header) iter.next(); | |||||
| msg.addHeader(h.getName(), h.getValue()); | |||||
| } | |||||
| for (Iterator iter = headers.iterator(); iter.hasNext();) { | |||||
| Header h = (Header) iter.next(); | |||||
| msg.addHeader(h.getName(), h.getValue()); | |||||
| } | |||||
| } | } | ||||
| PrintStream out = new PrintStream(sds.getOutputStream()); | PrintStream out = new PrintStream(sds.getOutputStream()); | ||||
| message.print(out); | message.print(out); | ||||
| @@ -72,11 +72,11 @@ class PlainMailer extends Mailer { | |||||
| mailMessage.setHeader("Content-Type", message.getMimeType()); | mailMessage.setHeader("Content-Type", message.getMimeType()); | ||||
| } | } | ||||
| if (headers != null) { | if (headers != null) { | ||||
| e = headers.elements(); | |||||
| while (e.hasMoreElements()) { | |||||
| Header h = (Header) e.nextElement(); | |||||
| mailMessage.setHeader(h.getName(), h.getValue()); | |||||
| } | |||||
| e = headers.elements(); | |||||
| while (e.hasMoreElements()) { | |||||
| Header h = (Header) e.nextElement(); | |||||
| mailMessage.setHeader(h.getName(), h.getValue()); | |||||
| } | |||||
| } | } | ||||
| PrintStream out = mailMessage.getPrintStream(); | PrintStream out = mailMessage.getPrintStream(); | ||||
| message.print(out); | message.print(out); | ||||