commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (EMAIL-168) Content-Description should not be added if it is not provided
Date Wed, 15 Mar 2017 16:30:42 GMT
Sebb created EMAIL-168:
--------------------------

             Summary: Content-Description should not be added if it is not provided
                 Key: EMAIL-168
                 URL: https://issues.apache.org/jira/browse/EMAIL-168
             Project: Commons Email
          Issue Type: Bug
            Reporter: Sebb


At present the Content-Description header is added to attachment parts unless it is null.

Since the default value is an empty string, this means that an empty C-D: header is added
by default.

Changing the default field value to null would prevent the header from being added unless
the user calls EmailAttachment#setDescription(String desc), 

However there seems little point in adding the header if it is the empty string, so a better
solution might be to skip it if the value is null or the empty string.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message