#include "mutt.h"
#include "state.h"
+#include "rfc3676.h"
+
+#include "lib/debug.h"
static void state_prefix_put (const char *d, size_t dlen, STATE * s)
{
char buf[2 * SHORT_STRING];
int j = 0, offset = 0;
regmatch_t pmatch[1];
+#ifdef DEBUG
+ unsigned char save = '\0';
+#endif
state_reset_prefix (s);
while (regexec
buf[0] = '\n';
buf[1] = '\0';
}
- else if (option (OPTQUOTEQUOTED) && offset) {
+ else if (!option (OPTTEXTFLOWED) && option (OPTQUOTEQUOTED) && offset) {
for (i = 0; i < offset; i++)
if (Quotebuf[i] != ' ')
j = i;
else
snprintf (buf, sizeof (buf), "%s%s", NONULL (s->prefix), Quotebuf);
+#ifdef DEBUG
+ if (str_len (buf) >= 2) {
+ save = buf[str_len (buf) - 1];
+ buf[str_len (buf) - 1] = '\0';
+ debug_print (2, ("buf = '%s'\n", buf));
+ buf[str_len (buf)] = save;
+ }
+#endif
+
state_puts (buf, s);
}
}