summaryrefslogtreecommitdiffstats
path: root/kmail/imapjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/imapjob.cpp')
-rw-r--r--kmail/imapjob.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kmail/imapjob.cpp b/kmail/imapjob.cpp
index be94557de..c25b29097 100644
--- a/kmail/imapjob.cpp
+++ b/kmail/imapjob.cpp
@@ -118,7 +118,7 @@ void ImapJob::init( JobType jt, TQString sets, KMFolderImap* folder,
++it;
if ( mSrcFolder && !curMsg->isMessage() )
{
- int idx = mSrcFolder->tqfind( curMsg );
+ int idx = mSrcFolder->find( curMsg );
curMsg = mSrcFolder->getMsg( idx );
}
KURL url = account->getUrl();
@@ -130,10 +130,10 @@ void ImapJob::init( JobType jt, TQString sets, KMFolderImap* folder,
curMsg->msgSizeServer() : curMsg->msgSize();
jd.msgList.append( curMsg );
TQCString cstr( curMsg->asString() );
- int a = cstr.tqfind("\nX-UID: ");
- int b = cstr.tqfind('\n', a);
- if (a != -1 && b != -1 && cstr.tqfind("\n\n") > a) cstr.remove(a, b-a);
- jd.data.resize( cstr.length() + cstr.tqcontains( "\n" ) - cstr.tqcontains( "\r\n" ) );
+ int a = cstr.find("\nX-UID: ");
+ int b = cstr.find('\n', a);
+ if (a != -1 && b != -1 && cstr.find("\n\n") > a) cstr.remove(a, b-a);
+ jd.data.resize( cstr.length() + cstr.contains( "\n" ) - cstr.contains( "\r\n" ) );
unsigned int i = 0;
char prevChar = '\0';
// according to RFC 2060 we need CRLF
@@ -290,7 +290,7 @@ void ImapJob::slotGetNextMessage()
jd.msgList.append( msg );
if ( !mPartSpecifier.isEmpty() )
{
- if ( mPartSpecifier.tqfind ("STRUCTURE", 0, false) != -1 ) {
+ if ( mPartSpecifier.find ("STRUCTURE", 0, false) != -1 ) {
path += ";SECTION=STRUCTURE";
} else if ( mPartSpecifier == "HEADER" ) {
path += ";SECTION=HEADER";
@@ -325,7 +325,7 @@ void ImapJob::slotGetNextMessage()
KIO::Scheduler::assignJobToSlave( account->slave(), simpleJob );
mJob = simpleJob;
account->insertJob( mJob, jd );
- if ( mPartSpecifier.tqfind( "STRUCTURE", 0, false ) != -1 )
+ if ( mPartSpecifier.find( "STRUCTURE", 0, false ) != -1 )
{
connect( mJob, TQT_SIGNAL(result(KIO::Job *)),
this, TQT_SLOT(slotGetBodyStructureResult(KIO::Job *)) );
@@ -448,7 +448,7 @@ void ImapJob::slotGetMessageResult( KIO::Job * job )
* this means that the msg is not on the server anymore so delete it */
emit messageRetrieved( 0 );
tqparent->ignoreJobsForMessage( msg );
- int idx = tqparent->tqfind( msg );
+ int idx = tqparent->find( msg );
if (idx != -1) tqparent->removeMsg( idx, true );
// the removeMsg will unGet the message, which will delete all
// jobs, including this one
@@ -583,7 +583,7 @@ void ImapJob::slotCopyMessageInfoData(KIO::Job * job, const TQString & data)
ImapAccountBase::JobIterator it = account->findJob( job );
if ( it == account->jobsEnd() ) return;
- if (data.tqfind("UID") != -1)
+ if (data.find("UID") != -1)
{
// split
TQString oldUid = data.section(' ', 1, 1);
@@ -598,7 +598,7 @@ void ImapJob::slotCopyMessageInfoData(KIO::Job * job, const TQString & data)
for ( msg = (*it).msgList.first(); msg; msg = (*it).msgList.next() )
{
ulong uid = msg->UID();
- index = olduids.tqfindIndex(uid);
+ index = olduids.findIndex(uid);
if (index > -1)
{
// found, get the new uid
@@ -622,7 +622,7 @@ void ImapJob::slotPutMessageInfoData(KIO::Job *job, const TQString &data)
ImapAccountBase::JobIterator it = account->findJob( job );
if ( it == account->jobsEnd() ) return;
- if ( data.tqfind("UID") != -1 )
+ if ( data.find("UID") != -1 )
{
ulong uid = ( data.right(data.length()-4) ).toInt();
if ( !(*it).msgList.isEmpty() )