From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adam Funk Newsgroups: gmane.emacs.help Subject: How to pipe text or load a file directly into mail-mode? Date: Wed, 3 May 2006 12:29:03 +0100 Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1146656453 2616 80.91.229.2 (3 May 2006 11:40:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 11:40:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 03 13:40:49 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FbFie-0000Vt-Pk for geh-help-gnu-emacs@m.gmane.org; Wed, 03 May 2006 13:40:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbFie-0001pZ-B0 for geh-help-gnu-emacs@m.gmane.org; Wed, 03 May 2006 07:40:36 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Followup-To: gnu.emacs.help Original-Lines: 19 Original-X-Trace: individual.net idT0pAYWRLA1FNM4sGG4gQvOPCDrq4ZsDKAgHpJuYMnjLcE0gD X-Orig-Path: news.ducksburg.com!news User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Xref: shelby.stanford.edu comp.emacs:92087 gnu.emacs.help:139146 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:34769 Archived-At: I'd like the output of a Perl program to end up in an Emacs mail-mode buffer, ready to proofread, edit and then send with C-c C-c. I don't mind whether my program 1. pipes the output to an emacs command, or 2. saves the output in a temp file and opens it with an emacs command. Which is easier for the emacs command to handle (I expect 2)? What command-line arguments to emacs do I need for this to work? Does the program's output (emacs's input) need to be formatted in the normal way for a mail message (with a blank line after the headers) or the way it shows up in the Emacs mail buffer (with "--text follows this line--" after the headers)? Thanks, Adam