Index: jakarta-james/src/java/org/apache/james/transport/mailets/NotifyPostmaster.java
===================================================================
RCS file: /home/cvspublic/jakarta-james/src/java/org/apache/james/transport/mailets/NotifyPostmaster.java,v
retrieving revision 1.4
diff -u -r1.4 NotifyPostmaster.java
--- jakarta-james/src/java/org/apache/james/transport/mailets/NotifyPostmaster.java	18 Jan 2002 02:48:38 -0000	1.4
+++ jakarta-james/src/java/org/apache/james/transport/mailets/NotifyPostmaster.java	27 Jul 2002 18:29:15 -0000
@@ -7,7 +7,7 @@
  */
 package org.apache.james.transport.mailets;
 
-import org.apache.james.util.RFC822Date;
+import org.apache.james.util.RFC822DateFormat;
 import org.apache.mailet.GenericMailet;
 import org.apache.mailet.Mail;
 import org.apache.mailet.MailAddress;
@@ -24,6 +24,7 @@
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.io.StringWriter;
+import java.util.Date;
 import java.util.HashSet;
 import java.util.Iterator;
 import java.util.Set;
@@ -49,6 +50,8 @@
     boolean attachStackTrace = false;
     String noticeText = null;
 
+    private RFC822DateFormat rfc822DateFormat = new RFC822DateFormat();
+
     public void init() throws MessagingException {
         if (getInitParameter("sendingAddress") == null) {
             notifier = getMailetContext().getPostmaster();
@@ -175,7 +178,7 @@
 
         //Set additional headers
         if (reply.getHeader("Date")==null){
-            reply.setHeader("Date",new RFC822Date().toString());
+            reply.setHeader("Date", rfc822DateFormat.format(new Date()));
         }
         String subject = message.getSubject();
         if (subject == null) {
