aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/mail-callbacks.c3
-rw-r--r--mail/mail-ops.c2
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 <fejj@ximian.com>
+
+ * 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 <toshok@helixcode.com>
* 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));