<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>60508</bug_id>
          
          <creation_ts>2003-06-30 02:56:30 +0000</creation_ts>
          <short_desc>When receiving from maildir, cancelling the receive nukes the entire source maildir</short_desc>
          <delta_ts>2007-09-14 12:17:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kmail</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Mandrake RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>grave</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Clark">jwclark</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>142956</commentid>
    <comment_count>0</comment_count>
    <who name="John Clark">jwclark</who>
    <bug_when>2003-06-30 02:56:31 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.1)
Installed from:    Mandrake RPMs
OS:          Linux

Hi all,

I have used kmail exclusively for the past 2 years also and love it. However, I just discovered a &quot;feature&quot; that enabled me to lose all the emails that I had yet to receive over the past 2 1/2 days.

Due to regular problems with fetchmail, I switched to getmail which works well. I configured getmail to dump all the mail from my various POPs on the &apos;net into a single Maildir (which happens to be located in ~/.getmail/incoming)

(by the way, this maildir is NOT under ~/Mail... I couldn&apos;t make out from the scant documentation on the &quot;receiving from Maildir&quot; feature in kmail whether kmail preferred this or not - my concerns about locking caused me to decide to put it outside ~/Mail).

Anyway, I have configured kmail to receive mail from this maildir, filter it with spamassassin and dump the (ham) messages into my inbox (I get lots of spam, so I&apos;d die without spamassassin).

This has worked really well for a few weeks now.

After a weekend away, I returned, started kmail and invoked the receiving process - 420 emails started being received and spam-filtered (as per normal after a weekend away). Using spamassassin via a kmail filter can take a while and loads up the processor a little, so I knew it was going to spend a while chewing over all those emails.

However, I then realised that there was something else I wanted to do urgently on my PC, so I thought &quot;no problem, I&apos;ll just cancel the receiving process on kmail&quot;. So I clicked on the &quot;X&quot; next to the receiving progress indicator (after only 5 or 6 emails had been processed). 

BAD MOVE!

When I later clicked on &quot;get mail&quot; to receive the remaiing emails, to my horror I found that all the mails in &quot;!/.getmail/incoming&quot; had been nuked by kmail! - must&apos;ve happened when I cancelled the last receive.

This &quot;feature&quot; is not nice! Any chance it could be made a little nicer. I don&apos;t like having my mail sent to a black hole just because I want to cancel a receiving job.

Thanks in advance for a solution,

John</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143078</commentid>
    <comment_count>1</comment_count>
    <who name="Ingo Klöcker">kloecker</who>
    <bug_when>2003-06-30 15:49:23 +0000</bug_when>
    <thetext>Ouch. That&apos;s really a pretty severe bug. I&apos;ve already fixed it locally and will commit the fix later 
this day. 
Thanks for reporting the bug and I hope you didn&apos;t lose any important messages. 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143206</commentid>
    <comment_count>2</comment_count>
    <who name="John Clark">jwclark</who>
    <bug_when>2003-07-01 01:32:48 +0000</bug_when>
    <thetext>Subject: Re:  When receiving from maildir, cancelling the receive nukes the entire source maildir

The beauty of this bug is that I have NO IDEA whether or not I lost any 
important emails - I never got to see them! I dare say there were some 
important ones in there - but what can I do about it except have a cup of tea 
and relax...!

Thanks for getting onto the bug.

Cheers

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143208</commentid>
    <comment_count>3</comment_count>
    <who name="Ingo Klöcker">kloecker</who>
    <bug_when>2003-07-01 02:11:45 +0000</bug_when>
    <thetext>Subject: Re:  New: When receiving from maildir, cancelling =?iso-8859-1?q?the=09receive=20nukes=20the=20entire=20source?= maildir

The fix will be in KMail 1.5.3.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>