Bug 70914

Summary: In news posting containing multiple image attachments only first can be saved
Product: [Unmaintained] knode Reporter: michal
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.7.6   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description michal 2003-12-20 14:07:28 UTC
Version:           0.7.6 (using KDE 3.1.93 (CVS >= 20031111), compiled sources)
Compiler:          gcc version 3.3.2 (PLD Linux)
OS:          Linux (i686) release 2.6.0-test11

In case of posting containing multiple attachements (images) clicking on any of them offers saving of first attachement. Thus it's impossible to save not-first attachement.
Comment 1 michal 2004-05-11 00:41:06 UTC
Reviewed on request from KDE Team <begmail-owner@bugs.kde.org>:
still valid for KDE 3.2.2
Comment 2 Volker Krause 2004-05-23 14:06:18 UTC
CVS commit by vkrause: 

Fix LMB opening/saving of attachments if the article has more than one.

CCMAIL: 70914-done@bugs.kde.org, 70983-done@bugs.kde.org


  M +5 -2      knarticlewidget.cpp   1.178


--- kdepim/knode/knarticlewidget.cpp  #1.177:1.178
@@ -1485,9 +1485,12 @@ void KNArticleWidget::anchorClicked(cons
   anchorType type=ATunknown;
   QString target;
-  kdDebug()<<" target :"<<a<<endl;
+  kdDebug(5003)<<" target :"<<a<<endl;
   if(a.left(17)=="internal://author") {
     type=ATauthor;
   }
   else if(a.left(15)=="internal://att=") {
+    if(a.right(1) == "/")
+      target=a.mid(15, a.length()-16);
+    else
     target=a.mid(15, a.length()-15);
     type=ATattachment;