Article View: comp.mail.mh
Article #2070Re: Editing email replies
From: Barry Margolin
Date: Fri, 30 Aug 2002 16:34
Date: Fri, 30 Aug 2002 16:34
53 lines
3529 bytes
3529 bytes
In article <k7m8uzl3.fsf@bitstream.com>, Peter Davis <pd@world.std.com> wrote: > >Barry Margolin <barmar@genuity.net> writes: >> In article <erBb9.37325$kp.567963@rwcrnsc52.ops.asp.att.net>, >> pd <pd@world.std.com> 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.
Technical Details
Message-ID:
<L8Nb9.18$Hq1.343@paloalto-snr1.gtei.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!news.gtei.net!paloalto-snr1.gtei.net.POSTED!not-for-mailReferences:
<erBb9.37325$kp.567963@rwcrnsc52.ops.asp.att.net> <hGLb9.10$Hq1.301@paloalto-snr1.gtei.net> <k7m8uzl3.fsf@bitstream.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fe14c,ff5a0a095e5814b X-Google-Attributes: gidfe14c,public X-Google-Thread: 103b8b,ff5a0a095e5814b X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 2002-08-30 09:34:51 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!news.gtei.net!paloalto-snr1.gtei.net.POSTED!not-for-mail From: Barry Margolin <barmar@genuity.net> Newsgroups: comp.mail.mh,gnu.emacs.help Subject: Re: Editing email replies References: <erBb9.37325$kp.567963@rwcrnsc52.ops.asp.att.net> <hGLb9.10$Hq1.301@paloalto-snr1.gtei.net> <k7m8uzl3.fsf@bitstream.com> Organization: Genuity, Woburn, MA Mail-Copies-To: never X-Newsreader: trn 4.0-test72 (19 April 1999) Originator: barmar@genuity.net (Barry Margolin) Lines: 53 Message-ID: <L8Nb9.18$Hq1.343@paloalto-snr1.gtei.net> X-Trace: +4EwKKLlPIoo8svwPfolOmQ0Mv2CKfpqqzb/zxekJvbWmc/UAu+PAzI6BVlWS0oK6ptENJ4WxBJG!vzWWzGypO1tJ+RD0DejDJtOWyW7XSlB6yhzTUTjjaEPo0A/sHbDDGvHTkkBL1QlV9+Gb+5mCEfIP!aW6LVzt4EHf0 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 NNTP-Posting-Date: Fri, 30 Aug 2002 16:34:51 GMT Distribution: world Date: Fri, 30 Aug 2002 16:34:51 GMT