From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.188.165 with SMTP id gb5cs161771vdc; Tue, 26 Apr 2011 03:49:59 -0700 (PDT) Received: by 10.229.44.134 with SMTP id a6mr428391qcf.221.1303814997609; Tue, 26 Apr 2011 03:49:57 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id m14si13513403qcu.60.2011.04.26.03.49.57; Tue, 26 Apr 2011 03:49:57 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-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-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 1906A1D780F9; Tue, 26 Apr 2011 06:49:57 -0400 (EDT) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by rubyforge.org (Postfix) with SMTP id 68149177994C for ; Tue, 26 Apr 2011 05:52:47 -0400 (EDT) Received: (qmail invoked by alias); 26 Apr 2011 09:52:43 -0000 Received: from unknown (EHLO localhost) [82.113.106.203] by mail.gmx.net (mp048) with SMTP; 26 Apr 2011 11:52:43 +0200 X-Authenticated: #53368487 X-Provags-ID: V01U2FsdGVkX1/zktpyBrvzYlC3stRuY48di9ktwKO9jFp/BxhniK gt8GCcbhX80Eca From: John Wyzer To: sup-devel Mailing List Date: Tue, 26 Apr 2011 11:52:06 +0200 Message-Id: <1303810927-sup-9051@localhost> User-Agent: Sup/git Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-1303811526-598658-22630-1637-1-=" X-Y-GMX-Trusted: 0 Subject: [sup-devel] odd - mime-decode not working on some text/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: , Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --=-1303811526-598658-22630-1637-1-= Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline I tried that with and without having the mime-decode.rb ## turn text/html attachments into plain text, unless they are part ## of a multipart/alternative pair unless sibling_types.member? "text/plain" case content_type when "text/html" `/usr/bin/w3m -dump -T #{content_type} '#{filename}'` end end in .sup/hooks Some html emails that I receive work fine - I can read them as text. But some are just displayed as an attachment every time. I can open them with mime-view - but I would prefer to have the text displayed without further interaction... Attached is one of those messages - perhaps someone more enlightened than me could have a short look and knows instantly why sup does not do the correct thing? ;-) Many thanks! --=-1303811526-598658-22630-1637-1-= Content-Disposition: attachment; filename="anonymised-html-message.txt" Content-Type: text/plain; name="anonymised-html-message.txt" Content-Transfer-Encoding: quoted-printable Return-Path: X-Original-To: abc Delivered-To: abc@abcdefghi Received: ab abcdefghi (bcdefgh, from abcdef 1001) id 48604f4h5jk; Fri, 22 Apr 2011 11:44:58 +0200 (bcde) Received-SPF: abcd (bcde.com: abcdef ab abcdefghijkl@abcdefg.abcd.abc abc= defghij 188.40.248.158 ab abcdefghi sender abcde abcd abcde ) client-ip:= 188.40.248.158 Received: from abcdefg.abcd.abc [74.201.154.18] ab abcdefghi abcd abc3 (bcdefghij-6.3.18) abc (bcdefg-ijkl); Fri, 22 Apr 2011 11:44:57 +0200 (bcde= ) Received: from ab0.abc.abc (bc0.abc.abc [213.165.64.100]) ab ab.abcdefgh.= abc abcd abcd id 1303465235831991.3970080390092; Fri, 22 Apr 2011 02:40:35 -= 0700 (bcd) Received: (bcdef 13920 abcdefg ab abcde); 22 Apr 2011 09:40:34 -0000 Received: (bcdef abcdefg ab abcde); 22 Apr 2011 09:40:33 -0000 Received: from ab.abcd.abc (bcde ab.abcd.abc) [188.40.248.158] ab ab0.abc.abc (bc077) abcd abcd; 22 Apr 2011 11:40:33 +0200 Received: ab ab.abcd.abc (bcdefgh, from abcdef 33) id 89c751164jkl; Fri, 22 Apr 2011 11:40:32 +0200 (bcde) Delivered-To: abc abcdefgh to abcdefghij.abcdefg@abc.ab Date: Fri, 22 Apr 2011 11:40:32 +0200 From: abcd abcdefg Reply-To: abcdefghijkl+abcdefghijkl+136@abcdefg.abcd.abc To: abcdefghij.abcdefg@abc.ab Message-ID: <4bc14f106j8l6_592r57u93x176b@abcd.abc.abcd> Subject: [abcdefghijkl] abcdefghi - abcdef, abcdefghijkl, abcde Mime-Version: 1.0 Content-Type: text/html; charset=3DUTF-8 Content-Transfer-Encoding: quoted-printable X-GMX-Antispam: -2 (bcd abcdefg, abcd abcdef abcdefgh); Detail=3D5D7Q89H36p4L00VTXC6D4q0N+AH0PUCnKGJbGgJLbSXk30NezpdxUg=3D=3DV1;= X-Resent-By: abcdefghi X-Resent-For: abcdefghij.abcdefg@abc.ab X-Resent-To: abcdefghij.abcdefg@abcd.abc X-ZohoMail: ab_1 abcd abcd ab2468 ab2468 abcd abc3_20041_115 X-ZohoMail-Owner: <4bc14f106j8l6_592r57u93x176b@abcd.abc.abcd>+abc_0_ X-ZohoMail-Sender: 188.40.248.158 X-Zoho-Virus-Status: 2 = =3D -----------------------------=3D3D=3D3D---= ------=3D -------------------- abcde abcde abcd abcd TO abcd ab abcdef abcdefg Project: abcde abcdefg Conversation: abcdefghi - abcdef, abcdefghijkl, abcde= abcd abcdefg, =3D Apr 22 &abcde; 11:40 ab abcdef abc a abcd abcdefg abc abcdefg/abcdefghi abcde, ab a abcd joine= =3D a abc abcdefghi ab abc abcdefghijk. ab abcde ab abcdefgh ab abcdef abcdefghijk abcdefg abcdefg (22 abcde F= =3D abcde) ab 20:10, ab abcdefg abcdef 4568. abcdef abcde abcde ab abcdefgh abcdefg ab abcde 19:00 (bcd abcd abcde = =3D abcd abcdefg abcd). a abcde abcde ab abcdef (25 abcde) abcdefghi ab 16:40 from abcdef Scho= =3D abcdefg abcdefg, ab abcdefg abcdef 4567. abcdefghij abcdefg, =3D Apr 13 &abcde; 01:48 ab @abc ab abc abcde abcde a abcdefg/sma= ll=3D abcdefgh ab abcdefghi abcdefghijk abc abcd abc abcd abcde ab abcde - ab = =3D abc abcdefg abcdef ab, ab abcde ab abcde to abcd abcdefg abc abcde abc so= =3D abcde abc to abcde abc abc abcd... abcdefg abcd, =3D Apr 12 &abcde; 09:20 ab ab that=3DC2=3DB4s abcd :-) abcdefghij abcdefg, =3D Apr 12 &abcde; 12:21 ab abcd ab abc :-( a'a abc ab abcdef from 16cd to 18cd. abcdefg abcd, =3D Apr 12 &abcde; 07:49 ab @abcdefghij mehnert: abc abcd abcd, abc a abcdefgh abcde abcd a abcde = =3D to abcde abc abcd abcde, from 16 to 17, abcde abc abcde a abcd abcd ab ne= =3D ab abc ab abc abcdefg; a abcdef a abc abcd ab abcde ab abc 16cd, ab don=3D= C2=3D =3DB4t abcd ab it=3DC2=3DB4s abcdefghijk to abc to ab abcde from abcde, a= b mayb=3D a a abcdefghijk abcdef abc abc abcd abc!?! ab abc abcdefgh a abc abcd for= =3D a abcdef? ab abcdefgh abc abc abcdefg abc, i=3DC2=3DB4ll abcdef abc abc... abcdefghij abcdefg, =3D Apr 11 &abcde; 07:54 ab @abcdefg @abcdefghijkl : a abcd abc ab= c =3D abcdefgh abc abc abcdefg abc abc. abc abcd abcdef abcd to abcde ab abc'll= =3D abcd to abcd abcde... @abcdefg : ab a u= nder=3D abcde abcdefghi, abcd ab abc 16cd abc abc abcd abcdefg abcdefg? abcdefg abcd, =3D Apr 10 &abcde; 10:28 ab abcd to abcdef! a abcdef abcdef abcde ab abcde 16 ab 21:50, abc abcde = =3D abcd i=3DC2=3DB4ll abcde abcdef abc 3 abcd, abc abcd abcd to abcd abc 3 a= bcd =3D abcd, abc abcd abcdef abcdef abc ab abcde 22 ab 20:55 ab, abc abcd ab hea= =3D abcd abcd to abcdef ab abcde 26cd ab 9:35ef from abcdef abcde! abcdefg abcd, =3D Apr 06 &abcde; 08:09 ab abcd abcde abcd:-) abcdefghij abcdefg, =3D Apr 06 &abcde; 12:53 ab abc, abcde ab abcde. a abcd abc abcdefg abc abcde 1bc abcde abc a abc = =3D abc abcd. abc a abcde abcd a abc abc 2 abc abcdefghij. abcdefg abcd, =3D Apr 06 &abcde; 05:46 ab abc abc, ab abcde abcde a abcde abcdef abcdefghi ab abcd abcde?? ab no= =3D abcde abcd i=3DC2=3DB4ll abc a abcdefg abcde, ab abcdefg.. abcdefghi abcdefg abcdefg, ab abc abc ab abcd abcd a abcde abc abcdefgh o= =3D abcd, abcdefgh!! abc i=3DC2=3DB4ll abc abcde ab abc 22 abc abcd, abc abcd= e do=3D n=3DC2=3DB4t abcd to abcde ab abc abcd abcdef abcdefgh i=3DC2=3DB4ll abcd= ef, have=3D n=3DC2=3DB4t abc abcd part, abcd abc abc abc abcd ab abcdef, abcde abcdef= g on=3D abcd part... abcdefg abcdefghij abcdefg, =3D Apr 04 &abcde; 07:15 ab @abcdefghijkl ye=3D a, abc abc abcde abcd. abcd abc to abc ab abc abcdefgh from abcdefghi. abcdefg Garc=3DC3=3DADa-Basteiro, =3D Apr 03 &abcde; 04:53 ab a abcd ab abcdefgh ab abcdef abcde 24cd ab 12:15 (bcdef) abc abcdefg T= =3D abcdef 26cd ab abcd abcde (bcdefg abc abcd... abcdef a abcde). abc, ab abc abcd abc abcde ab abcd abcde? abcdefghi, ab abcde abc abcde h= =3D abcd abc abcdefghi? abc ab abcd! ab abcdef abcdefg, =3D Apr 03 &abcde; 01:45 ab abcdef abc abc abcdefghi abcd! abcd abc ab abcdef details: 22 abcde 9:00 ab (bcd) ab abcde abcdefg 25 abcde 15:45 ab (bcdefghij) from abcde abcdefg abcdefghij abcdefg, =3D Apr 02 &abcde; 11:58 ab abcd abc abcdef, abc may abcde abc a abcdefg abc abc abcdef transporta= =3D abcd. abc ab abcdefghij ab abc abcdefg ab abc ab a abcdefgh abc ab abcdef abc t= =3D ab abcde abcdefgh abcd abcd. abc abcdef abcdefgh abc abcd, abcdefgh/abcd-fghijk abcdef abcdef+abcd fer= =3D abcd. abc abcd a abcdef abcd abcdefgh abc a+a abcd. ab'a abc abcdefg abcde abc abcdefghijk abcd abc may abcd to abcdef around= =3D +ab abcdefgh abcde, ab may abcd abcde to abc a abcdef abcd abcd abc disco= =3D abcd ab abcdefg abc. http://abc.abc.ab/abcde.abc/ab/132832/name/abcdef+Ci= =3D abcdefghij+abcdef+abcdef.... http://abc.abc.ab/abcde.abc/ab/17179/name/abcdef+abcdefghijk.html h=3D ttp://abc.abc.ab/abcde.abc/ab/17178/name/abc+abcdefgh.html abcd abcdefg, =3D Apr 02 &abcde; 10:20 ab abcdefg venue: abc abc abcdefg ab abcd ab ab abc abcdefgh to abc a abcdefg abcd ab th= =3D a abcdefghij. abcdefghi ab abcde ab abcde abcd abc alternative abcdef ab = =3D abcdefg ab abc abcd abcdef abc a abcde ab abcdefg ab ab ab abc'a abcde. S= =3D abcde abc a abcdefghi abcdef a abcde abcde abcdefg abcde abcd abcdef spac= =3D a. abcde abc abcd abcde abcdefghi (bcdefg/abcdefg) ab abcde abcd ab inclu= =3D ding: - abcde - abcde/abcdefghijk - abcde abcde/abcdefg/abcdef abcd abcdef ab abcde abcd a abc ab abcdefghi, abcd abcd abcdefgh ab 'T= =3D ab abcdefg abcd', abc abcdef abcdefgh. ab abcdef abc abcdefgh suggestions= =3D , abcdef abcd abcd! abcdefghi a abcdef ab abcde abcd abc abcde abc ab The= =3D abcdefg abcd, abc abcd abcd ab ab ab abcd! abcd abcdefg, =3D Apr 02 &abcde; 10:11 ab Accommodation: abc ab abcdefg ab http://= maps=3D .abcdef.abc/maps?f=3D3Dq&abc;source=3D3Ds_q&abc;hl=3D3Den&abc;geocode=3D3= D&abc;q=3D3D=3D a... abcdef abc a abc abcdefg a abcd abc abc ab a abcde nearby: h= ttp:=3D //abc.abcdefg.abc/abcde/ab/abcdef-hij-lmnopqrst.html?tab=3D3D1&abc;error_= ur=3D a... a abc'a abcd ab abcdef abcde abcd to abcd ab abc abcd abcde ab another= =3D abcdefgh. ab abcde abc abc abcdefghijk...abcdef abcd abc! :) abcd abcdefg, =3D Apr 02 &abcde; 08:49 ab abcde, abc abcde ab abcdef. abcd abcd abcd ab abc ab abcdefgh ab abcdef? ab abc abcd abcdef/abcde = =3D abcd, abcdef abcdef ab. abcdefg abc abc abc abcdefg ab abcdef 22cd abcde. abc abcdefg abcde st= =3D abc ab abcdefgh 23cd abcd abcdef 24cd (bcdefghij). a abcde ab abcdefgh ab abcde abcdefgh ab 09:00fg ab abcdef 22cd ab Ber= =3D abc abcde abcdefg, abc abcdefghi ab 19:40fg ab abcdef 25cd from abc abcd = =3D abcdefg. abcd abcdefg, =3D Apr 02 &abcde; 08:38 ab ab abc, a'ab abcdefg abcd abcdefghijkl ab ab abc abc abc abc abcdefg regarding= =3D abc abcde abcdefg. abcdef! abc abc abcde ab Conversation: to an= sw=3D ab abc abcdef abcde. abc abc abcd abcde to abcd abcde to abcd a abcde ab abc abcdefghijkl.<= =3D /a> abcd abcdefg, abcdefg abcd, abcdefghij abcdefg, abcdef abcdefg, abc Alber= =3D to Garc=3DC3=3DADa-Basteiro abc abcdefghi to abcd abcdefghijkl, abc abcd ab abcdefgh ab abcdef repli= =3D ab. abcd abcdefgh abcd abcdef to abcd recei= vi=3D ab abcde abcdefghijklm. abc abc abcdef abcd abcdefghijkl abcdefgh abc abcdefg ema= il=3D a. --=-1303811526-598658-22630-1637-1-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --=-1303811526-598658-22630-1637-1-=--