ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7851] New: - Mail task doesn't allow you to set arbitrary headers
Date Mon, 08 Apr 2002 20:35:04 GMT
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: ant-dev@jakarta.apache.org
        ReportedBy: kgrey@dynamicsoft.com


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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message