You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2015/07/26 19:41:04 UTC

[jira] [Updated] (EMAIL-154) Add Email#getHeader(String) and Email#getHeaders() methods

     [ https://issues.apache.org/jira/browse/EMAIL-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Gregory updated EMAIL-154:
-------------------------------
    Summary: Add Email#getHeader(String) and Email#getHeaders() methods  (was: add getHeader(..) method to Email)

> 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
>         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)