aboutsummaryrefslogtreecommitdiff
path: root/src/mimeview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mimeview.c')
-rw-r--r--src/mimeview.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mimeview.c b/src/mimeview.c
index 1fa10517..b4a84a93 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -1,6 +1,6 @@
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2010 Hiroyuki Yamamoto
+ * Copyright (C) 1999-2011 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
@@ -1095,6 +1095,15 @@ void mimeview_print(MimeView *mimeview)
partinfo = mimeview_get_selected_part(mimeview);
g_return_if_fail(partinfo != NULL);
+ mimeview_print_part(mimeview, partinfo);
+}
+
+void mimeview_print_part(MimeView *mimeview, MimeInfo *partinfo)
+{
+ g_return_if_fail(partinfo != NULL);
+
+ if (!mimeview->file) return;
+
if (partinfo->mime_type == MIME_MESSAGE_RFC822) {
gchar *filename;
MsgInfo *msginfo;