WHERE short Umask INITVAL(0077);
WHERE short WrapMargin;
WHERE short WriteInc;
+WHERE short MaxLineLength;
WHERE short ScoreThresholdDelete;
WHERE short ScoreThresholdRead;
int len = strlen(line);
int i;
- width = COLS - WrapMargin - ql - 1;
- if (option(OPTSTUFFQUOTED))
- --width;
- if (width < 0)
- width = COLS;
+ if (MaxLineLength > 0) {
+ width = MaxLineLength - WrapMargin - ql - 1;
+ if (option(OPTSTUFFQUOTED))
+ --width;
+ if (width < 0)
+ width = MaxLineLength;
+ } else {
+ width = COLS - WrapMargin - ql - 1;
+ if (option(OPTSTUFFQUOTED))
+ --width;
+ if (width < 0)
+ width = COLS;
+ }
/* fprintf(stderr,"print_flowed_line will print `%s' with ql = %d\n",line,ql); */
** from (instead to the author only). Setting this option to ``ask-yes'' or
** ``ask-no'' will ask if you really intended to reply to the author only.
*/
+ { "max_line_length", DT_NUM, R_NONE, UL &MaxLineLength, 0 },
+ /*
+ ** .pp
+ ** When set, the maximum line length for displaying f=f messages is limited
+ ** to this length. A value of 0 (which is also the default) means that the
+ ** maximum line length is determined by the terminal width and $$wrapmargin.
+ */
{ "mail_check", DT_NUM, R_NONE, UL &BuffyTimeout, 5 },
/*
** .pp