char *tags = NULL;
if (!tag)
tags = driver_tags_get_with_hidden(&CURHDR->tags);
- rc = mx_tags_edit(Context, tags, buf, sizeof(buf));
+ rc = mx_tags_edit(Context->mailbox, tags, buf, sizeof(buf));
FREE(&tags);
if (rc < 0)
break;
/**
* mx_tags_edit - start the tag editor of the mailbox
- * @param ctx Mailbox
+ * @param m Mailbox
* @param tags Existing tags
* @param buf Buffer for the results
* @param buflen Length of the buffer
* @retval 0 No valid user input
* @retval 1 Buffer set
*/
-int mx_tags_edit(struct Context *ctx, const char *tags, char *buf, size_t buflen)
+int mx_tags_edit(struct Mailbox *m, const char *tags, char *buf, size_t buflen)
{
- if (!ctx || !ctx->mailbox)
+ if (!m)
return -1;
- struct Mailbox *m = ctx->mailbox;
-
if (m->mx_ops->tags_edit)
return m->mx_ops->tags_edit(m, tags, buf, buflen);
int mx_path_pretty (char *buf, size_t buflen, const char *folder);
enum MailboxType mx_path_probe (const char *path, struct stat *st);
int mx_tags_commit (struct Mailbox *m, struct Email *e, char *tags);
-int mx_tags_edit (struct Context *ctx, const char *tags, char *buf, size_t buflen);
+int mx_tags_edit (struct Mailbox *m, const char *tags, char *buf, size_t buflen);
struct Account *mx_ac_find(struct Mailbox *m);
struct Mailbox *mx_mbox_find(struct Account *a, const char *path);