Re: [gmime-devel] recommended way to set addresses (To, BCC)



Hi Kane,

I just realized that it doesn't look like I responded to this (got distracted when I saw your message a while back, I guess).

It is recommended that you use functions like g_mime_message_get_to/cc/bcc() to get the InternetAddressList, and then use internet_address_list_add/insert/remove() to manipulate the list of addresses for those headers.

Hope that helps,

Jeff

On 8/8/2018 5:36 PM, Kane Kim via gmime-devel-list wrote:
Hello,

Currently I'm trying to set To/Bcc headers with `g_mime_header_list_set`.
Calling it with header "To" and emailĀ "asdfasdf gmail com" breaks resulting mime.

Is it a bug or different function should be used to insert addresses?

Thanks!



_______________________________________________
gmime-devel-list mailing list
gmime-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gmime-devel-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]