From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "pd" Newsgroups: gmane.emacs.help Subject: Editing email replies Date: Fri, 30 Aug 2002 03:15:22 GMT Organization: AT&T Broadband Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1030677886 3671 127.0.0.1 (30 Aug 2002 03:24:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 30 Aug 2002 03:24:46 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17kcOo-0000we-00 for ; Fri, 30 Aug 2002 05:24:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17kcQC-00051Y-00; Thu, 29 Aug 2002 23:26:08 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!nntp-server.caltech.edu!attla2!ip.att.net!attbi_feed3!attbi.com!rwcrnsc52.ops.asp.att.net.POSTED!not-for-mail Original-Newsgroups: comp.mail.mh,gnu.emacs.help Original-Lines: 115 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Original-NNTP-Posting-Host: 24.147.208.212 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: rwcrnsc52.ops.asp.att.net 1030677322 24.147.208.212 (Fri, 30 Aug 2002 03:15:22 GMT) Original-NNTP-Posting-Date: Fri, 30 Aug 2002 03:15:22 GMT Original-Xref: nntp.stanford.edu comp.mail.mh:9831 gnu.emacs.help:104313 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:885 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:885 I've been thinking about how to edit replies to MIME messages that use multipart/alternative. For example, suppose the message has a text/plain alternative and a text/html alternative, as shown below. When I insert some plain text in my reply, I'd really like the resulting message to have the two alternatives for the text before my insertion, then my insertion in plain text, and then the two alternatives after my insertion. In other words, I want to go from: multipart/alternative text/plain text/html to multipart/mixed multipart/alternative text/plain text/html text/plain <--- my reply! multipart/alternative text/plain text/html I've shown this in more detail below, but that's the general idea. Essentially, I want to split the alternative part into two, and put my text/plain reply in between them. So, is there a way to do this? I'm planning to use emacs, but I don't know if there's a suitable mode for editing messages that does this. Thanks very much, -pd Detailed example follows. I hope it's correct. ============= Before editing ============= Content-Type: multipart/alternative; boundary="----BAR" ... ------BAR Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This is the first line of the original message. This is the second line of the original message. ------BAR Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit
This is the first line of the original message.
This is the second line of the original message. ------BAR ============= After editing ============= Content-Type: multipart/mixed; boundary="--FOO" --FOO Content-Type: multipart/alternative; boundary="----BAR" ... ------BAR Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This is the first line of the original message. ------BAR Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit
This is the first line of the original message. ------BAR --FOO Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit My insertion between the first and second lines goes here. --FOO Content-Type: multipart/alternative; boundary="----BAR" ------BAR Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This is the second line of the original message. ------BAR Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit
This is the second line of the original message. ------BAR --FOO