<?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>127696</bug_id>
          
          <creation_ts>2006-05-20 05:34:37 +0000</creation_ts>
          <short_desc>[PATCH] &quot;Unable to complete LIST&quot; operation with invalid messages on server</short_desc>
          <delta_ts>2008-08-24 18:31:18 +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>pop3</component>
          <version>1.9.1</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Birch">jbb</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          <cc>cvevans</cc>
    
    <cc>decibelshelp</cc>
    
    <cc>ilovekde</cc>
    
    <cc>jwork123nl</cc>
    
    <cc>kim</cc>
    
    <cc>mcmanus</cc>
    
    <cc>rdieter</cc>
    
    <cc>sac62</cc>
    
    <cc>sysadmin</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>45</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>440437</commentid>
    <comment_count>0</comment_count>
    <who name="John Birch">jbb</who>
    <bug_when>2006-05-20 05:34:38 +0000</bug_when>
    <thetext>Version:           1.9.1 (using KDE 3.5.2, compiled sources)
Compiler:          gcc version 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)
OS:                Linux (i686) release 2.6.16-gentoo-r7

I&apos;ve had a mail message added that causes kmail to fail to retreive any messages.

This patch got around the problem but is not correct code. I include it to help pinpoint the problem.

I realise that the message on the server was incorrect but I don&apos;t believe kmail should fail with this simple error in the data. Also  the messagebox itself was a bit misleading as it wasn&apos;t failing in the LIST stage but in the UIDL stage.

Firstly here&apos;s the output from the patch  showing the incorrect message. It&apos;s message 77 and it doesn&apos;t contain a space and second part (message id and address?)

kmail: PopAccount:: stage==Uidl &lt;2&gt;
kmail: PopAccount:: data=&lt;[37 36 20 3c 32 30 30 36 30 35 31 35 31 30 34 33 2e 35 33 31 39 30 2e 6a 70 65 74 73 6f 40 67 6d 78 2e 61 74 3e 00 0a ]&gt;
kmail: PopAccount::qdata=&lt;76 &lt;200605151043.53190.jpetso@gmx.at&gt;&gt;
kmail: PopAccount::spc=2
kmail: PopAccount:: stage==Uidl &lt;2&gt;
kmail: PopAccount:: data=&lt;[37 37 20 20 00 0a ]&gt;
kmail: PopAccount::qdata=&lt;77&gt;
kmail: PopAccount::spc=-1
kmail: PopAccount:: spc test failed - stage==2

When  this patch is applied it ignores this error and keeps going.   As I said not a correct patch, but at least I can read my mail again     :-)

Cheers,
jbb

Index: popaccount.cpp
===================================================================
--- popaccount.cpp	(revision 542622)
+++ popaccount.cpp	(working copy)
@@ -903,8 +903,12 @@
   QString qdata = data;
   qdata = qdata.simplifyWhiteSpace(); // Workaround for Maillennium POP3/UNIBOX
   int spc = qdata.find( &apos; &apos; );
