|
Matthew Barnes |
696539 |
--- evolution-2.9.2/plugins/print-message/print-message.c.fix-indic-printing 2005-08-23 23:14:10.000000000 -0400
|
|
Matthew Barnes |
696539 |
+++ evolution-2.9.2/plugins/print-message/print-message.c 2006-11-07 13:47:35.000000000 -0500
|
|
Matthew Barnes |
696539 |
@@ -83,7 +83,7 @@
|
|
Matthew Barnes |
829392 |
data->config = e_print_load_config ();
|
|
Matthew Barnes |
829392 |
data->preview = 0;
|
|
Matthew Barnes |
829392 |
|
|
Matthew Barnes |
829392 |
- data->msg = e_msg_composer_get_message (composer, 1);
|
|
Matthew Barnes |
696539 |
+ data->msg = e_msg_composer_get_message_print (composer, 1);
|
|
Matthew Barnes |
829392 |
dialog = (GtkDialog *)e_print_get_dialog_with_config (_("Print Message"), GNOME_PRINT_DIALOG_COPIES, data->config);
|
|
Matthew Barnes |
829392 |
gtk_dialog_set_default_response(dialog, GNOME_PRINT_DIALOG_RESPONSE_PRINT);
|
|
Matthew Barnes |
829392 |
e_dialog_set_transient_for ((GtkWindow *) dialog, (GtkWidget *) composer);
|
|
Matthew Barnes |
696539 |
@@ -104,7 +104,7 @@
|
|
Matthew Barnes |
829392 |
data->config = e_print_load_config ();
|
|
Matthew Barnes |
829392 |
data->preview = 0;
|
|
Matthew Barnes |
829392 |
|
|
Matthew Barnes |
829392 |
- data->msg = e_msg_composer_get_message (composer, 1);
|
|
Matthew Barnes |
696539 |
+ data->msg = e_msg_composer_get_message_print (composer, 1);
|
|
Matthew Barnes |
829392 |
|
|
Matthew Barnes |
829392 |
print_response(NULL, GNOME_PRINT_DIALOG_RESPONSE_PREVIEW, data);
|
|
Matthew Barnes |
829392 |
}
|
|
Matthew Barnes |
696539 |
--- evolution-2.9.2/composer/e-msg-composer.h.fix-indic-printing 2005-12-07 03:29:51.000000000 -0500
|
|
Matthew Barnes |
696539 |
+++ evolution-2.9.2/composer/e-msg-composer.h 2006-11-07 13:47:35.000000000 -0500
|
|
Matthew Barnes |
696539 |
@@ -96,6 +96,8 @@
|
|
Matthew Barnes |
829392 |
CamelMimePart *part);
|
|
Matthew Barnes |
829392 |
CamelMimeMessage *e_msg_composer_get_message (EMsgComposer *composer,
|
|
Matthew Barnes |
829392 |
gboolean save_html_object_data);
|
|
Matthew Barnes |
696539 |
+CamelMimeMessage *e_msg_composer_get_message_print (EMsgComposer *composer,
|
|
Matthew Barnes |
696539 |
+ gboolean save_html_object_data);
|
|
Matthew Barnes |
829392 |
CamelMimeMessage *e_msg_composer_get_message_draft (EMsgComposer *composer);
|
|
Matthew Barnes |
696539 |
void e_msg_composer_show_sig_file (EMsgComposer *composer);
|
|
Matthew Barnes |
696539 |
gboolean e_msg_composer_get_send_html (EMsgComposer *composer);
|
|
Matthew Barnes |
696539 |
--- evolution-2.9.2/composer/e-msg-composer.c.fix-indic-printing 2006-11-07 13:47:35.000000000 -0500
|
|
Matthew Barnes |
696539 |
+++ evolution-2.9.2/composer/e-msg-composer.c 2006-11-07 14:02:39.000000000 -0500
|
|
Matthew Barnes |
696539 |
@@ -615,6 +615,7 @@
|
|
Matthew Barnes |
696539 |
camel_object_unref (stream);
|
|
Matthew Barnes |
696539 |
|
|
Matthew Barnes |
696539 |
camel_data_wrapper_set_mime_type_field (plain, type);
|
|
Matthew Barnes |
696539 |
+ camel_data_wrapper_set_mime_type (plain, "text/plain; charset=utf-8");
|
|
Matthew Barnes |
696539 |
camel_content_type_unref (type);
|
|
Matthew Barnes |
696539 |
|
|
Matthew Barnes |
696539 |
if (p->send_html) {
|
|
Matthew Barnes |
696539 |
@@ -5189,6 +5190,49 @@
|
|
Matthew Barnes |
829392 |
}
|
|
Matthew Barnes |
829392 |
|
|
Matthew Barnes |
696539 |
CamelMimeMessage *
|
|
Matthew Barnes |
829392 |
+e_msg_composer_get_message_print (EMsgComposer *composer, gboolean save_html_object_data)
|
|
Matthew Barnes |
829392 |
+{
|
|
Matthew Barnes |
696539 |
+ EMsgComposer *temp_composer;
|
|
Matthew Barnes |
829392 |
+ CamelMimeMessage *msg;
|
|
Matthew Barnes |
696539 |
+ GString *flags;
|
|
Matthew Barnes |
696539 |
+
|
|
Matthew Barnes |
829392 |
+ msg = build_message (composer, save_html_object_data);
|
|
Matthew Barnes |
696539 |
+ temp_composer = e_msg_composer_new_with_message (msg);
|
|
Matthew Barnes |
696539 |
+ camel_object_unref (msg);
|
|
Matthew Barnes |
696539 |
+
|
|
Matthew Barnes |
696539 |
+ /* build flags string */
|
|
Matthew Barnes |
696539 |
+ flags = g_string_sized_new (128);
|
|
Matthew Barnes |
696539 |
+ if (temp_composer->priv->send_html)
|
|
Matthew Barnes |
696539 |
+ g_string_append (flags, "text/html");
|
|
Matthew Barnes |
696539 |
+ else
|
|
Matthew Barnes |
696539 |
+ g_string_append (flags, "text/plain");
|
|
Matthew Barnes |
696539 |
+ if (temp_composer->priv->pgp_sign)
|
|
Matthew Barnes |
696539 |
+ g_string_append (flags, ", pgp-sign");
|
|
Matthew Barnes |
696539 |
+ if (temp_composer->priv->pgp_encrypt)
|
|
Matthew Barnes |
696539 |
+ g_string_append (flags, ", pgp-encrypt");
|
|
Matthew Barnes |
696539 |
+ if (temp_composer->priv->smime_sign)
|
|
Matthew Barnes |
696539 |
+ g_string_append (flags, ", smime-sign");
|
|
Matthew Barnes |
696539 |
+ if (temp_composer->priv->smime_encrypt)
|
|
Matthew Barnes |
696539 |
+ g_string_append (flags, ", smime-encrypt");
|
|
Matthew Barnes |
696539 |
+
|
|
Matthew Barnes |
696539 |
+ /* override composer flags */
|
|
Matthew Barnes |
696539 |
+ temp_composer->priv->send_html = TRUE;
|
|
Matthew Barnes |
696539 |
+ temp_composer->priv->pgp_sign = FALSE;
|
|
Matthew Barnes |
696539 |
+ temp_composer->priv->pgp_encrypt = FALSE;
|
|
Matthew Barnes |
696539 |
+ temp_composer->priv->smime_sign = FALSE;
|
|
Matthew Barnes |
696539 |
+ temp_composer->priv->smime_encrypt = FALSE;
|
|
Matthew Barnes |
696539 |
+
|
|
Matthew Barnes |
696539 |
+ msg = build_message (temp_composer, save_html_object_data);
|
|
Matthew Barnes |
696539 |
+ camel_medium_set_header (CAMEL_MEDIUM (msg),
|
|
Matthew Barnes |
696539 |
+ "X-Evolution-Format", flags->str);
|
|
Matthew Barnes |
696539 |
+
|
|
Matthew Barnes |
696539 |
+ e_msg_composer_delete (temp_composer);
|
|
Matthew Barnes |
696539 |
+ g_string_free (flags, TRUE);
|
|
Matthew Barnes |
696539 |
+
|
|
Matthew Barnes |
829392 |
+ return msg;
|
|
Matthew Barnes |
829392 |
+}
|
|
Matthew Barnes |
696539 |
+
|
|
Matthew Barnes |
696539 |
+CamelMimeMessage *
|
|
Matthew Barnes |
696539 |
e_msg_composer_get_message_draft (EMsgComposer *composer)
|
|
Matthew Barnes |
696539 |
{
|
|
Matthew Barnes |
696539 |
CamelMimeMessage *msg;
|