mirror of https://github.com/djcb/mu.git
* mu-msg-iter: add mu_msg_iter_get_maildir
This commit is contained in:
parent
bb6d9a0ff1
commit
b1a799df4a
|
@ -253,6 +253,14 @@ mu_msg_iter_get_path (MuMsgIter *iter)
|
|||
return get_field (iter, MU_MSG_FIELD_ID_PATH);
|
||||
}
|
||||
|
||||
const char*
|
||||
mu_msg_iter_get_maildir (MuMsgIter *iter)
|
||||
{
|
||||
g_return_val_if_fail (!mu_msg_iter_is_done(iter), NULL);
|
||||
return get_field (iter, MU_MSG_FIELD_ID_MAILDIR);
|
||||
}
|
||||
|
||||
|
||||
|
||||
const char*
|
||||
mu_msg_iter_get_from (MuMsgIter *iter)
|
||||
|
|
|
@ -84,7 +84,7 @@ unsigned int mu_msg_iter_get_docid (MuMsgIter *iter);
|
|||
|
||||
|
||||
/**
|
||||
* get the directory path of the message
|
||||
* get the full path of the message file
|
||||
*
|
||||
* @param iter a valid MuMsgIter iterator
|
||||
*
|
||||
|
@ -93,6 +93,18 @@ unsigned int mu_msg_iter_get_docid (MuMsgIter *iter);
|
|||
const char* mu_msg_iter_get_path (MuMsgIter *iter);
|
||||
|
||||
|
||||
/**
|
||||
* get the maildir of the message - e.g., a message file
|
||||
* /home/user/Maildir/foo/bar/cur/abc123 would have maildir
|
||||
* "/foo/bar"
|
||||
*
|
||||
* @param iter a valid MuMsgIter iterator
|
||||
*
|
||||
* @return the path, or NULL in case of error
|
||||
*/
|
||||
const char* mu_msg_iter_get_maildir (MuMsgIter *iter);
|
||||
|
||||
|
||||
/**
|
||||
* get the size of the message
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue