*/
#include "h/mh.h"
+#include "sbr/fmt_new.h"
+#include "scansbr.h"
+#include "sbr/m_name.h"
+#include "sbr/m_getfld.h"
+#include "sbr/getarguments.h"
+#include "sbr/seq_setprev.h"
+#include "sbr/seq_save.h"
+#include "sbr/smatch.h"
#include "sbr/snprintb.h"
#include "sbr/getcpy.h"
#include "sbr/m_convert.h"
#include "h/fmt_scan.h"
#include "h/fmt_compile.h"
#include "h/utils.h"
-#include "h/scansbr.h"
#include "h/addrsbr.h"
#include "h/done.h"
#include "sbr/m_maildir.h"
struct msgs_array msgs = { 0, 0, NULL }, compargs = { 0, 0, NULL};
bool dump = false;
int i;
- int outputsize = 0;
bool dupaddrs = true;
bool trace = false;
int files = 0;
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
+ bool outputsize_given = false;
+ int outputsize;
while ((cp = *argp++)) {
if (*cp == '-') {
/*
continue;
case OUTSIZESW:
+ outputsize_given = true;
if (!(cp = *argp++) || *cp == '-')
die("missing argument to %s", argp[-2]);
if (strcmp(cp, "max") == 0)
buffer = charstring_create(BUFSIZ);
- if (outputsize == 0) {
- if (mode == MESSAGE)
- outputsize = sc_width();
- else
- outputsize = INT_MAX;
+ if (!outputsize_given) {
+ outputsize = mode == MESSAGE ? sc_width() : INT_MAX;
}
dat[0] = msgnum;
fmt_scan(fmt, buffer, outwidth, dat, cb);
fputs(charstring_buffer(buffer), stdout);
+ charstring_clear(buffer);
mlistfree();
free(p->pq_text);
}
fmt_scan(fmt, buffer, outwidth, dat, cb);
fputs(charstring_buffer (buffer), stdout);
+ charstring_clear(buffer);
mlistfree();
}
fmt_scan(fmt, buffer, outwidth, dat, cb);
fputs(charstring_buffer (buffer), stdout);
+ charstring_clear(buffer);
mlistfree();
}
}