jakartaee / jakartaee/mail-api
Allow adding/removing multiple headers in one method call
- Dominant language
- Java
- Stars
- 285
- Forks
- 109
- Avg merge
- 15h 19m
- Merged PRs (30d)
- 1
Description
It would be nice to have convenience methods to add and remove multiple headers in [InternetHeaders](https://github.com/javaee/javamail/blob/master/mail/src/main/java/javax/mail/internet/InternetHeaders.java) and subsequently [MimeMessage](https://github.com/javaee/javamail/blob/master/mail/src/main/java/javax/mail/internet/MimeMessage.java) and [MimeBodyPart](https://github.com/javaee/javamail/blob/master/mail/src/main/java/javax/mail/internet/MimeBodyPart.java).
These could include:
```
addHeader(Header header)
addHeadersWithHeaderList(List headers)
addHeadersWithStringList(List headers)
setHeader(Header header)
removeHeader(Header header)
removeHeadersWithHeaderList(List headers)
removeHeadersWithStringList(List headers)
```
Contributor guide
Research direction
Start by reviewing the existing header methods in InternetHeaders.java, MimeMessage.java, and MimeBodyPart.java. Compare their current APIs and determine the intended multiple-header operations and signatures; done means the agreed convenience methods are consistently specified across the three classes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100