Mercurial > masqmail
view src/base64/base64enc.c @ 284:4869321aa7bf
recognize the program name `newaliases' too
We still simply exit in this mode, but now we can create a link
called `newaliases' to masqmail instead of needing a script to
call `masqmail -bi'. `ln /bin/true /usr/bin/newaliases' would be
a fancy way too, but letting the MTA handle it is probably the
safer approach.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Tue, 07 Dec 2010 17:09:07 -0300 |
parents | 26e34ae9a3e3 |
children |
line wrap: on
line source
#include <glib.h> #include <stdio.h> #include <stdlib.h> #include "base64.h" int main() { gchar in[58]; gint size; do { gchar *out; size = fread(in, 1, 54, stdin); out = base64_encode(in, size); fputs(out, stdout); putchar('\n'); g_free(out); } while (size == 54); exit(0); }