lib: Move message ID compression to _notmuch_message_create_for_message_id
authorAustin Clements <amdragon@mit.edu>
Mon, 6 Oct 2014 23:17:07 +0000 (17:17 -0600)
committerDavid Bremner <david@tethera.net>
Sat, 11 Oct 2014 05:09:54 +0000 (07:09 +0200)
commit54ec8a0fd87ae7a32c8208be67a345c0eeea7f69
treedd3ad3869bff03bab4dae8e58ea8e7f7bfa25fe1
parent1c3b8fba226b4626212a37b503d9ebae3314edf4
lib: Move message ID compression to _notmuch_message_create_for_message_id

Previously, this was performed by notmuch_database_add_message.  This
happens to be the only caller currently (which is why this was safe),
but we're about to introduce more callers, and it makes more sense to
put responsibility for ID compression in the lower-level function
rather than requiring each caller to handle it.
lib/database.cc
lib/message.cc
lib/notmuch-private.h