From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.87.8 with SMTP id k8cs20738fgb; Sun, 7 Mar 2010 21:50:35 -0800 (PST) Received: by 10.224.43.151 with SMTP id w23mr2157355qae.235.1268027434269; Sun, 07 Mar 2010 21:50:34 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 7si3093104qwf.47.2010.03.07.21.50.33; Sun, 07 Mar 2010 21:50:34 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 91E2D185828D; Mon, 8 Mar 2010 00:50:33 -0500 (EST) Received: from mail-pw0-f50.google.com (mail-pw0-f50.google.com [209.85.160.50]) by rubyforge.org (Postfix) with ESMTP id E02791858282 for ; Mon, 8 Mar 2010 00:46:51 -0500 (EST) Received: by pwi8 with SMTP id 8so3637745pwi.23 for ; Sun, 07 Mar 2010 21:46:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.165.17 with SMTP id n17mr39271wae.218.1268026888844; Sun, 07 Mar 2010 21:41:28 -0800 (PST) In-Reply-To: <6c0c31751003072119i4c330800s6b508157544165e6@mail.gmail.com> References: <6c0c31751003072119i4c330800s6b508157544165e6@mail.gmail.com> Date: Mon, 8 Mar 2010 00:41:28 -0500 X-Google-Sender-Auth: a69d546089405302 Message-ID: <6c0c31751003072141mc3f0d00sfcf9cb5be18b6adc@mail.gmail.com> From: Scott Henson To: sup-devel Subject: Re: [sup-devel] Maildir souce id rework X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0710690630==" Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --===============0710690630== Content-Type: multipart/alternative; boundary=0016367f928d46798904814384cd --0016367f928d46798904814384cd Content-Type: text/plain; charset=ISO-8859-1 On Mon, Mar 8, 2010 at 12:19 AM, Scott Henson wrote: > I've created a branch that changes the id that the maildir source returns, > which is then used as the source_info field inside the index. It seems to > work well for me and I'd appreciate some more testing. This work should > make the maildir source more robust and more friendly to other clients > accessing the source without completely throwing sup for a loop. It will > also help sync back for maildir (more on this in a second email). > > A couple notes. First, the base source.rb class says that the id returned > needs to be an integer, but that doesn't seem to be the case. Also, you'll > note that start_offset and end_offset are not really telling the truth in my > version of the maildir source. This doesn't seem to be a problem as nothing > seems to be using those two functions. Second, this source might be > slightly slower in some places than the original source and faster in > others. I think most of the work is done in scan_mailbox and the rest of > the source should be pretty light. If anyone has any ideas on how to make > scan_mailbox lighter, I'd be very interested. Also, reset might take a > while since it has to sort the ids array. > > Any help in making this better would be much appreciated. Thanks. > > Probably need to provide a link. http://github.com/shenson/sup/tree/maildir -- Scott Henson --0016367f928d46798904814384cd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Mon, Mar 8, 2010 at 12:19 AM, Scott Henson <sjh@foolishprid= e.org> wrote:
I've created a branch that changes the id that the maildir source retur= ns, which is then used as the source_info field inside the index. =A0It see= ms to work well for me and I'd appreciate some more testing. =A0This wo= rk should make the maildir source more robust and more friendly to other cl= ients accessing the source without completely throwing sup for a loop. =A0I= t will also help sync back for maildir (more on this in a second email).
A couple notes. =A0First, the base source.rb class says that= the id returned needs to be an integer, but that doesn't seem to be th= e case. =A0Also, you'll note that start_offset and end_offset are not r= eally telling the truth in my version of the maildir source. =A0This doesn&= #39;t seem to be a problem as nothing seems to be using those two functions= . =A0Second, this source might be slightly slower in some places than the o= riginal source and faster in others. =A0I think most of the work is done in= scan_mailbox and the rest of the source should be pretty light. =A0If anyo= ne has any ideas on how to make scan_mailbox lighter, I'd be very inter= ested. =A0Also, reset might take a while since it has to sort the ids array= . =A0

Any help in making this better would be much appreciate= d. =A0Thanks.


<= /div>
Probably need to provide a link.




--
Scott Henson
--0016367f928d46798904814384cd-- --===============0710690630== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --===============0710690630==--