message: update implementation

Add more of the Message class (and various helpers), which are to replace all
the `mu-msg-*` code.

Add more tests.
This commit is contained in:
Dirk-Jan C. Binnema
2022-03-26 16:19:08 +02:00
parent 55402622b9
commit 37988b5a26
12 changed files with 2056 additions and 412 deletions

View File

@ -36,7 +36,7 @@ Contact::display_name() const
Mu::Contacts
Mu::make_contacts(InternetAddressList* addr_lst,
Field::Id field_id, ::time_t message_date)
Field::Id field_id, int64_t message_date)
{
Contacts contacts;
size_t num{};
@ -70,7 +70,7 @@ Mu::make_contacts(InternetAddressList* addr_lst,
Mu::Contacts
Mu::make_contacts(const std::string& addrs,
Field::Id field_id,
::time_t message_date)
int64_t message_date)
{
auto addr_list = internet_address_list_parse(NULL, addrs.c_str());
if (!addr_list) {