[
https://issues.apache.org/jira/browse/EMAIL-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Gregory resolved EMAIL-154.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.5
Please verify and close.
> Add Email#getHeader(String) and Email#getHeaders() methods
> ----------------------------------------------------------
>
> Key: EMAIL-154
> URL: https://issues.apache.org/jira/browse/EMAIL-154
> Project: Commons Email
> Issue Type: Improvement
> Affects Versions: 1.4
> Reporter: Ken Geis
> Fix For: 1.5
>
> Attachments: getHeader.patch
>
>
> In a service, I want to
> {code:java}
> email.setHeader("x-foo", "bar");
> {code}
> and then back in my JUnit test, I want to
> {code:java}
> assert("bar".equals(email.getHeader("x-foo")));
> {code}
> Unfortunately, there is no such easy way to inspect headers that have been
> set on an email.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)