X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=rfc822.c;h=4efba8349eb6a79c494cae0d95aa54e9b72fb7dc;hb=f16d8d23439b5569f0c2e1af22494708b507f277;hp=dbcda322ad8471bd792e20ebb3b0e0566b08d780;hpb=ec06293134b85876f9201d8a52b844c41581b2b3;p=~andy%2Ffetchmail diff --git a/rfc822.c b/rfc822.c index dbcda322..4efba834 100644 --- a/rfc822.c +++ b/rfc822.c @@ -19,16 +19,23 @@ is part of fetchmail and the Unix Cookbook, and are released under the MIT license. Compile with -DMAIN to build the demonstrator. ******************************************************************************/ + +#define _XOPEN_SOURCE 600 +#define __BSD_VISIBLE 1 + +#include "config.h" +#include "fetchmail.h" + #include #include #include +#include #include -#include "fetchmail.h" #include "sdump.h" #ifndef MAIN -#include "i18n.h" +#include "gettext.h" #else #include static int verbose; @@ -435,6 +442,8 @@ int main(int argc, char *argv[]) break; } + longbuf[0] = '\0'; + while (fgets(buf, sizeof(buf)-1, stdin)) { if (buf[0] == ' ' || buf[0] == '\t')