+  kdDebug(5006) &lt;&lt; &quot;PopAccount:: data=&lt;&quot; &lt;&lt;  data &lt;&lt; &quot;&gt;&quot; &lt;&lt; endl;
+  kdDebug(5006) &lt;&lt; &quot;PopAccount::qdata=&lt;&quot; &lt;&lt; qdata &lt;&lt; &quot;&gt;&quot; &lt;&lt; endl;
+  kdDebug(5006) &lt;&lt; &quot;PopAccount::spc=&quot;    &lt;&lt; spc &lt;&lt; endl;
   if (spc &gt; 0) {
     if (stage == List) {
+      kdDebug(5006) &lt;&lt; &quot;PopAccount:: stage==List &lt;&quot; &lt;&lt; stage &lt;&lt; &quot;&gt;&quot; &lt;&lt; endl;
       QString length = qdata.mid(spc+1);
       if (length.find(&apos; &apos;) != -1) length.truncate(length.find(&apos; &apos;));
       int len = length.toInt();
@@ -914,6 +918,7 @@
       mMsgsPendingDownload.insert( id, len );
     }
     else { // stage == Uidl
+      kdDebug(5006) &lt;&lt; &quot;PopAccount:: stage==Uidl &lt;&quot; &lt;&lt; stage &lt;&lt; &quot;&gt;&quot; &lt;&lt; endl;
       const QString id = qdata.left(spc);
       const QString uid = qdata.mid(spc + 1);
       int *size = new int; //malloc(size_of(int));
@@ -942,13 +947,18 @@
     }
   }
   else {
-    stage = Idle;
-    if (job) job-&gt;kill();
-    job = 0;
-    mSlave = 0;
-    KMessageBox::error(0, i18n( &quot;Unable to complete LIST operation.&quot; ),
+    kdDebug(5006) &lt;&lt; &quot;PopAccount:: spc test failed - stage==&quot; &lt;&lt; stage &lt;&lt; endl;
+    if (stage == List)
+    {
+      kdDebug(5006) &lt;&lt; &quot;PopAccount:: stage==&quot; &lt;&lt; stage &lt;&lt; endl;
+      stage = Idle;
+      if (job) job-&gt;kill();
+      job = 0;
+      mSlave = 0;
+      KMessageBox::error(0, i18n( &quot;Unable to complete LIST operation.&quot; ),
                           i18n(&quot;Invalid Response From Server&quot;));
-    return;
+      return;
+    }
   }
 }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530795</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas McGuire">mcguire</who>
    <bug_when>2007-06-09 14:56:07 +0000</bug_when>
    <thetext>*** Bug 144273 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>531674</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas McGuire">mcguire</who>
    <bug_when>2007-06-15 15:44:20 +0000</bug_when>
    <thetext>*** Bug 79569 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>538103</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas McGuire">mcguire</who>
    <bug_when>2007-07-26 17:30:55 +0000</bug_when>
    <thetext>*** Bug 148225 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>538765</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas McGuire">mcguire</who>
    <bug_when>2007-07-30 19:21:45 +0000</bug_when>
    <thetext>*** Bug 148368 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556985</commentid>
    <comment_count>5</comment_count>
    <who name="Ulf Dambacher">ulf.dambacher</who>
    <bug_when>2007-11-21 07:47:19 +0000</bug_when>
    <thetext>I have the same bug on 1.9.7. It&apos;s very anoying as I always have to delete the message without uidl first, kill the pop3 task and restart kmail before geetting my email!!
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>556986</commentid>
    <comment_count>6</comment_count>
    <who name="Ulf Dambacher">ulf.dambacher</who>
    <bug_when>2007-11-21 07:48:34 +0000</bug_when>
    <thetext>I have the same bug on 1.9.7. It&apos;s very anoying as I always have to delete the message without uidl first, kill the pop3 task and restart kmail before geetting my email!!
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>559738</commentid>
    <comment_count>7</comment_count>
    <who name="David">decibelshelp</who>
    <bug_when>2007-12-02 23:49:31 +0000</bug_when>
    <thetext>Same issue here. I had to setup Thunderbird until this get&apos;s figured out. </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>565965</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Mikowski">z_mikowski</who>
    <bug_when>2007-12-24 03:43:27 +0000</bug_when>
    <thetext>Same issue here for the last 6 months.  Switching to Thunderbird.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>566068</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Mikowski">z_mikowski</who>
    <bug_when>2007-12-25 03:43:11 +0000</bug_when>
    <thetext>I should mention my environment: 
kde3.5.8 on Kubuntu 7.10 (Gutsy Gibbon)
Package kdepim-3.5.7enterprise20070926</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>566069</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Mikowski">z_mikowski</who>
    <bug_when>2007-12-25 03:44:06 +0000</bug_when>
    <thetext>Rebuilding from source now; will report on success or failure</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>566156</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Mikowski">z_mikowski</who>
    <bug_when>2007-12-26 03:00:45 +0000</bug_when>
    <thetext>Rebuilt packages on Kubuntu 7.10.  Results so far excellent.  Thunderbird conversion averted, at least for now.  Here are the steps:

Using: http://www.debian-administration.org/articles/20

apt-get source kmail
apt-get build-dep kmail

