322 // Start to analyse the original subject string and remove |
322 // Start to analyse the original subject string and remove |
323 // all prefixes at the beggining. When no prefix found as |
323 // all prefixes at the beggining. When no prefix found as |
324 // first word, than loop ends |
324 // first word, than loop ends |
325 do |
325 do |
326 { |
326 { |
327 indexRe = formattedSubjectLinePtr.FindC( rePtr ); |
327 indexRe = formattedSubjectLinePtr.FindC( rePtr ); |
328 if( indexRe == 0 ) |
328 if( indexRe == 0 ) |
329 { |
329 { |
330 formattedSubjectLinePtr.Delete( indexRe, rePtr.Length() ); |
330 formattedSubjectLinePtr.Delete( indexRe, rePtr.Length() ); |
331 formattedSubjectLinePtr.Trim(); |
331 formattedSubjectLinePtr.Trim(); |
332 } |
332 } |
333 |
333 |
334 indexFw = formattedSubjectLinePtr.FindC( fwdPrt ); |
334 indexFw = formattedSubjectLinePtr.FindC( fwdPrt ); |
335 if( indexFw == 0 ) |
335 if( indexFw == 0 ) |
336 { |
336 { |
337 formattedSubjectLinePtr.Delete( indexFw, rePtr.Length() ); |
337 formattedSubjectLinePtr.Delete( indexFw, rePtr.Length() ); |
338 formattedSubjectLinePtr.Trim(); |
338 formattedSubjectLinePtr.Trim(); |
339 } |
339 } |
340 } |
340 } |
341 while( !( indexRe != 0 && indexFw != 0) ); |
341 while( !( indexRe != 0 && indexFw != 0) ); |
342 |
342 |
343 HBufC* finalSubject = HBufC::NewL( formattedSubjectLinePtr.Length() + prefixPtr.Length() + KSpace().Length() ); |
343 HBufC* finalSubject = HBufC::NewL( formattedSubjectLinePtr.Length() + prefixPtr.Length() + KSpace().Length() ); |
344 TPtr ptr = finalSubject->Des(); |
344 TPtr ptr = finalSubject->Des(); |