This patch is out of the Gentoo package maintained by Fabian Groffen.
From the link below, it appears the original author was Simon Burge.
I made some minor changes to get it to apply correctly, and cleaned up
the documentation a bit.
Original patch description:
This patch brings back the original behaviour of change-folder, which
some people find more useful. It suggests the next folder in your
mailboxes list that has new mail measured from the current folder,
instead of the first folder from your mailboxes list in any case. This
prevents starvation of folders defined at the back of your list ;)
See discussion: http://thread.gmane.org/gmane.mail.mutt.devel/12457
#endif
else
{
+ if (option (OPTCHANGEFOLDERNEXT) && Context && Context->path)
+ {
+ strfcpy (buf, Context->path, sizeof (buf));
+ mutt_pretty_mailbox (buf, sizeof (buf));
+ }
mutt_buffy (buf, sizeof (buf));
if (mutt_enter_fname (cp, buf, sizeof (buf), 1) == -1)
**
*/
#endif
+ { "change_folder_next", DT_BOOL, R_NONE, OPTCHANGEFOLDERNEXT, 0 },
+ /*
+ ** .pp
+ ** When this variable is \fIset\fP, the \fC<change-folder>\fP function
+ ** mailbox suggestion will start at the next folder in your ``$mailboxes''
+ ** list, instead of starting at the first folder in the list.
+ */
{ "charset", DT_STR, R_NONE, UL &Charset, UL 0 },
/*
** .pp
OPTBEEP,
OPTBEEPNEW,
OPTBOUNCEDELIVERED,
+ OPTCHANGEFOLDERNEXT,
OPTBRAILLEFRIENDLY,
OPTCHECKMBOXSIZE,
OPTCHECKNEW,