From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.204.70.74 with SMTP id c10cs13674bkj; Fri, 22 Oct 2010 04:00:54 -0700 (PDT) Received: by 10.150.54.21 with SMTP id c21mr5933362yba.127.1287745238982; Fri, 22 Oct 2010 04:00:38 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id l21si23329728ybn.35.2010.10.22.04.00.37; Fri, 22 Oct 2010 04:00:37 -0700 (PDT) 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; DomainKey-Status: bad (test mode) 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; domainkeys=hardfail (test mode) header.From=hollunder@lavabit.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 6E3DF1978495; Fri, 22 Oct 2010 07:00:37 -0400 (EDT) X-Greylist: delayed 1189 seconds by postgrey-1.31 at rubyforge.org; Fri, 22 Oct 2010 06:51:04 EDT Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by rubyforge.org (Postfix) with ESMTP id 7CE4B1858392 for ; Fri, 22 Oct 2010 06:51:04 -0400 (EDT) Received: from d.earth.lavabit.com (d.earth.lavabit.com [192.168.111.13]) by karen.lavabit.com (Postfix) with ESMTP id 4C0F611B992 for ; Fri, 22 Oct 2010 05:31:11 -0500 (CDT) Received: from localhost (eris.mozart.uni-klu.ac.at [143.205.216.123]) by lavabit.com with ESMTP id B03MIQG0BSDV for ; Fri, 22 Oct 2010 05:31:11 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=X2j09bQbUQxxMy+6+DfyYdUdRv+rHvYjCYHEJtAWfXiovQYo66vwPWTyh30417jyVr9Erd43WsE4ljH4l66dCuBUIqPHz8uSVo7yggCWMgrUh2o7R9Fh2WgSlIGFXFLkY0zu3g9Y2RKf3Pz4K+fmOM5I14NL087aaUv9YMczd9Y=; h=Content-Type:From:To:Subject:In-reply-to:References:Date:Message-Id:User-Agent:Content-Transfer-Encoding; From: =?utf-8?q?Philipp_=C3=9Cberbacher?= To: sup-talk In-reply-to: <1287736097-sup-8064@blake> References: <1287736097-sup-8064@blake> Date: Fri, 22 Oct 2010 12:31:08 +0200 Message-Id: <1287743238-sup-1964@eris> User-Agent: Sup/0.11 Subject: Re: [sup-talk] mime-view.rb: content_type not found 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 Excerpts from Shadowfirebird's message of 2010-10-22 10:34:04 +0200: > Hi, I'm having trouble setting up the mime-view.rb hook. > > According to the wiki, there should be a "variable" content_type. > > But, here's my program: > > begin > log content_type filename > > rescue > log "Error: #{$!}" > end > > And here's what the log file says: > > hook[mime-view]: Error: undefined method `content_type' for # > > > Anyone got any ideas? I might be wrong, but I seem to remember that the mime type checking depends on some funky debian/ubuntu script. I ran into this when I tried to get this to work: http://sup.rubyforge.org/wiki/wiki.pl?ViewingAttachments Regards, Philipp _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk