„js/origrcv.js“ ändern

This commit is contained in:
h44z 2020-02-23 18:36:27 +01:00
parent 361d082c4e
commit c6935a04c4

View File

@ -50,7 +50,7 @@ Zarafa.plugins.origrcv.OrigRcvPlugin = Ext.extend(Zarafa.core.Plugin, {
var headers = record.get('transport_message_headers');
var toMatches = toRegex.exec(headers);
if (toMatches.length == 2 && toMatches[1] != "") {
if (toMatches != null && toMatches.length == 2 && toMatches[1] != "") {
var addrListRegex = /\b[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}\b/ig; // split email address list
var emailAddresses = [];