<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello Bron,<br><br>I've apply the patch on cyrus 2.4.13 succesfully and now I can fetch "rfc822.sha1" and "rfc822.filesize":<br><br>. fetch 1:* rfc822.sha1<br>* 1 FETCH (RFC822.SHA1 284c8e2602d2094609aefb31c64622dbcc8a59cb)<br>* 2 FETCH (RFC822.SHA1 40d4f8a1a1c214385d875181c7e950ea04571855)<br>* 3 FETCH (RFC822.SHA1 756b897109ba58dc78c451ffa1ba6837ec17a391)<br><br>. fetch 1:* rfc822.filesize<br>* 1 FETCH (RFC822.FILESIZE 1402)<br>* 2 FETCH (RFC822.FILESIZE 1399)<br>* 3 FETCH (RFC822.FILESIZE 2097759)<br><br>But I have some doubts about it. Fetch sha1 takes too much, I have 1500 mail (around 3GB of data) in this account and it take over 20 seconds to do it:<br>real&nbsp;&nbsp;&nbsp; 0m20.288s<br>user&nbsp;&nbsp;&nbsp; 0m0.380s<br>sys&nbsp;&nbsp;&nbsp;&nbsp; 0m0.014s<br><br>On the other hand fetch filesize takes 0,4 secs:<br>real&nbsp;&nbsp;&nbsp; 0m0.401s<br>user&nbsp;&nbsp;&nbsp; 0m0.369s<br>sys&nbsp;&nbsp;&nbsp;&nbsp; 0m0.022s<br><br>I thought that sha1 was already the GUID field and fetch them would be really fast, but it isn't. have I made something wrong? My perl code is the same in both "fetch":<br><br>my $s1Size = $IMAPs1-&gt;fetch('1:*', 'rfc822.filesize');<br><br>Finally, I attach the patch code for 2.4.13. As you said I had to made some "minor" changes (some compile error due to some missing object) and find the correct lines to apply it.<br><br>Thanks&nbsp; &amp; Regards.<br><br>Manel Gimeno Zaragoza<br>magiza83@hotmail.com<br><br><br><div><div id="SkyDrivePlaceholder"></div>&gt; Date: Wed, 22 Feb 2012 17:40:48 +0100<br>&gt; From: brong@fastmail.fm<br>&gt; To: brong@fastmail.fm<br>&gt; CC: magiza83@hotmail.com; eric.luyten@vub.ac.be; info-cyrus@lists.andrew.cmu.edu<br>&gt; Subject: Re: Problem recover replica<br>&gt; <br>&gt; On Wed, Feb 22, 2012 at 03:49:44PM +0100, Bron Gondwana wrote:<br>&gt; &gt; Ahh, you need our guid commands patch!<br>&gt; &gt; <br>&gt; &gt; It's on the fastmail branch on github. Can email a direct link when I'm not on my phone...<br>&gt; <br>&gt; https://github.com/brong/cyrus-imapd/commit/e0c404436c69bf9535c7f86e7e739c16c6064399<br>&gt; <br>&gt; That's one that applies directly on top of master... you<br>&gt; may need to fiddle with some fuzz to get it to apply to<br>&gt; 2.4.  There's lots of extra annotation stuff on master<br>&gt; now.<br>&gt; <br>&gt; Bron.<br></div>                                               </div></body>
</html>