** characters of empty space on the right side of the terminal. Setting it
** to zero makes mutt wrap at the terminal width.
*/
+ { "wrap_headers", DT_NUM, R_PAGER, UL &WrapHeaders, 78 },
+ /*
+ ** .pp
+ ** This option specifies the number of characters to use for wrapping
+ ** an outgoing message's headers. Allowed values are between 78 and 998
+ ** inclusive.
+ ** .pp
+ ** \fBNote:\fP This option usually shouldn't be changed. RFC5233
+ ** recommends a line length of 78 (the default), so \fBplease only change
+ ** this setting when you know what you're doing\fP.
+ */
{ "wrap_search", DT_BOOL, R_NONE, OPTWRAPSEARCH, 1 },
/*
** .pp
/* when not displaying, use sane wrap value */
if (!(flags & CH_DISPLAY))
- wraplen = 76;
+ {
+ if (WrapHeaders < 78 || WrapHeaders > 998)
+ wraplen = 78;
+ else
+ wraplen = WrapHeaders;
+ }
else if (wraplen <= 0 || wraplen > COLS)
wraplen = COLS;