Changeset 9a5762a in github


Ignore:
Timestamp:
Aug 13, 2008 1:00:35 PM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
1b5deba
Parents:
7c2d30b
Message:

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

Location:
program
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    rd224551 r9a5762a  
    22072207 
    22082208 
    2209   this.sent_successfully = function(msg) 
     2209  this.sent_successfully = function(type, msg) 
    22102210    { 
    22112211    this.list_mailbox(); 
    2212     this.display_message(msg, 'confirmation', true); 
     2212    this.display_message(msg, type, true); 
    22132213    } 
    22142214 
  • program/localization/en_GB/messages.inc

    rf5e9367 r9a5762a  
    4141$messages['contactnotfound'] = 'The requested contact was not found'; 
    4242$messages['sendingfailed'] = 'Failed to send message'; 
     43$messages['errorsavingsent'] = 'An error occured while saving sent message'; 
    4344$messages['errorsaving'] = 'An error occured while saving'; 
    4445$messages['errormoving'] = 'Could not move the message'; 
  • program/localization/en_US/messages.inc

    r134eafd r9a5762a  
    4141$messages['contactnotfound'] = 'The requested contact was not found'; 
    4242$messages['sendingfailed'] = 'Failed to send message'; 
     43$messages['errorsavingsent'] = 'An error occured while saving sent message'; 
    4344$messages['errorsaving'] = 'An error occured while saving'; 
    4445$messages['errormoving'] = 'Could not move the message'; 
  • program/localization/pl_PL/messages.inc

    r6eaac22 r9a5762a  
    5252$messages['contactnotfound'] = 'Szukany kontakt nie został odnaleziony'; 
    5353$messages['sendingfailed'] = 'Nie udało się wysłać wiadomości!'; 
    54 $messages['errorsaving'] = 'BłĠ
     54$messages['errorsavingsent'] = 'WystÄ 
     55pił błĠ
     56d podczas zapisu wysłanej wiadomości!'; 
     57$messages['errorsaving'] = 'WystÄ 
     58pił błĠ
    5559d podczas zapisu!'; 
    5660$messages['errormoving'] = 'Nie moÅŒna przenieść wybranej wiadomości!'; 
  • program/steps/mail/sendmail.inc

    rfaf8766 r9a5762a  
    378378                      'message' => "Could not save message in $store_target"), TRUE, FALSE); 
    379379     
    380     $OUTPUT->show_message('errorsaving', 'error'); 
    381     $OUTPUT->send('iframe'); 
     380    if ($savedraft) { 
     381      $OUTPUT->show_message('errorsaving', 'error'); 
     382      $OUTPUT->send('iframe'); 
     383      } 
    382384    } 
    383385 
     
    435437 
    436438  rcmail_compose_cleanup(); 
    437   $OUTPUT->command('sent_successfully', rcube_label('messagesent')); 
     439 
     440  if ($store_folder && !$saved) 
     441    $OUTPUT->command('sent_successfully', 'error', rcube_label('errorsavingsent')); 
     442  else 
     443    $OUTPUT->command('sent_successfully', 'confirmation', rcube_label('messagesent')); 
    438444  $OUTPUT->send('iframe'); 
    439445  } 
Note: See TracChangeset for help on using the changeset viewer.