From 9180a6949fa42011efde8d80bc155b8f6c985069 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 16 Jan 2001 23:21:28 +0000 Subject: If the user hits "No", then don't destroy the filesel window. 2001-01-16 Jeffrey Stedfast * mail-callbacks.c (save_msg_ok): If the user hits "No", then don't destroy the filesel window. * mail-ops.c (save_messages_save): Open with mode 0666 as danw suggests. svn path=/trunk/; revision=7553 --- mail/ChangeLog | 8 ++++++++ mail/mail-callbacks.c | 3 +-- mail/mail-ops.c | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index bedc49a42d..1d5c1dab71 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2001-01-16 Jeffrey Stedfast + + * mail-callbacks.c (save_msg_ok): If the user hits "No", then + don't destroy the filesel window. + + * mail-ops.c (save_messages_save): Open with mode 0666 as danw + suggests. + 2001-01-16 Chris Toshok * component-factory.c (owner_set_cb): only load the news storage diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 9dada3f929..9c3ad0f121 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -832,9 +832,8 @@ save_msg_ok (GtkWidget *widget, gpointer user_data) uids = gtk_object_get_data (GTK_OBJECT (user_data), "uids"); gtk_object_remove_no_notify (GTK_OBJECT (user_data), "uids"); mail_save_messages (folder, uids, path, NULL, NULL); + gtk_widget_destroy (GTK_WIDGET (user_data)); } - - gtk_widget_destroy (GTK_WIDGET (user_data)); } static void diff --git a/mail/mail-ops.c b/mail/mail-ops.c index aed29afd45..26202e3cfd 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1898,7 +1898,7 @@ static void save_messages_save(struct _mail_msg *mm) int fd, i; char *from; - fd = open(m->path, O_WRONLY | O_CREAT | O_TRUNC); + fd = open(m->path, O_WRONLY | O_CREAT | O_TRUNC, 0666); if (fd == -1) { camel_exception_setv(&mm->ex, CAMEL_EXCEPTION_SYSTEM, _("Unable to create output file: %s\n %s"), m->path, strerror(errno)); -- cgit