From: Simon Josefsson <jas@pdc.kth.se>
Subject: [patch] RFC2646, MIME format=flowed support
Date: 17 Feb 2000 17:50:53 +0100 [thread overview]
Message-ID: <ilu7lg37oya.fsf@badis.pdc.kth.se> (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)
next reply other threads:[~2000-02-17 16:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-17 16:50 Simon Josefsson [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ilu7lg37oya.fsf@badis.pdc.kth.se \
--to=jas@pdc.kth.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).