From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.229.71 with SMTP id jh7cs23538icb; Thu, 27 Jan 2011 12:59:14 -0800 (PST) Received: by 10.42.225.202 with SMTP id it10mr2760040icb.496.1296161953972; Thu, 27 Jan 2011 12:59:13 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id f14si20400454vcm.37.2011.01.27.12.59.13; Thu, 27 Jan 2011 12:59:13 -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 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 7A10619783C6; Thu, 27 Jan 2011 15:59:13 -0500 (EST) Received: from kuovi.tilus.net (kuovi.tilus.net [80.68.89.168]) by rubyforge.org (Postfix) with ESMTP id 1F2CD1678325 for ; Thu, 27 Jan 2011 15:59:00 -0500 (EST) Received: by kuovi.tilus.net (Postfix, from userid 1000) id 630956089; Thu, 27 Jan 2011 22:59:00 +0200 (EET) From: Tero Tilus To: Sup users In-reply-to: References: Date: Thu, 27 Jan 2011 22:59:00 +0200 Message-Id: <1296161278-sup-5120@tilus.net> User-Agent: Sup/git Subject: Re: [sup-talk] Need a simple check / nice error message for user error on mbox being a dir 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 Andrei Thorp, 2011-01-27 21:16: > Scanning mbox:/var/spool/mail/thought... > /usr/lib/ruby/gems/1.9.1/gems/sup-0.12.1/lib/sup/mbox.rb:155:in > `gets': Is a directory - /var/spool/mail/thought (Errno::EISDIR) ... > Obviously a simple user error here. Would be nice if sup knew to throw > a nicer error here. Not a big deal! Did you mean sup should detect if mbox source actually points to a maildir (was /var/spool/mail/thought a maildir?) and suggest a correction to configuration or that sup wouldn't crash but reported "/var/spool/mail/thought Is a directory. File was expected." -- Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/ _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk