-/*
- * Routines to encode message headers using RFC 2047-encoding.
+/* encode_rfc2047.c -- encode message headers using RFC 2047 encoding.
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
#include <h/mhparse.h>
#include <h/addrsbr.h>
#include <h/utils.h>
+#include "base64.h"
+#include "unquote.h"
/*
* List of headers that contain addresses and as a result require special
if (q == NULL) {
/* This should never happen, but just in case. Found by
clang static analyzer. */
- admonish (NULL, "null output encoding for %s", *value);
+ inform("null output encoding for %s, continuing...", *value);
return 1;
}
*q++ = '?';
if (groupflag && ! mn->m_ingrp) {
output = add(";", output);
- column += 1;
+ column++;
}
groupflag = mn->m_ingrp;
output = NULL;
out:
- mh_xfree(tmpbuf);
- mh_xfree(output);
+ free(tmpbuf);
+ free(output);
return errflag > 0;
}