/*
- * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
+ * Copyright (C) 1996-2002, 2010 Michael R. Elkins <me@mutt.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
WHERE short PagerContext;
WHERE short PagerIndexLines;
WHERE short ReadInc;
+WHERE short ReflowWrap;
WHERE short SaveHist;
WHERE short SendmailWait;
WHERE short SleepTime INITVAL (1);
/*
- * Copyright (C) 1996-2000,2002 Michael R. Elkins <me@mutt.org>
+ * Copyright (C) 1996-2000,2002,2010 Michael R. Elkins <me@mutt.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*/
if ((WithCrypto & APPLICATION_PGP) && mutt_is_application_pgp (b))
handler = crypt_pgp_application_pgp_handler;
- else if (ascii_strcasecmp ("flowed", mutt_get_parameter ("format", b->parameter)) == 0)
+ else if (option(OPTREFLOWTEXT) && ascii_strcasecmp ("flowed", mutt_get_parameter ("format", b->parameter)) == 0)
handler = rfc3676_handler;
else
handler = text_plain_handler;
/*
- * Copyright (C) 1996-2002,2007 Michael R. Elkins <me@mutt.org>
+ * Copyright (C) 1996-2002,2007,2010 Michael R. Elkins <me@mutt.org>
* Copyright (C) 2004 g10 Code GmbH
*
* This program is free software; you can redistribute it and/or modify
** The value of \fI$$record\fP is overridden by the $$force_name and
** $$save_name variables, and the ``$fcc-hook'' command.
*/
+ { "reflow_text", DT_BOOL, R_NONE, OPTREFLOWTEXT, 1 },
+ /*
+ ** .pp
+ ** When \fIset\fP, Mutt will reformat paragraphs in text/plain
+ ** parts marked format=flowed. If \fIunset\fP, Mutt will display paragraphs
+ ** unaltered from how they appear in the message body. See RFC3676 for
+ ** details on the \fIformat=flowed\fP format.
+ ** .pp
+ ** Also see $$reflow_wrap, and $$wrap.
+ */
+ { "reflow_wrap", DT_NUM, R_NONE, UL &ReflowWrap, 78 },
+ /*
+ ** .pp
+ ** This variable controls the maximum paragraph width when reformatting text/plain
+ ** parts when $$reflow_text is \fIset\fP. When the value is 0, paragraphs will
+ ** be wrapped at the terminal's right margin. A positive value sets the
+ ** paragraph width relative to the left margin. A negative value set the
+ ** paragraph width relative to the right margin.
+ ** .pp
+ ** Also see $$wrap.
+ */
{ "reply_regexp", DT_RX, R_INDEX|R_RESORT, UL &ReplyRegexp, UL "^(re([\\[0-9\\]+])*|aw):[ \t]*" },
/*
** .pp
** When set to a negative value, mutt will wrap text so that there are $$wrap
** characters of empty space on the right side of the terminal. Setting it
** to zero makes mutt wrap at the terminal width.
+ ** .pp
+ ** Also see $$reflow_wrap.
*/
{ "wrap_headers", DT_NUM, R_PAGER, UL &WrapHeaders, 78 },
/*
/*
- * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
+ * Copyright (C) 1996-2002, 2010 Michael R. Elkins <me@mutt.org>
* Copyright (C) 2004 g10 Code GmbH
*
* This program is free software; you can redistribute it and/or modify
OPTPRINTSPLIT,
OPTPROMPTAFTER,
OPTREADONLY,
+ OPTREFLOWTEXT,
OPTREPLYSELF,
OPTRESOLVE,
OPTREVALIAS,
* Copyright (C) 2005 Andreas Krennmair <ak@synflood.at>
* Copyright (C) 2005 Peter J. Holzer <hjp@hjp.net>
* Copyright (C) 2005-9 Rocco Rutte <pdmef@gmx.net>
+ * Copyright (C) 2010 Michael R. Elkins <me@mutt.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* for the prefix from the terminal width. */
static int quote_width (STATE *s, int ql)
{
- int width = mutt_term_width (Wrap);
+ int width = mutt_term_width (ReflowWrap);
if (option(OPTTEXTFLOWED) && (s->flags & M_REPLYING))
{
/* When replying, force a wrap at FLOWED_MAX to comply with RFC3676