Kev <[EMAIL PROTECTED]> 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
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to