aboutsummaryrefslogtreecommitdiff
path: root/libsylph/procmime.h
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-03-08 04:37:16 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-03-08 04:37:16 +0000
commitf11888bfed0c495fc2c492e929bcfc122d9c71cb (patch)
tree29a1c264cc6a0b43cee9b609dcf782b0582d9f26 /libsylph/procmime.h
parent3dfde2b2ca388030038a65d6dba71a8571378997 (diff)
removed metamail support and replaced it with the alternative implementation.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1032 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/procmime.h')
-rw-r--r--libsylph/procmime.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/libsylph/procmime.h b/libsylph/procmime.h
index 5fd3a3a4..ac86a63c 100644
--- a/libsylph/procmime.h
+++ b/libsylph/procmime.h
@@ -1,6 +1,6 @@
/*
* LibSylph -- E-Mail client library
- * Copyright (C) 1999-2005 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2006 Hiroyuki Yamamoto
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -28,6 +28,7 @@
#include <stdio.h>
typedef struct _MimeType MimeType;
+typedef struct _MailCap MailCap;
typedef struct _MimeInfo MimeInfo;
#include "procmsg.h"
@@ -65,6 +66,13 @@ struct _MimeType
gchar *extension;
};
+struct _MailCap
+{
+ gchar *mime_type;
+ gchar *cmdline_fmt;
+ gboolean needs_terminal;
+};
+
/*
* An example of MimeInfo structure:
*
@@ -183,6 +191,9 @@ gchar *procmime_get_tmp_file_name (MimeInfo *mimeinfo);
ContentType procmime_scan_mime_type (const gchar *mime_type);
gchar *procmime_get_mime_type (const gchar *filename);
+gint procmime_execute_open_file (const gchar *file,
+ const gchar *mime_type);
+
EncodingType procmime_get_encoding_for_charset (const gchar *charset);
EncodingType procmime_get_encoding_for_text_file(const gchar *file);
const gchar *procmime_get_encoding_str (EncodingType encoding);