[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kio_mhtml
From: Spiros Georgaras <sngeorgaras () otenet ! gr>
Date: 2005-01-10 16:29:53
Message-ID: 20050110162953.9BE0E1BC0D () office ! kde ! org
[Download RAW message or body]
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;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic