<para>
When viewing an email, the
<literal><skip-to-quoted></literal> function (by default the
- <literal>S</literal> key) will scroll past any quoted text.
+ <literal>S</literal> key) will scroll past any email headers or quoted text.
Sometimes, a little context is useful.
</para>
int dretval = 0;
int new_topline = topline;
+ /* Skip all the email headers */
+ if (ISHEADER(lineInfo[new_topline].type))
+ {
+ while ((new_topline < lastLine ||
+ (0 == (dretval = display_line (fp, &last_pos, &lineInfo,
+ new_topline, &lastLine, &maxLine, MUTT_TYPES | (flags & MUTT_PAGER_NOWRAP),
+ &QuoteList, &q_level, &force_redraw, &SearchRE, pager_window))))
+ && ISHEADER(lineInfo[new_topline].type))
+ {
+ new_topline++;
+ }
+ topline = new_topline;
+ break;
+ }
+
while (((new_topline + SkipQuotedOffset) < lastLine ||
(0 == (dretval = display_line (fp, &last_pos, &lineInfo,
new_topline, &lastLine, &maxLine, MUTT_TYPES | (flags & MUTT_PAGER_NOWRAP),