andyedinborough / aenetmail

C# POP/IMAP Mail Client
370 stars 153 forks source link

Support / quick question on replying or forwarding #152

Closed Shogan closed 10 years ago

Shogan commented 10 years ago

Hi there,

I was wondering what the general methodology would be to reply to a message once located, or forward the content of that message on to another address using AE.Net.Mail? I understand sending is not part of IMAP, so I would need to use an SMTP library or even the System.Net.Mail classes, but does anyone have any advice on how I would manually construct a reply or forward using info gathered from AE.Net.Mail on a message?

Thanks!

jstedfast commented 10 years ago

Every mail client forwards messages differently. Some attach the entire message as an attachment, others quote the textual message body while adding a "On date-time, so-and-so wrote:" prefix.

For replying, most mail clients will use "On date-time, so-and-so wrote:" followed by the quoted textual message body (by either prefixing each line with a "> " or by using html mail and adding the old message text as a <blockquote>).

How you do it is up to you.

Shogan commented 10 years ago

Thanks jstedfast - gave me some pointers to go and look into, and it all made sense once I had a little think about how things should work based on what I saw testing forwards using different mail clients.

jstedfast commented 10 years ago

No problem, glad to have helped