fix the generation of maildir filenames

svn path=/trunk/KDE/kdepim/; revision=465751
wilder-work
Andreas Gungl 21 years ago
parent 24a6de2f14
commit 42ca9b5d44
  1. 4
      kmfoldermaildir.cpp

@ -1042,7 +1042,9 @@ QString KMFolderMaildir::constructValidFileName( const QString & filename,
if (!suffix_regex)
suffix_regex_sd.setObject(suffix_regex, new QRegExp(":2,?R?S?$"));
aFileName.truncate(aFileName.findRev(*suffix_regex));
int pos = aFileName.lastIndexOf( *suffix_regex );
if ( pos >= 0 )
aFileName.truncate( pos );
// only add status suffix if the message is neither new nor unread
if (! ((status & KMMsgStatusNew) || (status & KMMsgStatusUnread)) )

Loading…
Cancel
Save