diff options
Diffstat (limited to 'tdefile-plugins/mhtml/tdefile_mhtml.cpp')
| -rw-r--r-- | tdefile-plugins/mhtml/tdefile_mhtml.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tdefile-plugins/mhtml/tdefile_mhtml.cpp b/tdefile-plugins/mhtml/tdefile_mhtml.cpp index fdf2ffe..69d3b55 100644 --- a/tdefile-plugins/mhtml/tdefile_mhtml.cpp +++ b/tdefile-plugins/mhtml/tdefile_mhtml.cpp @@ -71,27 +71,27 @@ bool mhtmlPlugin::readInfo( KFileMetaInfo& info, uint /*what*/) if(l.startsWith("From: ")) { mSender=l.mid(6); nFieldsFound |= 1; - canUnfold=TRUE; + canUnfold=true; } else if(l.startsWith("To: ")) { mRecipient=l.mid(4); nFieldsFound |= 2; - canUnfold=TRUE; + canUnfold=true; } else if(l.startsWith("Subject: ")) { mSubject=l.mid(9); nFieldsFound |= 4; - canUnfold=TRUE; + canUnfold=true; } else if(l.startsWith("Cc: ")) { mCopyTo=l.mid(4); nFieldsFound |= 8; - canUnfold=TRUE; + canUnfold=true; } else if(l.startsWith("Bcc: ")) { mBlindCopyTo=l.mid(5); nFieldsFound |= 16; - canUnfold=TRUE; + canUnfold=true; } else if(l.startsWith("Date: ")) { mDate=l.mid(6); nFieldsFound |= 32; - canUnfold=FALSE; + canUnfold=false; }else if(l.startsWith(" ") || l.startsWith("\t")){ // unfold field if(canUnfold){ @@ -102,7 +102,7 @@ bool mhtmlPlugin::readInfo( KFileMetaInfo& info, uint /*what*/) else if(nFieldsFound & 2) mRecipient=mRecipient+" "+tmp; else if(nFieldsFound & 1) mSender=mSender+" "+tmp; } - }else canUnfold=FALSE; + }else canUnfold=false; // break out of the loop once the six fields have been found if ( nFieldsFound == 32+16+8+4+2+1 ) break; @@ -110,7 +110,7 @@ bool mhtmlPlugin::readInfo( KFileMetaInfo& info, uint /*what*/) } f.close(); KFileMetaInfoGroup group = appendGroup(info, "mhtmlInfo"); - appendItem(group, "Subject", decodeRFC2047Phrase(mSubject,FALSE)); + appendItem(group, "Subject", decodeRFC2047Phrase(mSubject,false)); appendItem(group, "Sender", decodeRFC2047Phrase(mSender)); appendItem(group, "Recipient", decodeRFC2047Phrase(mRecipient)); appendItem(group, "CopyTo", decodeRFC2047Phrase(mCopyTo)); |
