From: Wilfried Goesgens Date: Thu, 2 Dec 2010 00:17:05 +0000 (+0100) Subject: Add possibility to trigger the mimeparser internal encoding-decoder X-Git-Tag: v8.01~544 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=e08e7a828fa90956816375bcef258c3cffaa41df Add possibility to trigger the mimeparser internal encoding-decoder --- diff --git a/libcitadel/tests/mimeparser_test.c b/libcitadel/tests/mimeparser_test.c index 83d5bf0f5..95802ff43 100644 --- a/libcitadel/tests/mimeparser_test.c +++ b/libcitadel/tests/mimeparser_test.c @@ -13,7 +13,6 @@ #include -#include "stringbuf_test.h" #include "../lib/libcitadel.h" /* shamelesly copied from msgbase.h */ @@ -203,11 +202,12 @@ int main(int argc, char* argv[]) char *MimeStr; struct ma_info ma; int do_proto = 0; + int dont_decode = 1; setvbuf(stdout, NULL, _IONBF, 0); - while ((a = getopt(argc, argv, "F:f:p")) != EOF) + while ((a = getopt(argc, argv, "dpf:")) != EOF) { switch (a) { case 'f': @@ -216,6 +216,9 @@ int main(int argc, char* argv[]) case 'p': do_proto = 1; break; + case 'd': + dont_decode = 0; + break; } } StartLibCitadel(8); @@ -248,7 +251,7 @@ int main(int argc, char* argv[]) (do_proto ? *list_this_part : NULL), (do_proto ? *list_this_pref : NULL), (do_proto ? *list_this_suff : NULL), - (void *)&ma, 1); + (void *)&ma, dont_decode); free(MimeStr);