(fix) allow multiple space-delimited addresses in the MailFieldNames column

This commit is contained in:
Ludovic Marcotte
2016-08-19 11:45:15 -04:00
parent 3d54bfb882
commit 1b88d17e01

View File

@@ -520,7 +520,7 @@
for (i = 0; i < [_mailFields count]; i++)
if ((s = [response objectForKey: [_mailFields objectAtIndex: i]]) &&
[[s stringByTrimmingSpaces] length] > 0)
[emails addObject: s];
[emails addObjectsFromArray: [s componentsSeparatedByString: @" "]];
}
[response setObject: emails forKey: @"c_emails"];