Bug 85884 - pegasus mails can not be importet because of capital spelling
Summary: pegasus mails can not be importet because of capital spelling
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: kmailcvt (show other bugs)
Version: 1.6.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-24 20:52 UTC by tolotos
Modified: 2009-03-19 00:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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