From: Baptiste Daroussin Date: Sat, 15 Apr 2023 19:27:41 +0000 (+0200) Subject: mlmmj-receive-strip: kill duplicated code X-Git-Tag: RELEASE_1_4_0b1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1db134bbf97501ee20c5766a0e6366b8f1efac6;p=thirdparty%2Fmlmmj.git mlmmj-receive-strip: kill duplicated code --- diff --git a/contrib/receivestrip/mlmmj-receive-strip.c b/contrib/receivestrip/mlmmj-receive-strip.c index 49f0e201..7811d9bf 100644 --- a/contrib/receivestrip/mlmmj-receive-strip.c +++ b/contrib/receivestrip/mlmmj-receive-strip.c @@ -47,6 +47,7 @@ #include "ctrlvalue.h" #include "ctrlvalues.h" #include "utils.h" +#include "do_all_the_voodoo_here.h" #include "log_error.h" #include "wrappers.h" @@ -55,22 +56,6 @@ #define UNWANTED_MIME_HDR "X-ThisMailContainsUnwantedMimeParts: N\n" -static int findit(char *line, strlist *headers) -{ - size_t len; - - if (headers == NULL) - return (0); - - tll_foreach(*headers, hdr) { - len = strlen(hdr->item); - if(strncasecmp(line, hdr->item, len) == 0) - return 1; - } - - return 0; -} - /* extract mime_type and boundary from the Content-Type header * allocates a string for the mime_type if one is found * always allocates a boundarie (using "--" when none is found)