From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.72.138 with SMTP id d10cs108217vdv; Fri, 23 Dec 2011 07:49:59 -0800 (PST) Received: by 10.224.182.10 with SMTP id ca10mr13340758qab.1.1324655398487; Fri, 23 Dec 2011 07:49:58 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org. [205.234.109.19]) by mx.google.com with ESMTP id y9si4889170qcx.166.2011.12.23.07.49.58; Fri, 23 Dec 2011 07:49:58 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-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-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 1DECE1D7843D; Fri, 23 Dec 2011 10:49:58 -0500 (EST) Received: from mail-qy0-f178.google.com (mail-qy0-f178.google.com [209.85.216.178]) by rubyforge.org (Postfix) with ESMTP id 31A2618581B2 for ; Fri, 23 Dec 2011 10:39:02 -0500 (EST) Received: by qcso15 with SMTP id o15so6598887qcs.23 for ; Fri, 23 Dec 2011 07:39:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=+wgKz3eFyVM2tM3Dcog4KFbUtNmDzRVixUndAc9DCUU=; b=e10Na/NBXZ44abirRqosdiV0FBjFp1KoFipdGrAj0BrTKf7OsSxD49YxOEeTzfk8RR EonAWKG1q2uBHdHRDoepsP8ISj48GtYfIs0TQ10kF7EBK8iOp+hMp+MMT8K2xGPdo7Ct ysxQraSTavthFcXaLl9WMbWp356yAWftzrlWA= Received: by 10.224.31.69 with SMTP id x5mr19354070qac.8.1324654309142; Fri, 23 Dec 2011 07:31:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.178.87 with HTTP; Fri, 23 Dec 2011 07:31:08 -0800 (PST) From: Alex Shulgin Date: Fri, 23 Dec 2011 17:31:08 +0200 Message-ID: To: sup-talk Subject: [sup-talk] Sup crashes when loading a message 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Got this crash today: --- NoMethodError from thread: periodic poll undefined method `downcase' for nil:NilClass /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/rmail-1.0.0/lib/rmail/header.rb:537:in `content_type' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/message.rb:427:in `message_to_chunks' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/message.rb:427:in `map' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/message.rb:427:in `message_to_chunks' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/message.rb:259:in `load_from_source!' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/message.rb:328:in `build_from_source' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:158:in `poll_from' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/mbox.rb:143:in `poll' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:155:in `poll_from' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:113:in `do_poll' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:103:in `each' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:103:in `do_poll' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:102:in `synchronize' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:102:in `do_poll' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/util.rb:609:in `send' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/util.rb:609:in `method_missing' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/modes/poll-mode.rb:15:in `poll' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:49:in `poll_with_sources' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:68:in `poll' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:86:in `start' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup.rb:78:in `reporting_thread' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup.rb:76:in `initialize' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup.rb:76:in `new' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup.rb:76:in `reporting_thread' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/poll.rb:83:in `start' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/util.rb:609:in `send' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/lib/sup/util.rb:609:in `method_missing' /home/ash/.rvm/gems/ruby-1.8.7-p352/gems/sup-0.12.1/bin/sup:222 /home/ash/.rvm/gems/ruby-1.8.7-p352/bin/sup:19:in `load' /home/ash/.rvm/gems/ruby-1.8.7-p352/bin/sup:19 Seems like rmail doesn't really like an empty "Content-Type: " header: rmail/header.rb: def content_type(default = nil) if value = self['content-type'] value.strip.split(/\s*;\s*/)[0].downcase # <== crashes on value="" else if block_given? yield else default end end end Adding (... || "") before downcase seems to help this crash. _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk