]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
header_token was not used anymore for a long time, so get rid of it
authormmj <none@none>
Thu, 3 Jun 2004 14:50:02 +0000 (00:50 +1000)
committermmj <none@none>
Thu, 3 Jun 2004 14:50:02 +0000 (00:50 +1000)
include/header_token.h [deleted file]
src/Makefile.am
src/header_token.c [deleted file]
src/listcontrol.c

diff --git a/include/header_token.h b/include/header_token.h
deleted file mode 100644 (file)
index 0878ed8..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-/* Copyright (C) 2002, 2003 Mads Martin Joergensen <mmj at mmj.dk>
- *
- * $Id$
- *
- * This file is redistributable under version 2 of the GNU General
- * Public License as described at http://www.gnu.org/licenses/gpl.txt
- */
-
-#ifndef HEADER_TOKEN_H
-#define HEADER_TOKEN_H
-
-char *find_header(char *buf, const char *token);
-char *find_header_file(FILE *infile, char *scanbuf, const char *header_token);
-
-#endif
index c1ad5899cedefc6a6eaa915bbbb0841ef63e83b4..b568aa8189506b1079681db1209eaec1ccf0009d 100644 (file)
@@ -23,7 +23,7 @@ mlmmj_recieve_SOURCES = mlmmj-recieve.c writen.c random-int.c strgen.c \
 mlmmj_process_SOURCES = mlmmj-process.c writen.c find_email_adr.c \
                        incindexfile.c itoa.c getlistaddr.c chomp.c \
                        mylocking.c listcontrol.c random-int.c strgen.c \
-                       header_token.c print-version.c send_help.c \
+                       print-version.c send_help.c \
                        do_all_the_voodo_here.c mygetline.c gethdrline.c \
                        log_error.c statctrl.c ctrlvalue.c dumpfd2fd.c
 
diff --git a/src/header_token.c b/src/header_token.c
deleted file mode 100644 (file)
index d9fda81..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Copyright (C) 2002, 2003 Mads Martin Joergensen <mmj at mmj.dk>
- *
- * $Id$
- *
- * This file is redistributable under version 2 of the GNU General
- * Public License as described at http://www.gnu.org/licenses/gpl.txt
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <string.h>
-#include "mlmmj.h"
-#include "header_token.h"
-#include "wrappers.h"
-
-char *find_header(char *buf, const char *token)
-{
-       if(strncmp(buf, token, strlen(token)) == 0)
-               return &(buf[strlen(token)+1]);
-       else
-               return 0;
-}
-
-char *find_header_file(FILE *in, char *scanbuf, const char *header_token)
-{
-       char *bufres;
-
-       while((bufres=fgets(scanbuf, READ_BUFSIZE, in)) != NULL)
-               if(scanbuf[0] != '\t')
-                       if((bufres = find_header(scanbuf, header_token)))
-                               return bufres;
-       return 0;
-}
-
index 72acb086b0f309d752b86eb3854fd5d1c1add568..2de09fc7e70501146464c8b857db1850fff38e3c 100644 (file)
@@ -15,7 +15,6 @@
 #include <sys/stat.h>
 
 #include "mlmmj.h"
-#include "header_token.h"
 #include "listcontrol.h"
 #include "find_email_adr.h"
 #include "strgen.h"