From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.87.8 with SMTP id k8cs249563fgb; Wed, 17 Mar 2010 13:24:32 -0700 (PDT) Received: by 10.224.35.163 with SMTP id p35mr127655qad.6.1268857471422; Wed, 17 Mar 2010 13:24:31 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 1si5830748qyk.68.2010.03.17.13.24.30; Wed, 17 Mar 2010 13:24:31 -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; 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 D3F451858316; Wed, 17 Mar 2010 16:24:30 -0400 (EDT) X-Greylist: delayed 1858 seconds by postgrey-1.31 at rubyforge.org; Wed, 17 Mar 2010 16:18:18 EDT Received: from smtp.webfaction.com (mail6.webfaction.com [74.55.86.74]) by rubyforge.org (Postfix) with ESMTP id 1858718582D6 for ; Wed, 17 Mar 2010 16:18:18 -0400 (EDT) Received: from localhost (adsl-76-246-132-169.dsl.fyvlar.sbcglobal.net [76.246.132.169]) by smtp.webfaction.com (Postfix) with ESMTP id 402F91C77781 for ; Wed, 17 Mar 2010 14:47:17 -0500 (CDT) From: Michael McDermott To: sup-talk In-reply-to: <1268853590-sup-9103@guava.lanl.gov> References: <1268341771-sup-2631@guava.lanl.gov> <1268853590-sup-9103@guava.lanl.gov> Date: Wed, 17 Mar 2010 14:47:16 -0500 Message-Id: <1268855141-sup-3697@zion> User-Agent: Sup/0.11 Subject: Re: [sup-talk] printing emails (but not 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 Well, I'm not a dev, but this little wrapper + muttprint is exactly the kind of thing I've been looking for, from the time I was using pine until now. Thanks for posting it. Excerpts from John Bent's message of Wed Mar 17 14:25:02 -0500 2010: > Excerpts from John Bent's message of Thu Mar 11 14:11:21 -0700 2010: > > I've been piping emails into muttprint which works well unless there's > > a binary attachment. When there's a binary attachment, muttprint > > prints it and it usually takes tens and tens of pages. Whoops. > > > > Anyone else figure out how to print emails but not attachments? > > > Well, I'm sure I've once again reinvented the wheel but I wrote my own > script to print emails without printing binary attachments. It reads an > email, pipes the headers to muttprint, then pipes text/plain and > text/html through w3m into muttprint, for everything else it pipes "# > Attachment: filename (type)." It requires w3m and muttprint to be in > the user's path. > > I'm sorry that it's horribly in violation of sup philosophy but I wrote > it in python. :( Sorry but my ruby is just barely good enough to do > 'if' statements in my hooks. > > It's attached in case anyone else wants it. I'm scared I really did > just reinvent the wheel, otherwise I'd add it to the wiki. To print an > email from sup using this, hit '|' in thread-view-mode to open a pipe > and then just type sup-print (assuming you've put this attachment in > your path). I believe all the python imports it uses come standard. -- Michael McDermott www.mad-computer-scientist.com _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk