Uploaded image for project: 'Commons Email'
  1. Commons Email
  2. EMAIL-154

Add Email#getHeader(String) and Email#getHeaders() methods

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5
    • None

    Description

      In a service, I want to

      email.setHeader("x-foo", "bar");
      

      and then back in my JUnit test, I want to

      assert("bar".equals(email.getHeader("x-foo")));
      

      Unfortunately, there is no such easy way to inspect headers that have been set on an email.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            kgeis Ken Geis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment