all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@glug.org>
Subject: Re: using emavcs to generate format-flowed emails
Date: Wed, 18 May 2005 02:46:13 +0200	[thread overview]
Message-ID: <7eacmt9x9m.fsf@ada2.unipv.it> (raw)
In-Reply-To: slrnd8kh3g.c3n.kcf_nospam_maguire@pc004862.hq.eso.org

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

  reply	other threads:[~2005-05-18  0:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-17 19:22 using emavcs to generate format-flowed emails Kev
2005-05-18  0:46 ` Thien-Thi Nguyen [this message]
2005-05-18  7:59 ` Reiner Steib
2005-05-20 15:06 ` Stefan Monnier

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=7eacmt9x9m.fsf@ada2.unipv.it \
    --to=ttn@glug.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.