move parse.c into rfc822parse.c in the lib-mime as it's what it's about
[apps/madmutt.git] / lib-mime / rfc822parse.c
similarity index 98%
rename from parse.c
rename to lib-mime/rfc822parse.c
index c998fc3..2c8f4ad 100644 (file)
--- a/parse.c
@@ -1,3 +1,22 @@
+/*
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or (at
+ *  your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful, but
+ *  WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ *  MA 02110-1301, USA.
+ *
+ *  Copyright © 2006 Pierre Habouzit
+ */
+
 /*
  * Copyright notice from original mutt:
  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
 # include "config.h"
 #endif
 
+#include <sys/stat.h>
+#include <stdlib.h>
+
 #include <lib-lib/mem.h>
 #include <lib-lib/str.h>
 #include <lib-lib/ascii.h>
 #include <lib-lib/macros.h>
 #include <lib-lib/buffer.h>
+#include <lib-lib/date.h>
 
-#include <lib-mime/mime.h>
+#include <lib-crypt/crypt.h>
 
 #include "mutt.h"
 #include "enter.h"
 #include "recvattach.h"
 #include "mx.h"
-#include <lib-crypt/crypt.h>
 #include "url.h"
 
 #include "lib/rx.h"
 #include "lib/debug.h"
 
-#include <string.h>
-#include <ctype.h>
-#include <sys/stat.h>
-#include <stdlib.h>
+#include "mime.h"
 
 /* Reads an arbitrarily long header field, and looks ahead for continuation
  * lines.  ``line'' must point to a dynamically allocated string; it is