| Summary: | kmail saves attachments with size 0 | ||
|---|---|---|---|
| Product: | [Unmaintained] kmail | Reporter: | Ferdinand Gassauer <gassauer> |
| Component: | general | Assignee: | kdepim bugs <pim-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.8.50 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Ferdinand Gassauer
2005-07-12 21:39:31 UTC
Confirmed, somebody broke that. The readerwin doesn't find the partNode anymore. Could this be due to the mimelib fix (where I changed a const char* into a DWString?) Carsten, can you double-check the code which uses the part ID? SVN commit 437867 by burghard:
Compare the IDs correctly with kasciistricmp.
BUGS:109003
M +2 -1 partNode.cpp
--- trunk/KDE/kdepim/kmail/partNode.cpp #437866:437867
@@ -36,6 +36,7 @@
#include "kmmimeparttree.h"
#include <mimelib/utility.h>
#include <qregexp.h>
+#include <kasciistricmp.h>
/*
===========================================================================
@@ -413,7 +414,7 @@
partNode* partNode::findNodeForDwPart( DwBodyPart* part )
{
partNode* found = 0;
- if( dwPart()->partId() == part->partId() )
+ if( kasciistricmp( dwPart()->partId(), part->partId() ) == 0 )
return this;
if( mChild )
found = mChild->findNodeForDwPart( part );
The kmail shipped in KDE 3.4.2 is affected by this bug. See 109933 |