.tags_edit = imap_tags_edit,
.tags_commit = imap_tags_commit,
.path_probe = imap_path_probe,
+ .path_canon = NULL,
+ .path_pretty = NULL,
};
// clang-format on
return rc;
}
+
+/**
+ * mx_path_canon - Canonicalise a mailbox path - Wrapper for MxOps::path_canon
+ */
+int mx_path_canon(char *buf, size_t buflen, const char *folder)
+{
+ return -1;
+}
+
+/**
+ * mx_path_pretty - Abbreviate a mailbox path - Wrapper for MxOps::path_pretty
+ */
+int mx_path_pretty(char *buf, size_t buflen, const char *folder)
+{
+ return -1;
+}
* @retval num Type, e.g. #MUTT_IMAP
*/
int (*path_probe) (const char *path, const struct stat *st);
+ /**
+ * path_canon - Canonicalise a mailbox path
+ * @param buf Path to modify
+ * @param buflen Length of buffer
+ * @param folder Base path for '=' substitution
+ * @retval 0 Success
+ * @retval -1 Failure
+ */
+ int (*path_canon) (char *buf, size_t buflen, const char *folder);
+ /**
+ * path_pretty - Abbreviate a mailbox path
+ * @param buf Path to modify
+ * @param buflen Length of buffer
+ * @param folder Base path for '=' substitution
+ * @retval 0 Success
+ * @retval -1 Failure
+ */
+ int (*path_pretty) (char *buf, size_t buflen, const char *folder);
};
#ifdef USE_NOTMUCH
int mx_tags_edit (struct Context *ctx, const char *tags, char *buf, size_t buflen);
int mx_tags_commit (struct Context *ctx, struct Header *hdr, char *tags);
int mx_path_probe (const char *path, const struct stat *st);
+int mx_path_canon (char *buf, size_t buflen, const char *folder);
+int mx_path_pretty (char *buf, size_t buflen, const char *folder);
void mx_fastclose_mailbox(struct Context *ctx);