aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/compose.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1f7c1108..48f99b8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-06
+
+ * src/compose.c: compose_send(): don't close compose window when
+ saving to outbox failed.
+
2011-05-18
* libsylph/codeconv.c: conv_encode_header(): replaced alloca() with
diff --git a/src/compose.c b/src/compose.c
index b24b1d0f..61e23e5e 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -3568,10 +3568,11 @@ static gint compose_send(Compose *compose)
if (!drop_done) {
outbox = account_get_special_folder
(compose->account, F_OUTBOX);
- if (procmsg_save_to_outbox(outbox, tmp) < 0)
+ if (procmsg_save_to_outbox(outbox, tmp) < 0) {
alertpanel_error
- (_("Can't save the message to outbox."));
- else
+ (_("Sending of message was completed, but the message could not be saved to outbox."));
+ ok = -2;
+ } else
folderview_update_item(outbox, TRUE);
}
}