headerFieldFactory registers CC and BCC fields as accepting addressList, but IMAPMessage::processFetchResponse was setting these fields as mailboxList, resulting in headerField::setValue throwing exceptions::bad_field_value_type. Changed IMAPMessage::processFetchResponse to pass the field values as addressList.