How to get the source data from the mail server?
Dear.I found that the format method of the message couldnt get the source data from the mail server. some data has been decoded.and not the original format from the server. could you give me some suggestions for that?I think that maybe someone want to review the mime part of the original data from the mail server.
Sorry for the late reply. Take a look of the mime::parsed_headers_ and mime::parsed_body_. Do you have a need to access such data directly? Can you give me more details about your use case?
And some users needed to download the source data for saving as an evidence.
by the way .I want to say that you should add the method that could get the source data from the mail server. Cause that if there would be a new protocal it wouldnt be errors when parsing the data from the mail server. and the parsing part of the message or mime method should add the exceptions part so that we could fix the bug. It is recommended that the data part class should seperate from the protocal part class. And I think its very simple to add the function get the source data from the mail server.so I just suggessed that.It is my pleasure if that you could agreed what I just mentioned.
so please.would u add the function that could get the original source data of the mail?
Why do you need Mailio for that? Just connect to the server and save the message string. To keep the same strings twice within the message instance would double its size, so it's an overkill to me.
What you could do it is to modify the method imap::fetch() at the line 458 where the message instance is being created. You can access the message string itself and return it from the fetch method. In case there is a need for this feature by more people, I would include it into the master branch.
oh sorry for that.I just thought if the master branch has the features what i just mentioned would be better. I have added the method what Ive mentioned.I just thought sometimes the mailio couldnt parse the mime data correctly.so maybe it would be better if we get the source data first then parsed secondly.so just forgive me.is my poor opinion.