Closed Jeevhi closed 4 years ago
Yes, what you can do is this:
GMimeMessage *message = g_mime_parser_construct_message(parser, NULL);
InternetAddressList *from = g_mime_message_get_from(message);
InternetAddress *addr = internet_address_list_get_address(from, 0);
InternetAddressMailbox *mailbox = (InternetAddressMailbox *) addr;
printf("name: %s address: %s\n", internet_address_get_name(addr), internet_address_mailbox_get_addr(mailbox));
Thank you!
Is there a way to get the email part without name? I am using below code to extract
from
address but could not find a way to extract only the email without name.Above code prints:
thanks