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

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

    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

        1. getHeader.patch
          2 kB
          Balachandran Sivakumar

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: