I want to know more about the resent headers (resent-from, resent-to, resent-date etc) that get prepended to an email's header. When do these headers get added? Do they get added by the server or the mail client program?
I need to write a Java program using JavaMail api to forward an email (without changing or parsing through it's original content). I would like the email to be redirected to the destination email address on arriving at the server for a specific recepient. Any snippet where you have been able to forward / redirect a mime mail using the resent headers will be helpful.
Thank you