From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.87.8 with SMTP id k8cs16896fgb; Fri, 19 Mar 2010 08:37:52 -0700 (PDT) Received: by 10.224.103.69 with SMTP id j5mr72393qao.158.1269013071895; Fri, 19 Mar 2010 08:37:51 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 37si3083919qyk.88.2010.03.19.08.37.51; Fri, 19 Mar 2010 08:37:51 -0700 (PDT) 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 23E4A159809C; Fri, 19 Mar 2010 11:37:51 -0400 (EDT) Received: from twice-irc.de (mx2.twice-irc.de [79.140.35.195]) by rubyforge.org (Postfix) with ESMTP id A9F5518582D8 for ; Fri, 19 Mar 2010 11:36:53 -0400 (EDT) Received: from midna.zekjur.net (midna.zekjur.net [IPv6:2001:4d88:1008:4242:21c:c0ff:fe7e:4776]) by twice-irc.de (Postfix) with ESMTPSA id 1FD5E1665C5 for ; Fri, 19 Mar 2010 16:36:53 +0100 (CET) Received: by midna.zekjur.net (Postfix, from userid 101) id 7A2A825351; Fri, 19 Mar 2010 16:36:37 +0100 (CET) From: Michael Stapelberg To: sup-devel Date: Fri, 19 Mar 2010 16:36:37 +0100 Message-Id: <1269012878-sup-691@midna.zekjur.net> User-Agent: Sup/git Content-Transfer-Encoding: 8bit Content-Type: multipart/mixed; boundary="=-1269012997-480448-22413-3621-2-=" MIME-Version: 1.0 Subject: [sup-devel] [PATCH 2/2] Use nanosecond resolution of mtime for generating the unique id for each message 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: , Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --=-1269012997-480448-22413-3621-2-= Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Hi, the attached patch uses nanosecond resolution to generate the unique id for each message of a maildir. This is necessary because I have about 2000 messages which have the same mtime and size. I am not sure on how to properly check for ruby 1.9 and do the right thing. Also, the user probably needs to run sup-sync after this change. Maybe it should be implemented as a config option and be enabled by default on new configs by sup-config? Thoughts? Best regards, Michael --=-1269012997-480448-22413-3621-2-= Content-Disposition: attachment; filename="0002-Use-nanosecond-resolution-of-mtime-for-generating-th.patch" Content-Type: application/octet-stream; name="0002-Use-nanosecond-resolution-of-mtime-for-generating-th.patch" Content-Transfer-Encoding: base64 RnJvbSBiNGJiNjllZWZmMmRjMjE5MDJkYjk1NzljOGRkZDBmMzJmNzMwNDdl IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoYWVsIFN0YXBl bGJlcmcgPG1pY2hhZWxAc3RhcGVsYmVyZy5kZT4KRGF0ZTogRnJpLCAxOSBN YXIgMjAxMCAxNjozMjowMiArMDEwMApTdWJqZWN0OiBbUEFUQ0ggMi8yXSBV c2UgbmFub3NlY29uZCByZXNvbHV0aW9uIG9mIG10aW1lIGZvciBnZW5lcmF0 aW5nIHRoZSB1bmlxdWUgaWQgZm9yIGVhY2ggbWVzc2FnZQoKVGhpcyByZXF1 aXJlcyBydWJ5IDEuOSAobmFub3NlY29uZCByZXNvbHV0aW9uIGlzIG5vdCBh dmFpbGFibGUgaW4gMS44KQotLS0KIGxpYi9zdXAvbWFpbGRpci5yYiB8ICAg IDIgKy0KIDEgZmlsZXMgY2hhbmdlZCwgMSBpbnNlcnRpb25zKCspLCAxIGRl bGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2xpYi9zdXAvbWFpbGRpci5yYiBi L2xpYi9zdXAvbWFpbGRpci5yYgppbmRleCA4OWE5NDdmLi5kMGMzODAwIDEw MDY0NAotLS0gYS9saWIvc3VwL21haWxkaXIucmIKKysrIGIvbGliL3N1cC9t YWlsZGlyLnJiCkBAIC0xOTYsNyArMTk2LDcgQEAgcHJpdmF0ZQogICAgICNt YWtlcyBhIG5vdGljZWFibGUgZGlmZmVyZW5jZSBvbiBuZnMuCiAgICAgc3Rh dCA9IEZpbGUuc3RhdChmbikKICAgICAjIHVzZSA3IGRpZ2l0cyBmb3IgdGhl IHNpemUuIHdoeSA3PyBzZWVtcyBuaWNlLgotICAgIHNwcmludGYoIiVkJTA3 ZCIsIHN0YXQubXRpbWUsIHN0YXQuc2l6ZSAlIDEwMDAwMDAwKS50b19pCisg ICAgc3ByaW50ZigiJWQlZCUwN2QiLCBzdGF0Lm10aW1lLCBzdGF0Lm10aW1l LnR2X25zZWMsIHN0YXQuc2l6ZSAlIDEwMDAwMDAwKS50b19pCiAgIGVuZAog CiAgIGRlZiBuZXdfbWFpbGRpcl9iYXNlZm4KLS0gCjEuNi41Cgo= --=-1269012997-480448-22413-3621-2-= 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 --=-1269012997-480448-22413-3621-2-=--