Bug 56257 - Mail task does not quote from/to/etc. name when sending encoding="plain"
Summary: Mail task does not quote from/to/etc. name when sending encoding="plain"
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.9.4
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-13 11:01 UTC by Michael Osipov
Modified: 2014-05-06 03:20 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Osipov 2014-03-13 11:01:02 UTC
Consider this snippet:

<mail mailhost="mail.company.com" encoding="plain"
    subject="New mail">
    <from name="Osipov, Michael" address="me@company.com" />
    <to name="Osipov, Michael" address="me@company.com" />
    <message mimetype="text/plain" charset="UTF-8">
        Cool
    </message>
</mail>

Names are not quoted in request headers and mail is mangled. One has to quote with &quot; or switch to encoding="auto|mime".