DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7851>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7851 Mail task doesn't allow you to set arbitrary headers Summary: Mail task doesn't allow you to set arbitrary headers Product: Ant Version: 1.4.1 Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Mail task doesn't allow you to set arbitrary headers. For example, a message sent using it does not set a "Date" header by default. As a result, lacking mail clients like Outlook do not properly report the "Sent" date (it shows up as "None" in the message). This causes the build maintainer to get many a disgruntled emails from many architects about it not showing up properly in his "Thread" view of his Inbox. A good solution would be to add a sub element "header" with name/value contents. To solve this specific problem, the user would just need to set the "Date" header with the current time when sending the message. message.addHeader("Date", (new Date()).toString()); Would suffice. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
