Pantomime is a modern, robust, and memory-efficient replacement for the MIME-manipulation features of JavaMail. It provides a cleaner API and better performance for working with email content and MIME structures in Java.
- ✅ Pure Java MIME parser
- ✅ Easier-to-use than JavaMail
- ✅ Designed for robustness and low memory usage
- ✅ Actively maintained
- ✅ Licensed under the Mozilla Public License 2.0
You can install Pantomime by cloning this repository and building it yourself:
git clone https://github.com/huxley-barbee/pantomime.git
cd pantomime
./gradlew build
Or download a prebuilt .jar
from the Releases page.
Then, include it in your classpath alongside your JavaMail jar (if needed).
MimeMessageParser parser = new MimeMessageParser();
MimeMessage message = parser.parse(new FileInputStream("email.eml"));
System.out.println("Subject: " + message.getSubject());
System.out.println("Body: " + message.getBodyText());
There are many concrete examples of how to use Pantomime in the manual directory.
Pantomime runs on any Java Virtual Machine (JVM). It is tested on Java 8 through 21.
- 📌 Current Version:
1.0
- 🧪 Seeking testers and contributors
Please report issues via the GitHub Issues page.
- Fork this repo
- Create a feature branch
- Submit a pull request
- Discuss and improve!
We welcome bugfixes, enhancements, documentation help, and test coverage.
Developed by Huxley Barbee Developed by Corey Holland
This project is licensed under the Mozilla Public License 2.0