From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Editing email replies Date: Fri, 30 Aug 2002 16:34:51 GMT Organization: Genuity, Woburn, MA Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1030729789 6162 127.0.0.1 (30 Aug 2002 17:49:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 30 Aug 2002 17:49:49 +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 17kpu0-0001bH-00 for ; Fri, 30 Aug 2002 19:49:48 +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 17kpvJ-00067e-00; Fri, 30 Aug 2002 13:51:09 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!news.gtei.net!paloalto-snr1.gtei.net.POSTED!not-for-mail Original-Newsgroups: comp.mail.mh,gnu.emacs.help Mail-Copies-To: never X-Newsreader: trn 4.0-test72 (19 April 1999) Originator: barmar@genuity.net (Barry Margolin) Original-Lines: 53 Original-X-Trace: +4EwKKLlPIoo8svwPfolOmQ0Mv2CKfpqqzb/zxekJvbWmc/UAu+PAzI6BVlWS0oK6ptENJ4WxBJG!vzWWzGypO1tJ+RD0DejDJtOWyW7XSlB6yhzTUTjjaEPo0A/sHbDDGvHTkkBL1QlV9+Gb+5mCEfIP!aW6LVzt4EHf0 Original-X-Complaints-To: abuse@gte.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Original-NNTP-Posting-Date: Fri, 30 Aug 2002 16:34:51 GMT Original-Distribution: world Original-Xref: nntp.stanford.edu comp.mail.mh:9835 gnu.emacs.help:104323 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:895 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:895 In article , Peter Davis wrote: > >Barry Margolin writes: >> In article , >> pd wrote: >> >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 >> >> This seems like it would be extremely difficult to automate, because Emacs >> would have to determine which parts of the plain and HTML alternatives >> correspond to each other, so that it can find the correct dividing points. > >I agree that it seems difficult. Yet some e-mail programs do this (or >something like this, I guess). If someone sends me a message with >blue, sans-serif text, I can reply and put comments interspersed with >that text. The resulting message still has the original sender's text >in blue, sans-serif text, and my comments interspersed in Courier (or >some other plain text font). My guess is they're doing the following: Discard the plain text Render the HTML into a buffer Add a quoting prefix to the buffer Let you edit the buffer, word-processor style Turn the buffer back into HTML and plain text alternatives. -- Barry Margolin, barmar@genuity.net Genuity, Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.