Then I edited kdepim-3.5.7enterprise20070926/kmail/popaccount.cpp
as illustrated as above, removing debug output statements:

 964   else {
 965     if( stage == List ){
 966       stage = Idle;
 967       if (job) job-&gt;kill();
 968       job = 0;
 969       mSlave = 0;
 970       KMessageBox::error(0, i18n( &quot;Unable to complete LIST operation.&quot; ),
 971                             i18n(&quot;Invalid Response From Server&quot;));
 972       return;
 973     }
 974   }
 975 }

cd kdepim-3.5.7enterprise20070926
debuild -us -uc
cd ..
sudo dpkg --install kdepim-3.5.7enterprise20070926.deb

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>566158</commentid>
    <comment_count>12</comment_count>
    <who name="Michael Mikowski">z_mikowski</who>
    <bug_when>2007-12-26 03:03:08 +0000</bug_when>
    <thetext>make the last line in comment 11:

sudo dpkg --install kmail_3.5.7enterprise20070926-0ubuntu2_i386.deb

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>566172</commentid>
    <comment_count>13</comment_count>
    <who name="Michael Mikowski">z_mikowski</who>
    <bug_when>2007-12-26 05:06:44 +0000</bug_when>
    <thetext>Added for local fix:

sudo vi /etc/apt/preferences

And add the lines:

Package: kmail
Pin: origin &quot;&quot;
Pin-Priority: 999

This prevents kmail from being overridden by regular updates in debian / ubuntu / kubuntu systems
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>566864</commentid>
    <comment_count>14</comment_count>
    <who name="Christian Tessarek">cz</who>
    <bug_when>2007-12-29 10:21:12 +0000</bug_when>
    <thetext>thanks john for the patch; at least, it works (finally) again.
is there any chance for that patch to make it into the next kmail release, say 1.9.8? i really like kontact, but thats more than just a slight annoyance...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>572179</commentid>
    <comment_count>15</comment_count>
      <attachid>23087</attachid>
    <who name="Patrick McManus">mcmanus</who>
    <bug_when>2008-01-16 22:50:22 +0000</bug_when>
    <thetext>Created attachment 23087
patch for comment 15</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>572180</commentid>
    <comment_count>16</comment_count>
    <who name="Patrick McManus">mcmanus</who>
    <bug_when>2008-01-16 22:51:18 +0000</bug_when>
    <thetext>The issue here is error handling when receiving a blank uid prortion of a UIDL response.. for instance:

1 1200413730.1[CRLF]
2 [CRLF]
3 1200414111.3[CRLF]
. [CRLF] 

will trigger it. John&apos;s debug data from the original bug description shows this nicely.

it seems some pop server will generate a bogus uidl response like the above based on the email containing an invalid message-id header. 

I only tested with Dovecot, and could not reproduce that behavior, but forcing the protocol trace with netcat using the above sequence did create a reproduction.

If any of the reporters could identify the pop server that is doing that, we could potentially file a bug against the server which is really the root cause here too.

In any event, without a valid UIDL identifier the message cannot be persisted on the server - otherwise, everytime a LIST operation occurred there would be no way to know whether or not there was a local copy of this message and we would keep downloading it over and over again.

The attached patch 

 * separates error handling for LIST and UIDL operations (removing the confusing error dialog here that casts doubt on LIST un-necessarily)
 * takes UIDL lines with an ID but without a valid UID portion and forces a download of those messages and a delete from the server
 * logs a debug message when it is doing this

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>574043</commentid>
    <comment_count>17</comment_count>
    <who name="Patrick McManus">mcmanus</who>
    <bug_when>2008-01-22 17:39:00 +0000</bug_when>
    <thetext>I can confirm a server that announces itself as

IMPLEMENTATION Openwave Email vM.7.08.02.00 201-2186-121-20061213

exhibits this bug.. and the patch from comment 15 works around it.

The website seems to indicate this is legacy closed source, so not much chance it will get repaired on the server end.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>574050</commentid>
    <comment_count>18</comment_count>
    <who name="Christian Tessarek">cz</who>
    <bug_when>2008-01-22 17:54:18 +0000</bug_when>
    <thetext>Whether it is a server side error or not, kmail should be able to fetch emails from the worst non standard compliant servers anyways. It cant be that a malformated header forces a mail client to manually delete the message (e.g. via webmail) and restart the client...

