--- /dev/null
+Return-Path: <clmason@fusionio.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 2F369431FB6\r
+ for <notmuch@notmuchmail.org>; Sat, 16 Mar 2013 11:51:48 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.8\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.8 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id c6miQkZoUTYX for <notmuch@notmuchmail.org>;\r
+ Sat, 16 Mar 2013 11:51:47 -0700 (PDT)\r
+X-Greylist: delayed 546 seconds by postgrey-1.32 at olra;\r
+ Sat, 16 Mar 2013 11:51:47 PDT\r
+Received: from dkim2.fusionio.com (dkim2.fusionio.com [66.114.96.54])\r
+ (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id A5351431FAE\r
+ for <notmuch@notmuchmail.org>; Sat, 16 Mar 2013 11:51:47 -0700 (PDT)\r
+Received: from mx2.fusionio.com (unknown [10.101.1.160])\r
+ by dkim2.fusionio.com (Postfix) with ESMTP id A00B59A0402\r
+ for <notmuch@notmuchmail.org>; Sat, 16 Mar 2013 12:42:40 -0600 (MDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fusionio.com;\r
+ s=default; t=1363459360;\r
+ bh=VvxVT71Srpf7Vicmvcee+EAFTKrZkNPGea6TJsHvUQU=;\r
+ h=To:From:Subject:Date;\r
+ b=A82sndzM/hqDMl+LPG3R10Qst/af15ISmtrg638ZcLwC9QBvk35jHB+X9K8KteISQ\r
+ g4DBBU65WiULs2aQaR60iXxxCivnY0GclKhATGJ98/jGxNaJ7HYQ/W1rzcHWNiBI00\r
+ uyPy4Ivokme9wAQnFm65pB1JzFOSLlilXs2LiL0E=\r
+X-ASG-Debug-ID: 1363459359-0421b5172c02670001-ZmzXr9\r
+Received: from mail1.int.fusionio.com (mail1.int.fusionio.com [10.101.1.21])\r
+ by mx2.fusionio.com with ESMTP id CwavD8drQIqkXMCf\r
+ (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO);\r
+ Sat, 16 Mar 2013 12:42:39 -0600 (MDT)\r
+X-Barracuda-Envelope-From: clmason@fusionio.com\r
+Received: from localhost (67.247.72.189) by mail.fusionio.com (10.101.1.19)\r
+ with Microsoft SMTP Server (TLS) id 8.3.83.0;\r
+ Sat, 16 Mar 2013 12:42:39 -0600\r
+Content-Type: text/plain; charset="utf-8"\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: quoted-printable\r
+To: <notmuch@notmuchmail.org>, Patrick Totzke <patricktotzke@gmail.com>\r
+Message-ID: <20130316184238.11801.82067@localhost.localdomain>\r
+From: Chris Mason <chris.mason@fusionio.com>\r
+User-Agent: alot/0.3.4\r
+Subject: [PATCH] alot: send batch keypresses back to urwid\r
+Date: Sat, 16 Mar 2013 14:42:38 -0400\r
+X-ASG-Orig-Subj: [PATCH] alot: send batch keypresses back to urwid\r
+X-Barracuda-Connect: mail1.int.fusionio.com[10.101.1.21]\r
+X-Barracuda-Start-Time: 1363459359\r
+X-Barracuda-Encrypted: AES128-SHA\r
+X-Barracuda-URL: http://10.101.1.181:8000/cgi-mod/mark.cgi\r
+X-Virus-Scanned: by bsmtpd at fusionio.com\r
+X-Barracuda-Spam-Score: 0.00\r
+X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of\r
+ TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=\r
+X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.125378\r
+ Rule breakdown below\r
+ pts rule name description\r
+ ---- ----------------------\r
+ --------------------------------------------------\r
+X-Mailman-Approved-At: Sun, 17 Mar 2013 16:42:40 -0700\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 16 Mar 2013 18:51:48 -0000\r
+\r
+Looks like the urwid code is sending us arrays of [ 'j', 'j', 'j' ... ]\r
+when I hold down the key, but alot is only acting on one of them.\r
+\r
+This changes the fire routine to send back all the keys that were sent\r
+to us. It may be a horrible idea, and I'm not sure if urwid always sends us\r
+arrays of the same thing.\r
+\r
+But it's dramatically faster, so how can it be bad?\r
+\r
+Signed-off-by: Chris Mason <chris.mason@fusionio.com>\r
+\r
+diff --git a/alot/ui.py b/alot/ui.py\r
+index 5d4dd4a..b8ced29 100644\r
+--- a/alot/ui.py\r
++++ b/alot/ui.py\r
+@@ -119,12 +119,12 @@ class UI(object):\r
+ self.input_queue =3D []\r
+ self.update()\r
+ =\r
+\r
+- def fire(ignored, cmdline):\r
++ def fire(ignored, cmdline, count):\r
+ clear()\r
+ logging.debug("cmdline: '%s'" % cmdline)\r
+ # move keys are always passed\r
+ if cmdline in ['move up', 'move down', 'move page up', 'mo=\r
+ve page down']:\r
+- return [cmdline[5:]]\r
++ return [cmdline[5:]] * count\r
+ elif not self._locked:\r
+ try:\r
+ self.apply_commandline(cmdline)\r
+@@ -147,7 +147,7 @@ class UI(object):\r
+ self.mainloop.remove_alarm(self._alarm)\r
+ self._alarm =3D self.mainloop.set_alarm_in(timeout=\r
+, fire, cmdline)\r
+ else:\r
+- return fire(self.mainloop, cmdline)\r
++ return fire(self.mainloop, cmdline, len(keys))\r
+ =\r
+\r
+ elif not candidates:\r
+ # case: no sequence with prefix keyseq is mapped\r