I'm trying to forward a series of old emails from one email address to another, both are Microsoft email accounts. The thing is that i don't what to simply forward them using the web interface, that creates a "wrapper email" that contains the original message.
From what I understand of the email protocol there is a chain of "Received:" headers that contains the servers where the email passed by. I just want to forward them to the new email as if they were forwarded if the fist place if I had configured my inbox to do so (maintaining all the "attributes" including from, to, subject etc).
From what I searched, I think that this can be done by a program that connects to the POP and SMTP server of the old inbox and forwards the emails to the new inbox.
I tried using the the gnu tool movemail but there is a problem when specifying the original pop server, the syntax is pop://user:pass@popserver:port. When using an Microsoft email (the email address is the username): pop://firstname.lastname@example.org:email@example.com the program fails because there is two @ signs on the parameter (using %40 does no help).
Then I tried fetchmail I could not get it to work because it does not support SSL on the SMTP connection only on the POP, the Microsoft POP and SMTP servers both require a secure connection.
Is there any other way of doing this? Using some other tool for lixux or windows?
Thanks for your help