equal
deleted
inserted
replaced
433 |
433 |
434 // Need to locate angle brackets from end of the data, if there |
434 // Need to locate angle brackets from end of the data, if there |
435 // is display name with special characters |
435 // is display name with special characters |
436 TInt start( fullName.LocateReverse( KIpsSmtpOperationCharLessThan ) ); |
436 TInt start( fullName.LocateReverse( KIpsSmtpOperationCharLessThan ) ); |
437 TInt end( fullName.LocateReverse( KIpsSmtpOperationCharMoreThan ) ); |
437 TInt end( fullName.LocateReverse( KIpsSmtpOperationCharMoreThan ) ); |
438 if ( KErrNotFound != start && KErrNotFound != end ) |
438 if ( KErrNotFound != start && KErrNotFound != end && start < end ) |
439 { |
439 { |
440 start += 1; |
440 start += 1; |
441 fullName.Set( aRecipients[i].Mid( start, ( end - start ) ) ); |
441 fullName.Set( aRecipients[i].Mid( start, ( end - start ) ) ); |
442 } |
442 } |
443 // make basic sanity checks for email address |
443 // make basic sanity checks for email address |