just my humble opinion...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>574161</commentid>
    <comment_count>19</comment_count>
    <who name="David">decibelshelp</who>
    <bug_when>2008-01-22 22:16:59 +0000</bug_when>
    <thetext>I had not had this error for awhile until couple days ago and again this morning. Went to the server to check each email address and both times it was one or two spam emails. That were left on the servers. 

Like this morning, Kmail downloaded several emails and then gave me the LIST error. I found the same two spam in two email addresses, no ham present they had been downloaded via Kmail. Deleted both emails in each address and checked server with Kmail again and didn&apos;t get any errors. 

If/when this happens again I could get the email source of each one before deleting to see which one it is. Going to try that next time, will post it if anyone thinks it might help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>574187</commentid>
    <comment_count>20</comment_count>
    <who name="Patrick McManus">mcmanus</who>
    <bug_when>2008-01-22 23:54:14 +0000</bug_when>
    <thetext>Christian, re comment 18: I agree it should be worked around in the client. That&apos;s what the patch in comment 15 does. In a perfect open source world, it would be fixed in the server too - that&apos;s why I noted the server.

David, re comment 19: the patch in comment #15 should fix that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>575699</commentid>
    <comment_count>21</comment_count>
    <who name="Thomas McGuire">mcguire</who>
    <bug_when>2008-01-27 01:06:29 +0000</bug_when>
    <thetext>SVN commit 766946 by tmcguire:

Don&apos;t fail when the server sends an invalid UIDL entry.
Instead, generate a fake UID for and delete the mail from the
server (after downloading it).

Based on patch by Patrick McManus &lt;mcmanus at ducksong dot com&gt;.

BUG: 127696



 M  +71 -31    popaccount.cpp  
 M  +6 -0      popaccount.h  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=766946
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>575700</commentid>
    <comment_count>22</comment_count>
    <who name="Thomas McGuire">mcguire</who>
    <bug_when>2008-01-27 01:10:11 +0000</bug_when>
    <thetext>Thanks all for tracking this down and for writing a patch.
I&apos;ve now committed this to trunk, and given that it works OK there, I&apos;ll backport it to the 3.5 branch. Please remind me if I haven&apos;t done so in two weeks.

Sorry for the delay, but the few KMail developers that are there really have a lack of time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>575982</commentid>
    <comment_count>23</comment_count>
    <who name="Hank Ivy">hankivy</who>
    <bug_when>2008-01-28 01:19:38 +0000</bug_when>
    <thetext>I was able to temporarily work around this problem by accessing my POP3 Server using a different email client, moving an offending message from the inbox folder to another folder created just to hold the message.  Then Kmail was able to download all of the other messages.  The specific message was not a spam message.  I will try to report more later.

My email is hankivy@hot.rr.com.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>576389</commentid>
    <comment_count>24</comment_count>
    <who name="Hank Ivy">hankivy</who>
    <bug_when>2008-01-29 18:25:27 +0000</bug_when>
    <thetext>I can log on to my POP3 Server using telnet, and see all of the operations that are normally hidden.  I also have an email that can cause this problem to occur when ever desired.  Does any experienced POP3 or mail client developer have any suggestions for me to try to duplicate the problem, and collect diagnosic information?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>576629</commentid>
    <comment_count>25</comment_count>
    <who name="Thomas McGuire">mcguire</who>
    <bug_when>2008-01-30 17:29:15 +0000</bug_when>
    <thetext>&gt; Does any experienced POP3 or mail client developer have any suggestions for me to try to duplicate the problem, and collect diagnosic information? 
There is no need to duplicate the problem, we know what the problem is and already fixed it (in trunk, but I&apos;ll backport it soon).
 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>579958</commentid>
    <comment_count>26</comment_count>
    <who name="Kevin Kofler">kevin.kofler</who>
    <bug_when>2008-02-13 02:51:08 +0000</bug_when>
    <thetext>2 weeks have passed, how&apos;s the backporting going?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580314</commentid>
    <comment_count>27</comment_count>
    <who name="Thomas McGuire">mcguire</who>
    <bug_when>2008-02-14 18:31:37 +0000</bug_when>
    <thetext>&gt;2 weeks have passed, how&apos;s the backporting going? 

