From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.87.8 with SMTP id k8cs25323fgb; Wed, 10 Mar 2010 09:31:45 -0800 (PST) Received: by 10.224.13.144 with SMTP id c16mr1317260qaa.85.1268242303974; Wed, 10 Mar 2010 09:31:43 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 4si19110032qwe.56.2010.03.10.09.31.43; Wed, 10 Mar 2010 09:31:43 -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 6D09018582EE; Wed, 10 Mar 2010 12:31:43 -0500 (EST) Received: from pion.club.cc.cmu.edu (PION.CLUB.CC.cmu.edu [128.237.157.88]) by rubyforge.org (Postfix) with ESMTP id 6E9F718582C7 for ; Wed, 10 Mar 2010 12:24:13 -0500 (EST) Received: from rlane by pion.club.cc.cmu.edu with local (Exim 4.69) (envelope-from ) id 1NpPdk-0005wb-Kq; Wed, 10 Mar 2010 12:24:12 -0500 From: Rich Lane To: Edward Z. Yang In-reply-to: <1268196562-sup-1692@ezyang> References: <1268196562-sup-1692@ezyang> Date: Wed, 10 Mar 2010 12:24:12 -0500 Message-Id: <1268241639-sup-9685@zyrg.net> User-Agent: Sup/git Cc: sup-devel Subject: Re: [sup-devel] Mysterious nil errors 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: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org Excerpts from Edward Z. Yang's message of 2010-03-09 23:50:23 -0500: > - content_type = (m.header.content_type || "application/unknown").downcase # sometimes RubyMail gives us nil > + content_type = (m.header["content_type"] && m.header.content_type || "application/unknown").downcase # sometimes RubyMail gives us nil Could you explain why these changes help? What's the return value of the [] call versus the method call? _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel