CVS commit by sngeorgaras: Added eml files support M +3 -1 mhtml.cc 1.7 --- kdenonbeta/kio_mhtml/mhtml.cc #1.6:1.7 @@ -71,4 +71,5 @@ bool mhtmlProtocol::checkNewFile( const c=fullPath.find(".mht",0,FALSE); if(c==-1) c=fullPath.find(".mhtml",0,FALSE); + if(c==-1) c=fullPath.find(".eml",0,FALSE); if(c==-1){ redirection( QString::fromLatin1("file:") + fullPath ); @@ -109,5 +110,5 @@ bool mhtmlProtocol::checkNewFile( const int len = fullPath.length(); - if(fullPath.right(4).lower()==".mht" || fullPath.right(6).lower()==".mhtml") fullPath+="/"; + if(fullPath.right(4).lower()==".mht" || fullPath.right(6).lower()==".mhtml" || fullPath.right(4).lower()==".eml") fullPath+="/"; kdDebug() << "[mhtmlProtocol::checkNewFile]: the full path is " << fullPath << endl; while ( (pos=fullPath.find( '/', pos+1 )) != -1 ){ @@ -278,4 +279,5 @@ void mhtmlProtocol::stat( const KURL & u c=url.url().find(".mht",0,FALSE); if(c==-1) c=url.url().find(".mhtml",0,FALSE); + if(c==-1) c=url.url().find(".eml",0,FALSE); if(c==-1){ kdDebug( ) << "[mhtmlProtocol::stat]: redirection( \"file:\" + url.path() )"<< endl;