struct Context
{
off_t vsize;
- char *pattern; /**< limit pattern string */
- struct PatternHead *limit_pattern; /**< compiled limit pattern */
- struct Email *last_tag; /**< last tagged msg. used to link threads */
- struct MuttThread *tree; /**< top of thread tree */
- struct Hash *thread_hash; /**< hash table for threading */
- int msgnotreadyet; /**< which msg "new" in pager, -1 if none */
+ char *pattern; ///< Limit pattern string
+ struct PatternHead *limit_pattern; ///< Compiled limit pattern
+ struct Email *last_tag; ///< Last tagged msg (used to link threads)
+ struct MuttThread *tree; ///< Top of thread tree
+ struct Hash *thread_hash; ///< Hash table for threading
+ int msg_not_read_yet; ///< Which msg "new" in pager, -1 if none
- struct Menu *menu; /**< needed for pattern compilation */
+ struct Menu *menu; ///< Needed for pattern compilation
- bool collapsed : 1; /**< are all threads collapsed? */
+ bool collapsed : 1; ///< Are all threads collapsed?
struct Mailbox *mailbox;
};
-void ctx_free(struct Context **ptr);
-int ctx_mailbox_observer(struct NotifyCallback *nc);
-void ctx_update(struct Context *ctx);
-void ctx_update_tables(struct Context *ctx, bool committing);
+void ctx_free (struct Context **ptr);
+int ctx_mailbox_observer(struct NotifyCallback *nc);
+void ctx_update (struct Context *ctx);
+void ctx_update_tables (struct Context *ctx, bool committing);
-bool message_is_tagged(struct Context *ctx, int index);
+bool message_is_tagged (struct Context *ctx, int index);
bool message_is_visible(struct Context *ctx, int index);
-int el_add_email(struct EmailList *el, struct Email *e);
-int el_add_tagged(struct EmailList *el, struct Context *ctx, struct Email *e, bool use_tagged);
+int el_add_email (struct EmailList *el, struct Email *e);
+int el_add_tagged (struct EmailList *el, struct Context *ctx, struct Email *e, bool use_tagged);
void emaillist_clear(struct EmailList *el);
#endif /* MUTT_CONTEXT_H */
wch = get_nth_wchar(C_FlagChars, FLAG_CHAR_IMPORTANT);
else if (e->replied)
wch = get_nth_wchar(C_FlagChars, FLAG_CHAR_REPLIED);
- else if (e->read && (ctx && (ctx->msgnotreadyet != e->msgno)))
+ else if (e->read && (ctx && (ctx->msg_not_read_yet != e->msgno)))
wch = get_nth_wchar(C_FlagChars, FLAG_CHAR_SEMPTY);
else if (e->old)
wch = get_nth_wchar(C_FlagChars, FLAG_CHAR_OLD);
ch = get_nth_wchar(C_FlagChars, FLAG_CHAR_NEW_THREAD);
else if (threads && thread_is_old(ctx, e))
ch = get_nth_wchar(C_FlagChars, FLAG_CHAR_OLD_THREAD);
- else if (e->read && (ctx && (ctx->msgnotreadyet != e->msgno)))
+ else if (e->read && (ctx && (ctx->msg_not_read_yet != e->msgno)))
{
if (e->replied)
ch = get_nth_wchar(C_FlagChars, FLAG_CHAR_REPLIED);
first = get_nth_wchar(C_FlagChars, FLAG_CHAR_NEW_THREAD);
else if (threads && thread_is_old(ctx, e))
first = get_nth_wchar(C_FlagChars, FLAG_CHAR_OLD_THREAD);
- else if (e->read && (ctx && (ctx->msgnotreadyet != e->msgno)))
+ else if (e->read && (ctx && (ctx->msg_not_read_yet != e->msgno)))
{
if (e->replied)
first = get_nth_wchar(C_FlagChars, FLAG_CHAR_REPLIED);
if (Context && IsEmail(extra) && !extra->email->read)
{
- Context->msgnotreadyet = extra->email->msgno;
+ Context->msg_not_read_yet = extra->email->msgno;
mutt_set_flag(Context->mailbox, extra->email, MUTT_READ, true);
}
else if (!first)
mutt_set_flag(Context->mailbox, extra->email, MUTT_READ, true);
first = false;
- Context->msgnotreadyet = -1;
+ Context->msg_not_read_yet = -1;
pager_menu->redraw |= REDRAW_STATUS | REDRAW_INDEX;
if (C_Resolve)
{
if (IsEmail(extra))
{
if (Context)
- Context->msgnotreadyet = -1;
+ Context->msg_not_read_yet = -1;
switch (rc)
{
case -1: