* mu-maildir: feed the maildir name to message callback

(ie., when the full path is ~/Maildir/foo/bar/cur/msg, the maildir is foo/bar)
This commit is contained in:
Dirk-Jan C. Binnema
2010-02-08 21:18:46 +02:00
parent 0dfd2060e3
commit b2c8f38c0c
2 changed files with 56 additions and 44 deletions

View File

@ -55,14 +55,16 @@ gboolean mu_maildir_mkmdir (const char* path, mode_t mode, gboolean noindex);
gboolean mu_maildir_link (const char* src, const char *targetpath);
/**
* MuMaildirWalkMsgCallback -- callback function for mu_path_walk_maildir;
* see the documentation there. It will be called for each message
* found, with fullpath contain the full path to the message, a
* timestamp of the last modification time of this file, and a user_data
* pointer
* MuMaildirWalkMsgCallback -- callback function for
* mu_path_walk_maildir; see the documentation there. It will be
* called for each message found, with fullpath containing the full
* path to the message, mdir containing the maildir -- that is, when
* indexing ~/Maildir, a message ~/Maildir/foo/bar/cur/msg would have
* the maildir "foo/bar". Then, a timestamp of the last modification
* time of this file, and a user_data pointer
*/
typedef MuResult (*MuMaildirWalkMsgCallback)
(const char* fullpath, time_t timestamp, void *user_data);
(const char* fullpath, const char* mdir, time_t timestamp, void *user_data);
/**
* MuPathWalkDirCallback -- callback function for mu_path_walk_maildir; see the