0.8.10claws34
[claws.git] / src / procheader.h
index 70383e5e3c6c5196094fd581217dd6fa10fa5ff6..71f5b2d9eb2ee3237f49036b7d4b9c44c0bbf504 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999,2000 Hiroyuki Yamamoto
+ * 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
@@ -58,16 +58,33 @@ void procheader_header_list_destroy         (GSList         *hlist);
 void procheader_header_array_destroy           (GPtrArray      *harray);
 void procheader_header_free                    (Header         *header);
 
+const HeaderEntry* procheader_get_headernames  (gboolean       full);
+
 void procheader_get_header_fields      (FILE           *fp,
                                         HeaderEntry     hentry[]);
-MsgInfo *procheader_parse              (const gchar    *file,
+MsgInfo *procheader_parse_file         (const gchar    *file,
+                                        MsgFlags        flags,
+                                        gboolean        full,
+                                        gboolean        decrypted);
+MsgInfo *procheader_parse_str          (const gchar    *str,
+                                        MsgFlags        flags,
+                                        gboolean        full,
+                                        gboolean        decrypted);
+MsgInfo *procheader_parse_stream       (FILE           *fp,
                                         MsgFlags        flags,
-                                        gboolean        full);
-MsgInfo *procheader_file_parse(FILE * fp, MsgFlags flags,
-                              gboolean full);
+                                        gboolean        full,
+                                        gboolean        decrypted);
+MsgInfo *procheader_file_parse         (FILE           *fp,
+                                        MsgFlags        flags,
+                                        gboolean        full,
+                                        gboolean        decrypted);
 
 gchar *procheader_get_fromname         (const gchar    *str);
 
+gboolean procheader_date_parse_to_tm   (const gchar    *str,
+                                        struct tm      *t,
+                                        char           *zone);
+
 time_t procheader_date_parse           (gchar          *dest,
                                         const gchar    *src,
                                         gint            len);