From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.229.134.77 with SMTP id i13csp72283qct; Thu, 21 Jun 2012 17:41:26 -0700 (PDT) Received: by 10.236.76.165 with SMTP id b25mr240530yhe.0.1340325686123; Thu, 21 Jun 2012 17:41:26 -0700 (PDT) Return-Path: Received: from rubyforge.org (50-56-192-79.static.cloud-ips.com. [50.56.192.79]) by mx.google.com with ESMTP id i10si4321704yhm.48.2012.06.21.17.41.24; Thu, 21 Jun 2012 17:41:26 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 457A52E078; Fri, 22 Jun 2012 00:41:24 +0000 (UTC) Received: from tihlde.org (colargol.tihlde.org [158.38.48.10]) by rubyforge.org (Postfix) with ESMTP id E62682E062 for ; Fri, 22 Jun 2012 00:41:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by tihlde.org (Postfix) with ESMTP id 2E41AE431A for ; Thu, 21 Jun 2012 22:26:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at tihlde.org Received: from tihlde.org ([127.0.0.1]) by localhost (colargol.tihlde.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nD-fzFdh0G14 for ; Thu, 21 Jun 2012 22:26:19 +0200 (CEST) Received: by tihlde.org (Postfix, from userid 1623) id 573C8E4337; Thu, 21 Jun 2012 22:26:19 +0200 (CEST) From: Helge Titlestad To: sup-talk Date: Thu, 21 Jun 2012 22:26:19 +0200 Message-Id: <1340310366-sup-4562@tihlde.org> User-Agent: Sup/0.11 Subject: [sup-talk] [PATCH] detect and set charset on text/* attachments X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org I got some feedback from non-suppers that my utf-8 text attachments were messed up. When I checked they (the MIME headers) lacked any info on charset, which I believe should be set for text/*. Here's a patch that uses the chardet gem to (try to) detect the appropriate charset and sets it in the Content-Type header. _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk