Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Dec 2017 13:27:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 210537] [patch] [feature request] set MIME type in cron-generated e-mails
Message-ID:  <bug-210537-8-0b7UXIwhXD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210537-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210537-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210537

--- Comment #17 from Mikhail T. <mi@ALDAN.algebra.com> ---
(In reply to Eugene Grosbein from comment #16)
> our libc actually has b64_ntop() function for base64 encoding provided wi=
th <resolv.h>

I saw that, but it asks for a buffer to fill, whereas -lcrypto's implementa=
tion
can output directly into a FILE *. I tried using -larchive, but that librar=
y's
base64-code unconditionally wraps the base64-output with `begin-base64 ...
=3D=3D=3D=3D` lines, which confuses e-mail programs
(https://github.com/libarchive/libarchive/issues/976).

> sizeof(char) is 1 by definition of C programming language

Ironically, the very uuencode code, which you referred me to has lines like:

    rv =3D b64_ntop(buf, n, buf2, (sizeof(buf2) / sizeof(buf2[0])));

:-) But, yes, I'll be glad to clean out things like sizeof(char).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210537-8-0b7UXIwhXD>