From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/29263 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: [patch] RFC2646, MIME format=flowed support Date: 17 Feb 2000 17:50:53 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: main.gmane.org 1035165963 1738 80.91.224.250 (21 Oct 2002 02:06:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:06:03 +0000 (UTC) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 7CC1DD051E for ; Thu, 17 Feb 2000 11:51:44 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id KAB05574; Thu, 17 Feb 2000 10:51:32 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 17 Feb 2000 10:51:02 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA29275 for ; Thu, 17 Feb 2000 10:50:52 -0600 (CST) Original-Received: from badis.pdc.kth.se (badis.pdc.kth.se [130.237.221.45]) by mailhost.sclp.com (Postfix) with ESMTP id 1DA32D051E for ; Thu, 17 Feb 2000 11:50:56 -0500 (EST) Original-Received: (from jas@localhost) by badis.pdc.kth.se (8.9.3/8.9.3) id RAA03187; Thu, 17 Feb 2000 17:50:54 +0100 X-Authentication-Warning: badis.pdc.kth.se: jas set sender to jas@pdc.kth.se using -f Original-To: ding@gnus.org Original-Lines: 44 User-Agent: Gnus/5.0804 (Gnus v5.8.4) Emacs/20.5 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:29263 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:29263 I've been sitting on this for a while, somewhat hesitant about simply committing it in case that it explodes. Please try it out to see if it works (or not). Anyway, put http://www.pdc.kth.se/~jas/fill-flowed.el in your load-path and apply the patch below and your Gnus should recognize the wonders of RFC2646. For entertainment, I manually encoded this article according to RFC2646. Suggestions welcome, if someone want to rewrite the whole function into readable elisp I'd be very happy. :-) Index: lisp/mm-view.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/mm-view.el,v retrieving revision 5.40 diff -w -u -r5.40 mm-view.el --- lisp/mm-view.el 1999/12/12 17:33:18 5.40 +++ lisp/mm-view.el 2000/02/17 16:37:24 @@ -136,6 +136,14 @@ (charset (mail-content-type-get (mm-handle-type handle) 'charset))) (insert (mm-decode-string text charset)) + (when (and (equal type "plain") + (equal (cdr (assoc 'format (mm-handle-type handle))) + "flowed")) + (save-restriction + (narrow-to-region b (point)) + (goto-char b) + (fill-flowed) + (goto-char (point-max)))) (save-restriction (narrow-to-region b (point)) (set-text-properties (point-min) (point-max) nil)