Thanks for reminding my. I thought I had backported a week ago, but apparently the commit failed for some reason.

I&apos;ve now backported it to the enterprise branch in rev. 775015.
It is to late for 3.5.9 though, which is already tagged. Sorry :(

The diff should apply to the 3.5 branch without problems if you want to manually include it in the release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580457</commentid>
    <comment_count>28</comment_count>
    <who name="Kevin Kofler">kevin.kofler</who>
    <bug_when>2008-02-15 08:23:00 +0000</bug_when>
    <thetext>Thanks, I&apos;ll apply this to the Fedora 3.5.9 packages. Shouldn&apos;t this be applied to the regular 3.5 branch too?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580545</commentid>
    <comment_count>29</comment_count>
    <who name="Thomas McGuire">mcguire</who>
    <bug_when>2008-02-15 16:00:30 +0000</bug_when>
    <thetext>&gt; Thanks, I&apos;ll apply this to the Fedora 3.5.9 packages. Shouldn&apos;t this be
&gt; applied to the regular 3.5 branch too?

Yes, it should. I&apos;m hoping someone who has svnmerge+both branches checked out 
will do it for me, otherwise I&apos;ll do it myself.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580555</commentid>
    <comment_count>30</comment_count>
    <who name="Till Adam">adam</who>
    <bug_when>2008-02-15 16:17:09 +0000</bug_when>
    <thetext>Enterprise changes go into 3.5 automatically, roughly once a week.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>640600</commentid>
    <comment_count>31</comment_count>
    <who name="">sac62</who>
    <bug_when>2008-08-24 18:31:18 +0000</bug_when>
    <thetext>Interesting.  I was trying to figure out why this problem seemed intermittent.
I have KMail set not to DL messages from the server so if I make a mistake and delete a message I wanted to keep I can retrieve it.
I now realize that my behavior of going directly to my mail server and going through my mail deleting unwanted crap it would solve the problem and KMail would work again.

I do not have enough knowledge and understanding of how to apply the patch provided here.  I have for many years wanted to use linux but could never understand it enough to make it work. With the development of PC-BSD though I am now allmost a full time user of that OS.  I love it and all that comes with it.  I must admit I still have to run Windows from time to time when needing print and scan because I still can&apos;t get those applications working.  

May I suggest that the patch be developed for PC-BSD as a PBI for us newbies?

Thanks
Steve</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>23087</attachid>
            <date>2008-01-16 22:50:22 +0000</date>
            <delta_ts>2008-01-16 22:50:22 +0000</delta_ts>
            <desc>patch for comment 15</desc>
            <filename>kmail-patch-127696</filename>
            <type>text/plain</type>
            <size>7272</size>
            <attacher name="Patrick McManus">mcmanus</attacher>
            
              <data encoding="base64">Y29tbWl0IDNjNzQ4ZmRlOWY3MGVlZWRhZjdhMWMxYjJmMjJkYzM1NTI3NjljNDEKQXV0aG9yOiBQ
YXRyaWNrIE1jTWFudXMgPG1jbWFudXNAZHVja3NvbmcuY29tPgpEYXRlOiAgIFdlZCBKYW4gMTYg
MTY6NDc6MzEgMjAwOCAtMDUwMAoKICAgIGZvciBodHRwOi8vYnVncy5rZGUub3JnL3Nob3dfYnVn
LmNnaT9pZD0xMjc2OTYKICAgIAogICAgVGhlIGlzc3VlIGhlcmUgaXMgZXJyb3IgaGFuZGxpbmcg
d2hlbiByZWNlaXZpbmcgYSBibGFuayB1aWQgcHJvcnRpb24KICAgIG9mIGEgVUlETCByZXNwb25z
ZS4uIGZvciBpbnN0YW5jZToKICAgIAogICAgMSAxMjAwNDEzNzMwLjFbQ1JMRl0KICAgIDIgW0NS
TEZdCiAgICAzIDEyMDA0MTQxMTEuM1tDUkxGXQogICAgLiBbQ1JMRl0KICAgIAogICAgd2lsbCB0
cm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