--- mailtool/mailtool/src/java/org/sakaiproject/tool/mailtool/Mailtool.java 2007-07-18 06:32:53.000000000 +0100 +++ mailtool/mailtool/src/java/org/sakaiproject/tool/mailtool/Mailtool.java 2007-08-17 15:06:35.000000000 +0100 @@ -36,6 +36,7 @@ import java.util.List; import java.util.Set; import java.util.Vector; +import java.util.Date; import java.util.regex.Pattern; import java.util.regex.Matcher; import org.apache.commons.fileupload.FileItem; @@ -788,6 +789,7 @@ InternetAddress from = new InternetAddress(fromString); message.setFrom(from); + message.setSentDate(new Date(System.currentTimeMillis())); String reply = getReplyToSelected().trim().toLowerCase(); if (reply.equals("yes")) { // "reply to sender" is default. So do nothing