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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Labels:
      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

        1. getHeader.patch
          2 kB
          Balachandran Sivakumar

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: