Gnus development mailing list
 help / color / mirror / Atom feed
* [patch] RFC2646, MIME format=flowed support
@ 2000-02-17 16:50 Simon Josefsson
  2000-02-24 16:56 ` Per Abrahamsen
  0 siblings, 1 reply; 13+ messages in thread
From: Simon Josefsson @ 2000-02-17 16:50 UTC (permalink / raw)


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)




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2000-04-20 23:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-17 16:50 [patch] RFC2646, MIME format=flowed support Simon Josefsson
2000-02-24 16:56 ` Per Abrahamsen
2000-03-11 21:47   ` Simon Josefsson
2000-03-15  8:57     ` Per Abrahamsen
2000-03-15  9:05       ` Hrvoje Niksic
2000-03-15 12:39         ` Eric S. Johansson
2000-03-15 13:39         ` Andi Hechtbauer
2000-03-26 21:48       ` Simon Josefsson
2000-04-20 21:07         ` Lars Magne Ingebrigtsen
2000-04-20 22:03           ` Simon Josefsson
2000-04-20 22:52             ` Lars Magne Ingebrigtsen
2000-04-20 23:17               ` Simon Josefsson
2000-04-20 23:36                 ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).