{
HEADER *h = Context->hdrs[Context->v2r[index_no]];
- if (h->pair)
+ if (h && h->pair)
return h->pair;
mutt_set_header_color (Context, h);
#endif
IndexHelp);
- if (!attach_msg)
+ if (!attach_msg) {
mutt_buffy_check(1); /* force the buffy check after we enter the folder */
+ /* record folder we open to place sidebar indicator properly */
+ if (Context && Context->path)
+ set_curbuffy(Context->path);
+ }
FOREVER
{
break;
}
- if (query_quadoption (OPT_QUIT, _("Quit Mutt?")) == M_YES)
+ if (query_quadoption (OPT_QUIT, _("Quit Mutt-ng?")) == M_YES)
{
int check;
}
else
#endif
- mutt_buffy (buf, sizeof (buf));
+ {
+ if (Context && Context->path)
+ strncpy (buf, Context->path, sizeof (buf));
+ mutt_buffy (buf, sizeof (buf));
+ }
if ( op == OP_SIDEBAR_OPEN ) {
if(!CurBuffy)
mutt_error (_("%s is not a mailbox."), buf);
break;
}
+ mutt_str_replace (&CurrentFolder, buf);
if (Context)
{
if ((Sort & SORT_MASK) != SORT_THREADS)
mutt_error _("Threading is not enabled.");
-
-#if defined (USE_IMAP) && ! defined (IMAP_EDIT_THREADS)
- else if (Context->magic == M_IMAP)
- mutt_error _("Compile Mutt with --enable-imap-edit-threads for break-thread support");
-#endif
else
{
{
if ((Sort & SORT_MASK) != SORT_THREADS)
mutt_error _("Threading is not enabled.");
-
-#if defined (USE_IMAP) && ! defined (IMAP_EDIT_THREADS)
- else if (Context->magic == M_IMAP)
- mutt_error _("Compile Mutt with --enable-imap-edit-threads for link-threads support");
-#endif
-
else if (!CURHDR->env->message_id)
mutt_error _("No Message-ID: header available to link thread");
else if (!tag && (!Context->last_tag || !Context->last_tag->tagged))