From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.162.5 with SMTP id xw5csp71628vdb; Fri, 5 Jul 2013 06:19:52 -0700 (PDT) X-Received: by 10.60.133.14 with SMTP id oy14mr10906870oeb.84.1373030391948; Fri, 05 Jul 2013 06:19:51 -0700 (PDT) Return-Path: Received: from rubyforge.org ([50.56.192.79]) by mx.google.com with ESMTP id kk1si5303151oeb.38.2013.07.05.06.19.51 for ; Fri, 05 Jul 2013 06:19:51 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 4F3882E150; Fri, 5 Jul 2013 13:19:52 +0000 (UTC) X-Greylist: delayed 394 seconds by postgrey-1.31 at rubyforge; Fri, 05 Jul 2013 13:19:41 UTC Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by rubyforge.org (Postfix) with ESMTP id 230052E145 for ; Fri, 5 Jul 2013 13:19:41 +0000 (UTC) Received: from localhost ([131.174.252.169]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LdHeL-1UUrt937uD-00iXbX; Fri, 05 Jul 2013 15:13:02 +0200 From: Markus Klinik To: Ruthard Baudach In-reply-to: <1373019929-sup-8525@prxbdc.dyndns.org> References: <1373019929-sup-8525@prxbdc.dyndns.org> Date: Fri, 05 Jul 2013 15:15:48 +0200 Message-Id: <1373030020-sup-8455@x41> User-Agent: Sup/0.13.0 X-Provags-ID: V03:K0:pRlZtfRLo75KMPQoAtBWriVqUAaSBNLr0Mly4pSl5koqfhttBz/ 5C4Y0XA9gwUlXKWwNbTBAruJ0g94YS8BHsXqt6gr4YCG0h20frkugXbZ35F80Mp01obn1RC FC1nNqsCebLcXI5M79szN9LmJ7PbpPW9FmDCFc/T+iMJauT/YanaUSNH36CIZPGxzje6cRE ZVKb2iI1iWqtxAMBQcbRQ== Cc: Sup developer discussion Subject: Re: [sup-devel] reading html mails 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 Ruthard Baudach's message of 2013-07-05 12:32:48 +0200: > In the last years I'm receiving more and more emails containing only > html-formatted text and no plain text. > > sup displays these emails as empty mails with an html attachment. > > It would be great if sup was able to distinguish between actual html > attachments and such deficient mails, and would extract and display > the text part of these mails. Hi, I have a mime-decode hook for exactly this problem. It unfolds html attachments if there is no plaintext part in an email. $ cat mime-decode.rb unless sibling_types.member? "text/plain" case content_type when "text/html" `/usr/bin/elinks -dump '#{filename}'` end end Best regards, Markus _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel