Archived Forum Post

Index of archived forum posts

Question:

IMAP Email Reading Truncates From String

Oct 18 '12 at 18:27

Hi

For some of the email's "From" string truncated. For Example, "From" written as "Test Sender Name <TestSender@Name.com>"

For some emails only not for all emails, I could not find exact pattern ie for some email having special character " (, & , ) etc" then also I got proper string.

CkString ckSt;
ckMail->get_From(ckSt);
const char *fromdata = ckSt.getString();
fromdata variable has only  TestSender@Name.com
I need whole string "Test Sender Name <TestSender@Name.com>".

Please treat it as urgent issue.

By the way I am licensed customer.

Let me know where should I send binary of email if you want to reproduce.

I am using latest library. :)

Thanks Mehul


Answer

Examine the .eml file using a text editor. If the email is not available in a .eml, then you may save it by calling the SaveEml method. Examine the "From" header field. Whatever it contains, is what the get_From method should be returning.