Function notmuch_sys::notmuch_messages_get
[−]
[src]
pub unsafe extern "C" fn notmuch_messages_get(
messages: *mut notmuch_messages_t
) -> *mut notmuch_message_t
Get the current message from 'messages' as a notmuch_message_t
.
Note: The returned message belongs to 'messages' and has a lifetime identical to it (and the query to which it belongs).
See the documentation of notmuch_query_search_messages
for example
code showing how to iterate over a notmuch_messages_t
object.
If an out-of-memory situation occurs, this function will return NULL.