Changeset fd51e0f in github
- Timestamp:
- Oct 1, 2008 10:57:43 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 3feb553
- Parents:
- 56cf503
- Files:
-
- 5 edited
-
CHANGELOG (modified) (1 diff)
-
program/js/app.js (modified) (1 diff)
-
program/localization/en_US/messages.inc (modified) (2 diffs)
-
program/steps/mail/compose.inc (modified) (1 diff)
-
program/steps/mail/sendmail.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r56cf503 rfd51e0f 7 7 - Allow calling msgimport.sh/msgexport.sh from any directory (#1485431) 8 8 - Localized filesize units (#1485340) 9 - Better handling of "no identity" and "no email in identity" situations (#1485117) 9 10 10 11 2008/09/29 (alec) -
program/js/app.js
rf4b8681 rfd51e0f 1925 1925 var input_cc = rcube_find_object('_cc'); 1926 1926 var input_bcc = rcube_find_object('_bcc'); 1927 var input_from = rcube_find_object('_from'); 1927 1928 var input_subject = rcube_find_object('_subject'); 1928 1929 var input_message = rcube_find_object('_message'); 1930 1931 // check sender (if have no identities) 1932 if (input_from.type == 'text' && !rcube_check_email(input_from.value, true)) 1933 { 1934 alert(this.get_label('nosenderwarning')); 1935 input_from.focus(); 1936 return false; 1937 } 1929 1938 1930 1939 // check for empty recipient -
program/localization/en_US/messages.inc
r3562eb3 rfd51e0f 57 57 $messages['nonamewarning'] = 'Please enter a name'; 58 58 $messages['nopagesizewarning'] = 'Please enter a page size'; 59 $messages['nosenderwarning'] = 'Please enter sender e-mail address'; 59 60 $messages['norecipientwarning'] = 'Please enter at least one recipient'; 60 61 $messages['nosubjectwarning'] = 'The "Subject" field is empty. Would you like to enter one now?'; … … 91 92 $messages['importconfirm'] = '<b>Successfully imported $inserted contacts, $skipped existing entries skipped</b>:<p><em>$names</em></p>'; 92 93 $messages['opnotpermitted'] = 'Operation not permitted!'; 94 $messages['nofromaddress'] = 'Missing e-mail address in selected identity'; 93 95 94 96 ?> -
program/steps/mail/compose.inc
re2c610e rfd51e0f 82 82 83 83 // add some labels to client 84 rcube_add_label('nosubject', 'no recipientwarning', 'nosubjectwarning', 'nobodywarning', 'notsentwarning', 'savingmessage', 'sendingmessage', 'messagesaved', 'converting');84 rcube_add_label('nosubject', 'nosenderwarning', 'norecipientwarning', 'nosubjectwarning', 'nobodywarning', 'notsentwarning', 'savingmessage', 'sendingmessage', 'messagesaved', 'converting'); 85 85 86 86 // add config parameter to client script -
program/steps/mail/sendmail.inc
rffae15e5 rfd51e0f 64 64 $out['mailto'] = $sql_arr['email']; 65 65 $name = strpos($sql_arr['name'], ",") ? '"'.$sql_arr['name'].'"' : $sql_arr['name']; 66 $out['string'] = sprintf('%s <%s>', 67 rcube_charset_convert($name, RCMAIL_CHARSET, $OUTPUT->get_charset()), 68 $sql_arr['email']); 66 $out['string'] = rcube_charset_convert($name, RCMAIL_CHARSET, $OUTPUT->get_charset()); 67 if ($sql_arr['email']) 68 $out['string'] .= ' <' . $sql_arr['email'] . '>'; 69 69 70 return $out; 70 71 } … … 161 162 162 163 // get sender name and address 163 $identity_arr = rcmail_get_identity(get_input_value('_from', RCUBE_INPUT_POST)); 164 $from = $identity_arr['mailto']; 164 $from = get_input_value('_from', RCUBE_INPUT_POST); 165 $identity_arr = rcmail_get_identity($from); 166 167 if ($identity_arr) 168 $from = $identity_arr['mailto']; 165 169 166 170 if (empty($identity_arr['string'])) … … 352 356 if (!$savedraft) 353 357 { 358 // check for 'From' address (identity may be incomplete) 359 if ($identity_arr && !$identity_arr['mailto']) { 360 $OUTPUT->show_message('nofromaddress', 'error'); 361 $OUTPUT->send('iframe'); 362 } 363 354 364 $sent = rcmail_deliver_message($MAIL_MIME, $from, $mailto); 355 365
Note: See TracChangeset
for help on using the changeset viewer.
