05-02-2013 09:32 PM
I am trying to get Message m.body() to get the email body and it is fine for some emails but does not exist for others.
I can easily duplicate the issue by sending an email through gmail.
I have tried
and also trying to see if its an attachment but attachment size = 0;
I assumed it was some sort of multi part message but I do not see any other methods calls that could be of use to get this.
05-03-2013 08:53 PM
It was a plain text message being sent via gmail. If the subject and sender and other data regarding the email is there wouldn't the plain text body be there as well without requiring further downloading?
But in anycase, if it didn't download the entire email is there a way to confirm this and also force or wait for the remaining of the email to be downloaded?
I am using the messageAdded signal and trying to extract the data from the newly added message. I am not sure at the time that signal is sent whether the entire message has been downloaded.
05-18-2013 08:22 PM
Am I the only one with this problem not being able to get the body of an email?
I've tried testing whether the email is still downloading. Doesn't seem to be the case. These are simple text emails. body() is not contain the email body.
08-13-2013 04:50 AM
Not sure what you mean by that. I did solve the problem though. When I get the messageAdded signal, I then call the MessageService::downloadBody() method and wait for the MessageService::bodyDownloaded() signal, at which point the body of the email is available.