diff options
Diffstat (limited to 'kmailcvt/filter_mbox.cxx')
-rw-r--r-- | kmailcvt/filter_mbox.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kmailcvt/filter_mbox.cxx b/kmailcvt/filter_mbox.cxx index 4692f7fdc..3777cd7e9 100644 --- a/kmailcvt/filter_mbox.cxx +++ b/kmailcvt/filter_mbox.cxx @@ -46,16 +46,16 @@ void FilterMBox::import(FilterInfo *info) int overall_status = 0; bool first_msg = true; - QStringList filenames = KFileDialog::getOpenFileNames( QDir::homeDirPath(), "*|" + i18n("mbox Files (*)"), info->parent() ); + TQStringList filenames = KFileDialog::getOpenFileNames( TQDir::homeDirPath(), "*|" + i18n("mbox Files (*)"), info->parent() ); info->setOverall(0); - for ( QStringList::Iterator filename = filenames.begin(); filename != filenames.end(); ++filename, ++currentFile) { - QFile mbox( *filename ); + for ( TQStringList::Iterator filename = filenames.begin(); filename != filenames.end(); ++filename, ++currentFile) { + TQFile mbox( *filename ); if (! mbox.open( IO_ReadOnly ) ) { info->alert( i18n("Unable to open %1, skipping").arg( *filename ) ); } else { - QFileInfo filenameInfo( *filename ); - QString folderName( "MBOX-" + filenameInfo.baseName(TRUE) ); + TQFileInfo filenameInfo( *filename ); + TQString folderName( "MBOX-" + filenameInfo.baseName(TRUE) ); info->setCurrent(0); info->addLog( i18n("Importing emails from %1...").arg( *filename ) ); @@ -63,21 +63,21 @@ void FilterMBox::import(FilterInfo *info) info->setFrom( *filename ); info->setTo( folderName ); - QByteArray input(MAX_LINE); + TQByteArray input(MAX_LINE); long l = 0; while ( ! mbox.atEnd() ) { KTempFile tmp; - QIODevice::Offset filepos = 0; + TQIODevice::Offset filepos = 0; /* comment by Danny: - * Don't use QTextStream to read from mbox, better use QDataStream. QTextStream only + * Don't use TQTextStream to read from mbox, better use TQDataStream. TQTextStream only * support Unicode/Latin1/Locale. So you lost information from emails with * charset!=Unicode/Latin1/Locale (e.g. KOI8-R) and Content-Transfer-Encoding != base64 - * (e.g. 8Bit). It also not help to convert the QTextStream to Unicode. By this you + * (e.g. 8Bit). It also not help to convert the TQTextStream to Unicode. By this you * get Unicode/UTF-email but KMail can't detect the correct charset. */ - QCString seperate; - QString x_status_flag = ""; + TQCString seperate; + TQString x_status_flag = ""; /* check if the first line start with "From " (and not "From: ") and discard the line * in this case because some IMAP servers (e.g. Cyrus) don't accept this header line */ |