sync with 0.7.8cvs23
[claws.git] / src / unmime.h
index ccd163785399e3bda2b93c014879e4a58de0435d..8e6d8397993a4a9ac7efaf8ec4c5143b3f7c51b4 100644 (file)
@@ -1,23 +1,29 @@
-/* unmime.c */
+/*
+ * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2002 Hiroyuki Yamamoto
+ *
+ * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
 
-#ifdef HAVE_CONFIG_H
-#  include "config.h"
-#endif
+#ifndef __UNMIME_H__
+#define __UNMIME_H__
 
-typedef char    flag;
-/* Bit-mask returned by MimeBodyType */
-#define MSG_IS_7BIT       0x01
-#define MSG_IS_8BIT       0x02
-#define MSG_NEEDS_DECODE  0x80
+#include <glib.h>
 
-#if !HAVE_LIBJCONV
-extern void UnMimeHeader(unsigned char *buf);
-#else
-extern void UnMimeHeaderConv(unsigned char *buf, unsigned char *conv_r,
-                            int conv_len);
-#endif
-extern int  MimeBodyType(unsigned char *hdrs, int WantDecode);
-extern int  DoOneQPLine(unsigned char **bufp, flag delimited, flag issoftline);
-#if 0
-extern int  UnMimeBodyline(unsigned char **buf, flag delimited, flag issoftline);
-#endif
+void unmime_header                     (gchar          *out,
+                                        const gchar    *str);
+gint unmime_quoted_printable_line      (gchar          *str);
+
+#endif /* __UNMIME_H__ */