ipsservices/ipssosplugin/src/ipsplgsmtpoperation.cpp
branchRCL_3
changeset 73 c8382f7b54ef
parent 64 3533d4323edc
equal deleted inserted replaced
70:968773a0b6ef 73:c8382f7b54ef
   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