From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: using emavcs to generate format-flowed emails Date: Wed, 18 May 2005 02:46:13 +0200 Organization: sometimes Message-ID: <7eacmt9x9m.fsf@ada2.unipv.it> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116420345 32181 80.91.229.2 (18 May 2005 12:45:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 May 2005 12:45:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 18 14:45:44 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DYNtH-0001gX-Q5 for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2005 14:43:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYNvh-000451-HZ for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2005 08:45:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!LF.net!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: ada2.unipv.it Original-X-Trace: quimby.gnus.org 1116377171 20205 193.204.44.145 (18 May 2005 00:46:11 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Wed, 18 May 2005 00:46:11 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:cmhoE/i+NA7iWXy1IHVDvN9ZoSo= Original-Xref: shelby.stanford.edu gnu.emacs.help:131332 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26787 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26787 Kev 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