Lines 1363-1369
sub _send_message_by_email {
Link Here
|
1363 |
} |
1363 |
} |
1364 |
|
1364 |
|
1365 |
# if initial message address was empty, coming here means that a to address was found and |
1365 |
# if initial message address was empty, coming here means that a to address was found and |
1366 |
# queue should be updated; same if to address was overriden by create_message_headers |
1366 |
# queue should be updated; same if to address was overriden by Koha::Email->create |
1367 |
_update_message_to_address( $message->{'message_id'}, $email->email->header('To') ) |
1367 |
_update_message_to_address( $message->{'message_id'}, $email->email->header('To') ) |
1368 |
if !$message->{to_address} |
1368 |
if !$message->{to_address} |
1369 |
|| $message->{to_address} ne $email->email->header('To'); |
1369 |
|| $message->{to_address} ne $email->email->header('To'); |