<?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>71866</bug_id>
          
          <creation_ts>2004-01-05 00:00:47 +0000</creation_ts>
          <short_desc>conversion of pop filter settings dangerous</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>1.6</version>
          <rep_platform>unspecified</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>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maik Schulz">list</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>20</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>191511</commentid>
    <comment_count>0</comment_count>
    <who name="Maik Schulz">list</who>
    <bug_when>2004-01-05 00:00:47 +0000</bug_when>
    <thetext>Version:           1.5.94 (using KDE 3.1.94 (3.2 Beta 2), SuSE)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.23

In KMail from KDE 3.1.4 I had a filter to delay downloading of emails that exceed 50000 bytes (and to show the dialogue). After installing 3.2B2 the filter was set to delete those emails on the server!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201596</commentid>
    <comment_count>1</comment_count>
    <who name="Ingo Klöcker">kloecker</who>
    <bug_when>2004-02-04 17:16:33 +0000</bug_when>
    <thetext>Confirmed.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201599</commentid>
    <comment_count>2</comment_count>
      <attachid>4511</attachid>
    <who name="Ingo Klöcker">kloecker</who>
    <bug_when>2004-02-04 17:29:57 +0000</bug_when>
    <thetext>Created attachment 4511
This fixes the bug

That&apos;s a prime example for why it&apos;s bad to store the value of an enum as a
number in a config file. The reason for this bug is a reordering of the enum
values in the code. This changed the meaning of the value which is stored in
the config file.

With the patch KMail stores the enum as a string representing the enum value.
As a consequence all POP filters will be reset to NoAction. But there is no
other fix possible because it&apos;s impossible to find out whether the pop filter
configuration was saved with KMail 1.6 or with a previous version of KMail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201824</commentid>
    <comment_count>3</comment_count>
    <who name="Ingo Klöcker">kloecker</who>
    <bug_when>2004-02-05 11:09:10 +0000</bug_when>
    <thetext>This bug has been fixed. The fix will be in KDE 3.2.1. Note that all POP filters will be reset to &quot;Download later&quot; because we now store the filter actions in a safe way in order to prevent further bugs caused by misinterpretations of values in the configuration file.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201827</commentid>
    <comment_count>4</comment_count>
    <who name="Carsten Pfeiffer">pfeiffer</who>
    <bug_when>2004-02-05 11:27:19 +0000</bug_when>
    <thetext>&gt; But there is no other fix possible because it&apos;s impossible to find out 
&gt; whether the pop filter configuration was saved with KMail 1.6 or with a 
&gt; previous version of KMail.

I suggest adding a &apos;version&apos; attribute to the config file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202645</commentid>
    <comment_count>5</comment_count>
    <who name="Caio">caio_sm</who>
    <bug_when>2004-02-07 06:46:44 +0000</bug_when>
    <thetext>It would like to know where place I apply patche: kdepim-3.2.0-HOT_FIX_FOR_KMAIL.patch which is the directory?  Remembering that I use Slackware 9.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202908</commentid>
    <comment_count>6</comment_count>
    <who name="Caio">caio_sm</who>
    <bug_when>2004-02-07 20:03:38 +0000</bug_when>
    <thetext>I installing the following packages: kdegraphics-3.2.0-i486-2.tgz - kdemultimedia-3.2.0-i486-2.tgz - kdepim-3.2.0-i486-2.tgz I solve this bug?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4511</attachid>
            <date>2004-02-04 17:29:57 +0000</date>
            <delta_ts>2004-02-04 17:29:57 +0000</delta_ts>
            <desc>This fixes the bug</desc>
            <filename>kmfilter.cpp.patch</filename>
            <type>text/plain</type>
            <size>1516</size>
            <attacher name="Ingo Klöcker">kloecker</attacher>
            
              <data encoding="base64">SW5kZXg6IGttZmlsdGVyLmNwcAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvaG9tZS9rZGUva2RlcGlt
L2ttYWlsL2ttZmlsdGVyLmNwcCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS41OApkaWZmIC11IC0z
IC1wIC1yMS41OCBrbWZpbHRlci5jcHAKLS0tIGttZmlsdGVyLmNwcAkyOSBOb3YgMjAwMyAxNTo0
Njo0MyAtMDAwMAkxLjU4CisrKyBrbWZpbHRlci5jcHAJNCBGZWIgMjAwNCAxNjoxNjowMSAtMDAw
MApAQCAtMTQ3LDkgKzE0NywxOCBAQCB2b2lkIEtNRmlsdGVyOjpyZWFkQ29uZmlnKEtDb25maWcq
IGNvbmZpCiAgIC8vIHRoYXQgdGhlIHBhdHRlcm4gaXMgcHVyaWZpZWQuCiAgIG1QYXR0ZXJuLnJl
YWRDb25maWcoY29uZmlnKTsKIAotICBpZiAoYlBvcEZpbHRlcikKKyAgaWYgKGJQb3BGaWx0ZXIp
IHsKICAgICAvLyBnZXQgdGhlIGFjdGlvbiBkZXNjcmlwdGlvbi4uLgotICAgI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AgICAgIGNvbmZpZy0+d3JpdGVFbnRyeSggImFjdGlvbiIsICJkZWxl
dGUiICk7CisgICAgICBicmVhazsKKyAgICBkZWZhdWx0OgorICAgICAgY29uZmlnLT53cml0ZUVu
dHJ5KCAiYWN0aW9uIiwgIiIgKTsKKyAgICB9CiAgIH0gZWxzZSB7CiAgICAgUVN0cmluZ0xpc3Qg
c2V0czsKICAgICBpZiAoIGJBcHBseU9uSW5ib3VuZCApCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>