-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add convenience methods for replying to and forwarding emails #107
Comments
Hello @lacivert, you can do a couple of things. but really all you need is the Either you get it directly from the Message object (I'm assuming you mean
However, it seems like a nice convenience method to add |
Thank you very much. For now, as you stated, I use such a solution. But the "original message" in reply doesn't look very well. I don't know if there is a standard solution for it but my replies doesn't look collapsed when I look from Gmail. Do you have any idea about it? |
I guess this has something to do with all the headers used in MimeMessage.reply(). Still looking into it. |
I've implemented replyTo functionality in the
Now forwarding is left, which is actually a much simpler case. |
#102: When parsing MimeMessage to Email, also include the Return-Path as bounceToAddress #95: When parsing MimeMessage to Email, also include the Return-Receipt-To #93: When parsing MimeMessage to Email, also include the Disposition-Notification-To Other: Overhauled MimeMessageParser to be more useful and usable (including better exceptions)
Turns out forwarding is a much more difficult case, because as opposed to replying, forwarding actually includes the original message in the MimeMultiPart structure. However, it's working now, both replying and forwarding! Will be in the 5.0.0 release coming up soon. |
Released as 5.0.0.rc1-SNAPSHOT. Add OSS' snapshots repo to find it in Maven.
|
Is there a feature like reply for a specific Message object?
I have an IMAP connection and I can read mails, so I have a Message object. How can I reply to this message by using simple-java-mail?
The text was updated successfully, but these errors were encountered: