Inspired in the new utf8 man page (thanks tedu@) I think I found a
solution to the charset issue.
New version:
/*
* MIME encode mail header quoted-printable.
*
*/
#include
#define ASCII 0x7f
#define IN 1
#define OUT 0
#define MAX 1024
int
main()
{
int c, i, n, nl,
An overlook I can't figure out why didn't core dumped.
--- encode-qprint-header.c Wed May 24 22:04:24 2017
+++ encode-qprint-header.c Wed May 24 22:03:49 2017
@@ -66,13 +66,12 @@ main()
} else {
if (c > ASCII)
eightb
I was pointed out words (no spaces) longer than 256 characters produce a
buffer overflow with my previous version.
I scanned my saved (since ~ 2005) mbox for header lines without spaces
longer than 256 and found several. Most of them are non wrapped base64
encoded text, a few are "References:" s
Hello everyone,
With mailx(1) in mind and resurrecting the few I know about C I wrote
the code pasted below. It encodes mail headers in MIME quoted-printable
format. Unless I'm missing something it complies with all stated here:
https://www.ietf.org/rfc/rfc2047.txt
You can pipe to it a line or
4 matches
Mail list logo