From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.59.13 with SMTP id h13cs137397fga; Mon, 15 Feb 2010 14:13:10 -0800 (PST) Received: by 10.224.58.170 with SMTP id g42mr416821qah.329.1266271989284; Mon, 15 Feb 2010 14:13:09 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 8si20114669qwj.11.2010.02.15.14.13.08; Mon, 15 Feb 2010 14:13:09 -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 A45571588078; Mon, 15 Feb 2010 17:13:08 -0500 (EST) Received: from twice-irc.de (mx2.twice-irc.de [79.140.35.195]) by rubyforge.org (Postfix) with ESMTP id 2A21B1588062 for ; Mon, 15 Feb 2010 17:13:02 -0500 (EST) 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 92787166640 for ; Mon, 15 Feb 2010 23:13:01 +0100 (CET) Received: by midna.zekjur.net (Postfix, from userid 101) id B02AD97A01F; Mon, 15 Feb 2010 23:13:00 +0100 (CET) From: Michael Stapelberg To: sup-devel Date: Mon, 15 Feb 2010 23:13:00 +0100 Message-Id: <1266271874-sup-6404@midna.zekjur.net> User-Agent: Sup/git Content-Transfer-Encoding: 8bit Content-Type: multipart/mixed; boundary="=-1266271980-537505-27773-8163-3-=" MIME-Version: 1.0 Subject: [sup-devel] [PATCH] Bugfix: Create dynamically growing fields (long filenames are now supported) 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 --=-1266271980-537505-27773-8163-3-= Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Hi, the attached patch modifies textfield.rb to create a dynamically growable field instead of one with a fixed size. The text field can now hold a dynamic amount of characters which is often necessary if you have long file names. How to reproduce the bug: 1) mkdir -p /tmp/very/long-folder-name-foo-bar-baz/longer-than-one-line-foo-bar-bleh-bleh/maw-maw-maw-maw-maw-maw-maw-maw-maw-maw-maw 2) echo foo > /tmp/very/long-folder-name-foo-bar-baz/longer-than-one-line-foo-bar-bleh-bleh/maw-maw-maw-maw-maw-maw-maw-maw-maw-maw-maw/foo.txt 3) create a new message in sup and try to add the new file as an attachment Please merge this one for the next release. Best regards, Michael --=-1266271980-537505-27773-8163-3-= Content-Disposition: attachment; filename="0001-tf-dynamic-grow.patch" Content-Type: application/octet-stream; name="0001-tf-dynamic-grow.patch" Content-Transfer-Encoding: base64 RnJvbSAzZTdiMzc4MTg4Y2MzNjY2ODI1MDNjZTAyNjQwNThlOTU1NTI5YWI5 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoYWVsIFN0YXBl bGJlcmcgPG1pY2hhZWxAc3RhcGVsYmVyZy5kZT4KRGF0ZTogTW9uLCAxNSBG ZWIgMjAxMCAyMzowOToxOSArMDEwMApTdWJqZWN0OiBbUEFUQ0hdIEJ1Z2Zp eDogQ3JlYXRlIGR5bmFtaWNhbGx5IGdyb3dpbmcgZmllbGRzIChsb25nIGZp bGVuYW1lcyBhcmUgbm93IHN1cHBvcnRlZCkKCi0tLQogbGliL3N1cC90ZXh0 ZmllbGQucmIgfCAgICA0ICsrKy0KIDEgZmlsZXMgY2hhbmdlZCwgMyBpbnNl cnRpb25zKCspLCAxIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2xpYi9z dXAvdGV4dGZpZWxkLnJiIGIvbGliL3N1cC90ZXh0ZmllbGQucmIKaW5kZXgg OWFmZWIzNC4uMzJkMzRiNSAxMDA2NDQKLS0tIGEvbGliL3N1cC90ZXh0Zmll bGQucmIKKysrIGIvbGliL3N1cC90ZXh0ZmllbGQucmIKQEAgLTMzLDcgKzMz LDkgQEAgY2xhc3MgVGV4dEZpZWxkCiAgICAgQHcsIEB5LCBAeCwgQHdpZHRo ID0gd2luZG93LCB5LCB4LCB3aWR0aAogICAgIEBxdWVzdGlvbiA9IHF1ZXN0 aW9uCiAgICAgQGNvbXBsZXRpb25fYmxvY2sgPSBibG9jawotICAgIEBmaWVs ZCA9IE5jdXJzZXM6OkZvcm0ubmV3X2ZpZWxkIDEsIEB3aWR0aCAtIHF1ZXN0 aW9uLmxlbmd0aCwgQHksIEB4ICsgcXVlc3Rpb24ubGVuZ3RoLCAyNTYsIDAK KyAgICBAZmllbGQgPSBOY3Vyc2VzOjpGb3JtLm5ld19maWVsZCAxLCBAd2lk dGggLSBxdWVzdGlvbi5sZW5ndGgsIEB5LCBAeCArIHF1ZXN0aW9uLmxlbmd0 aCwgMCwgMAorICAgIEBmaWVsZC5maWVsZF9vcHRzX29mZihOY3Vyc2VzOjpG b3JtOjpPX1NUQVRJQykKKyAgICBAZmllbGQubWF4X2ZpZWxkID0gMAogICAg IEBmb3JtID0gTmN1cnNlczo6Rm9ybS5uZXdfZm9ybSBbQGZpZWxkXQogICAg IEB2YWx1ZSA9IGRlZmF1bHQgfHwgJycKICAgICBOY3Vyc2VzOjpGb3JtLnBv c3RfZm9ybSBAZm9ybQotLSAKMS42LjUKCg== --=-1266271980-537505-27773-8163-3-= 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 --=-1266271980-537505-27773-8163-3-=--