aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-08-07 16:37:07 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-08-07 16:37:07 +0800
commitcf0a938afbc1c1622111bfd249e0bba75eea3033 (patch)
treeec655f4b562b8208ed71cc46add7188408cac0e2 /mail/mail-ops.c
parent9739fb5219a67aab4e7e7f2b84ec3795ef042f09 (diff)
downloadgsoc2013-evolution-cf0a938afbc1c1622111bfd249e0bba75eea3033.tar
gsoc2013-evolution-cf0a938afbc1c1622111bfd249e0bba75eea3033.tar.gz
gsoc2013-evolution-cf0a938afbc1c1622111bfd249e0bba75eea3033.tar.bz2
gsoc2013-evolution-cf0a938afbc1c1622111bfd249e0bba75eea3033.tar.lz
gsoc2013-evolution-cf0a938afbc1c1622111bfd249e0bba75eea3033.tar.xz
gsoc2013-evolution-cf0a938afbc1c1622111bfd249e0bba75eea3033.tar.zst
gsoc2013-evolution-cf0a938afbc1c1622111bfd249e0bba75eea3033.zip
Renamed from reply_body() so other functions can use it
2000-08-07 Jeffrey Stedfast <fejj@helixcode.com> * mail-format.c (mail_get_message_body): Renamed from reply_body() so other functions can use it (mail_generate_reply): Updated to reflect function name changes * mail-ops.c (real_edit_msg): Attach a callback to the send signal svn path=/trunk/; revision=4564
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index a7388a81e2..fd3500f250 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -630,12 +630,12 @@ void
compose_msg (GtkWidget *widget, gpointer user_data)
{
GtkWidget *composer;
-
+
if (!check_configured ())
return;
-
+
composer = create_msg_composer (NULL);
-
+
gtk_signal_connect (GTK_OBJECT (composer), "send",
GTK_SIGNAL_FUNC (composer_send_cb), NULL);
gtk_widget_show (composer);
@@ -854,6 +854,8 @@ real_edit_msg (MessageList *ml, const char *uid, gpointer user_data)
msg = camel_folder_get_message (ml->folder, uid, ex);
composer = e_msg_composer_new_with_message (msg);
+ gtk_signal_connect (GTK_OBJECT (composer), "send",
+ GTK_SIGNAL_FUNC (composer_send_cb), NULL);
gtk_widget_show (composer);
}
@@ -863,8 +865,17 @@ edit_message (BonoboUIHandler *uih, void *user_data, const char *path)
FolderBrowser *fb = FOLDER_BROWSER (user_data);
MessageList *ml = fb->message_list;
CamelException ex;
+ extern CamelFolder *drafts_folder;
camel_exception_init (&ex);
+
+ if (fb->folder != drafts_folder) {
+ camel_exception_setv (&ex, CAMEL_EXCEPTION_FOLDER_INSUFFICIENT_PERMISSION,
+ "FIXME: some error message about not being in the Drafts folder...");
+ mail_exception_dialog ("Could not open message for editing", &ex, fb);
+ return;
+ }
+
message_list_foreach (ml, real_edit_msg, &ex);
if (camel_exception_is_set (&ex)) {
mail_exception_dialog ("Could not open message for editing", &ex, fb);