<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 0m20.288s<br>user 0m0.380s<br>sys 0m0.014s<br><br>On the other hand fetch filesize takes 0,4 secs:<br>real 0m0.401s<br>user 0m0.369s<br>sys 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->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 & Regards.<br><br>Manel Gimeno Zaragoza<br>magiza83@hotmail.com<br><br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Wed, 22 Feb 2012 17:40:48 +0100<br>> From: brong@fastmail.fm<br>> To: brong@fastmail.fm<br>> CC: magiza83@hotmail.com; eric.luyten@vub.ac.be; info-cyrus@lists.andrew.cmu.edu<br>> Subject: Re: Problem recover replica<br>> <br>> On Wed, Feb 22, 2012 at 03:49:44PM +0100, Bron Gondwana wrote:<br>> > Ahh, you need our guid commands patch!<br>> > <br>> > It's on the fastmail branch on github. Can email a direct link when I'm not on my phone...<br>> <br>> https://github.com/brong/cyrus-imapd/commit/e0c404436c69bf9535c7f86e7e739c16c6064399<br>> <br>> That's one that applies directly on top of master... you<br>> may need to fiddle with some fuzz to get it to apply to<br>> 2.4. There's lots of extra annotation stuff on master<br>> now.<br>> <br>> Bron.<br></div>                                            </div></body>
</html>