#define FLOWED_MAX 77
+#if 0
+static int flowed_maybe_quoted (char *cont)
+{
+ return regexec ((regex_t *) QuoteRegexp.rx, cont, 0, NULL, 0) == 0;
+}
+
static void flowed_quote (STATE *s, int level)
{
int i;
state_putc ('>', s);
}
-static int flowed_maybe_quoted (char *cont)
-{
- return regexec ((regex_t *) QuoteRegexp.rx, cont, 0, NULL, 0) == 0;
-}
-
static void flowed_stuff (STATE *s, char *cont, int level)
{
if (!option (OPTTEXTFLOWED) && !(s->flags & M_DISPLAY))
return j;
}
-#if 0
static void text_plain_flowed_handler (BODY *a, STATE *s)
{
char line[LONG_STRING];
static void print_flowed_line(char * line, STATE *s,int ql) {
int width;
char * pos, * oldpos;
- char * t;
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 - SidebarWidth - 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); */