CHECK_MSGCOUNT;
CHECK_VISIBLE;
int oc = Context->mailbox->msg_count;
- if (nm_read_entire_thread(Context, CUR_EMAIL) < 0)
+ if (nm_read_entire_thread(Context->mailbox, CUR_EMAIL) < 0)
{
mutt_message(_("Failed to read thread, aborting"));
break;
/**
* nm_read_entire_thread - Get the entire thread of an email
- * @param ctx Mailbox
+ * @param m Mailbox
* @param e Email
* @retval 0 Success
* @retval -1 Failure
*/
-int nm_read_entire_thread(struct Context *ctx, struct Email *e)
+int nm_read_entire_thread(struct Mailbox *m, struct Email *e)
{
- if (!ctx || !ctx->mailbox)
+ if (!m)
return -1;
- struct Mailbox *m = ctx->mailbox;
-
struct NmMboxData *mdata = nm_mdata_get(m);
if (!mdata)
return -1;
rc = 0;
if (m->msg_count > mdata->oldmsgcount)
- ctx_update(ctx);
+ mutt_mailbox_changed(m, MBN_INVALID);
done:
if (q)
notmuch_query_destroy(q);
#include <stdbool.h>
#include "mx.h"
-struct Context;
struct Email;
struct NmMboxData;
int nm_path_probe (const char *path, const struct stat *st);
void nm_query_window_backward (void);
void nm_query_window_forward (void);
-int nm_read_entire_thread (struct Context *ctx, struct Email *e);
+int nm_read_entire_thread (struct Mailbox *m, struct Email *e);
int nm_record_message (struct Mailbox *m, char *path, struct Email *e);
int nm_update_filename (struct Mailbox *m, const char *old, const char *new, struct Email *e);
char *nm_uri_from_query (struct Mailbox *m, char *buf, size_t buflen);