Browse Source

IOS-2935 Ignore malformed addresses

IOS-2935
Dirk Zimmermann 3 months ago
parent
commit
dfeb85aaeb
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      pantomime-lib/Framework/Pantomime/CWParser.m

+ 5
- 3
pantomime-lib/Framework/Pantomime/CWParser.m View File

@ -621,9 +621,11 @@ NSRange shrinkRange(NSRange range)
initWithString: [CWMIMEUtility decodeHeader: [[aData subdataWithRange: NSMakeRange(x, s_len)] dataByTrimmingWhiteSpaces]
charset: [theMessage defaultCharset]]];
[anInternetAddress setType: theType];
[theMessage addRecipient: anInternetAddress];
RELEASE(anInternetAddress);
if (anInternetAddress) { // ignore malformed addresses
[anInternetAddress setType: theType];
[theMessage addRecipient: anInternetAddress];
RELEASE(anInternetAddress);
}
x = y+1;
}


Loading…
Cancel
Save