Bug 85884

Summary: pegasus mails can not be importet because of capital spelling
Product: [Unmaintained] kmail Reporter: tolotos
Component: kmailcvtAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.6.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description tolotos 2004-07-24 20:52:11 UTC
Version:           1.6.2 (using KDE 3.2.3, SuSE)
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:                Linux (i686) release 2.4.21-231-default

when im trying to import pegasus mails from windows, it doesent work: it just doesnt import anything.
i found out that id does work, when ich change the capital spelling of the file ending: .PMI to .pmi and .PMM to .pmm

greets
matze
Comment 1 Danny Kukawka 2005-02-01 21:41:58 UTC
CVS commit by dkukawka: 

changed filedetection to find e.g. *.pmm and *.PMM files
BUG: 85884


  M +4 -4      filter_pmail.cxx   1.35


--- kdepim/kmailcvt/filter_pmail.cxx  #1.34:1.35
@@ -62,9 +62,9 @@ void FilterPMail::import(FilterInfo *inf
 
    info->addLog(i18n("Importing new mail files ('.cnm')..."));
-   processFiles("*.cnm", &FilterPMail::importNewMessage);
+   processFiles("*.[cC][nN][mM]", &FilterPMail::importNewMessage);
    info->addLog(i18n("Importing mail folders ('.pmm')..."));
-   processFiles("*.pmm", &FilterPMail::importMailFolder);
+   processFiles("*.[pP][mM][mM]", &FilterPMail::importMailFolder);
    info->addLog(i18n("Importing 'UNIX' mail folders ('.mbx')..."));
-   processFiles("*.mbx", &FilterPMail::importUnixMailFolder);
+   processFiles("*.[mM][bB][xX]", &FilterPMail::importUnixMailFolder);
 }
 
@@ -73,5 +73,5 @@ void FilterPMail::processFiles(const QSt
 {
    QStringList files = dir.entryList(mask, QDir::Files, QDir::Name);
-   kdDebug() << "Mask is " << mask << " count is " << files.count() << endl;
+   //kdDebug() << "Mask is " << mask << " count is " << files.count() << endl;
    for ( QStringList::Iterator mailFile = files.begin(); mailFile != files.end(); ++mailFile ) {
       // Notify current file