#1485242: better handling of situation when message was sent successfully but cannot be saved

release-0.6
alecpl 17 years ago
parent 7c2d30b2e1
commit 9a5762a4de

@ -2206,10 +2206,10 @@ function rcube_webmail()
}; };
this.sent_successfully = function(msg) this.sent_successfully = function(type, msg)
{ {
this.list_mailbox(); this.list_mailbox();
this.display_message(msg, 'confirmation', true); this.display_message(msg, type, true);
} }

@ -40,6 +40,7 @@ $messages['encryptedmessage'] = 'This is an encrypted message and can not be dis
$messages['nocontactsfound'] = 'No contacts found'; $messages['nocontactsfound'] = 'No contacts found';
$messages['contactnotfound'] = 'The requested contact was not found'; $messages['contactnotfound'] = 'The requested contact was not found';
$messages['sendingfailed'] = 'Failed to send message'; $messages['sendingfailed'] = 'Failed to send message';
$messages['errorsavingsent'] = 'An error occured while saving sent message';
$messages['errorsaving'] = 'An error occured while saving'; $messages['errorsaving'] = 'An error occured while saving';
$messages['errormoving'] = 'Could not move the message'; $messages['errormoving'] = 'Could not move the message';
$messages['errordeleting'] = 'Could not delete the message'; $messages['errordeleting'] = 'Could not delete the message';

@ -40,6 +40,7 @@ $messages['encryptedmessage'] = 'This is an encrypted message and can not be dis
$messages['nocontactsfound'] = 'No contacts found'; $messages['nocontactsfound'] = 'No contacts found';
$messages['contactnotfound'] = 'The requested contact was not found'; $messages['contactnotfound'] = 'The requested contact was not found';
$messages['sendingfailed'] = 'Failed to send message'; $messages['sendingfailed'] = 'Failed to send message';
$messages['errorsavingsent'] = 'An error occured while saving sent message';
$messages['errorsaving'] = 'An error occured while saving'; $messages['errorsaving'] = 'An error occured while saving';
$messages['errormoving'] = 'Could not move the message'; $messages['errormoving'] = 'Could not move the message';
$messages['errordeleting'] = 'Could not delete the message'; $messages['errordeleting'] = 'Could not delete the message';

@ -45,7 +45,8 @@ $messages['encryptedmessage'] = 'Przepraszamy, nie można wyświetlić zaszyfrow
$messages['nocontactsfound'] = 'Nie znaleziono kontaktu!'; $messages['nocontactsfound'] = 'Nie znaleziono kontaktu!';
$messages['contactnotfound'] = 'Szukany kontakt nie został odnaleziony'; $messages['contactnotfound'] = 'Szukany kontakt nie został odnaleziony';
$messages['sendingfailed'] = 'Nie udało się wysłać wiadomości!'; $messages['sendingfailed'] = 'Nie udało się wysłać wiadomości!';
$messages['errorsaving'] = 'Błąd podczas zapisu!'; $messages['errorsavingsent'] = 'Wystąpił błąd podczas zapisu wysłanej wiadomości!';
$messages['errorsaving'] = 'Wystąpił błąd podczas zapisu!';
$messages['errormoving'] = 'Nie można przenieść wybranej wiadomości!'; $messages['errormoving'] = 'Nie można przenieść wybranej wiadomości!';
$messages['errordeleting'] = 'Nie można usunąć wiadomości!'; $messages['errordeleting'] = 'Nie można usunąć wiadomości!';
$messages['deletecontactconfirm'] = 'Czy na pewno chcesz usunąć wybrane kontakty?'; $messages['deletecontactconfirm'] = 'Czy na pewno chcesz usunąć wybrane kontakty?';

@ -377,8 +377,10 @@ if ($store_target)
raise_error(array('code' => 800, 'type' => 'imap', 'file' => __FILE__, raise_error(array('code' => 800, 'type' => 'imap', 'file' => __FILE__,
'message' => "Could not save message in $store_target"), TRUE, FALSE); 'message' => "Could not save message in $store_target"), TRUE, FALSE);
$OUTPUT->show_message('errorsaving', 'error'); if ($savedraft) {
$OUTPUT->send('iframe'); $OUTPUT->show_message('errorsaving', 'error');
$OUTPUT->send('iframe');
}
} }
if ($olddraftmessageid) if ($olddraftmessageid)
@ -434,7 +436,11 @@ else
} }
rcmail_compose_cleanup(); rcmail_compose_cleanup();
$OUTPUT->command('sent_successfully', rcube_label('messagesent'));
if ($store_folder && !$saved)
$OUTPUT->command('sent_successfully', 'error', rcube_label('errorsavingsent'));
else
$OUTPUT->command('sent_successfully', 'confirmation', rcube_label('messagesent'));
$OUTPUT->send('iframe'); $OUTPUT->send('iframe');
} }

Loading…
Cancel
Save