[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using emavcs to generate format-flowed emails
From: |
Thien-Thi Nguyen |
Subject: |
Re: using emavcs to generate format-flowed emails |
Date: |
Wed, 18 May 2005 02:46:13 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Kev <kcf_nospam_maguire@yahoo.com> writes:
> Ideas?
looks like (from a brief skim of rfc2646) two elements distinguish a
format=fixed and a format=flowed text/plain block: (1) specification
in the mime header, and (2) addition of eol whitespace.
i'll leave (1) alone since that requires interaction between pine
and emacs and i'm not familiar w/ pine.
for (2), you can do something like:
(defun add-eol-space ()
(interactive)
(save-excursion
(goto-char (point-min))
(while (< (point) (point-max))
(end-of-line)
(if (or (= 0 (current-column)) ; empty line
(looking-at "\n\\s-")) ; bo(next)l whitespace
(delete-horizontal-space)
(just-one-space))
(forward-line 1))))
this attempts to DTRT for posting code (such as this message) or
other blocks of text that should not be munged. probably requires
some tweaking (ymmv).
thi