From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: a couple of questions about org-mime Date: Sun, 25 Apr 2010 16:21:41 -0600 Message-ID: <87y6gb6umi.fsf@gmail.com> References: <87k4rwzhwz.fsf@columbia.edu> <8739yk31zq.fsf@gmail.com> <87och718zo.fsf@columbia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6AQa-0005Xx-Ns for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 18:35:53 -0400 Received: from [140.186.70.92] (port=53737 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6AQV-0005MW-Vp for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 18:35:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6ACu-0004oF-Ce for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 18:21:45 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:64292) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6ACu-0004o7-4E for emacs-orgmode@gnu.org; Sun, 25 Apr 2010 18:21:44 -0400 Received: by pxi15 with SMTP id 15so1657407pxi.0 for ; Sun, 25 Apr 2010 15:21:43 -0700 (PDT) In-Reply-To: <87och718zo.fsf@columbia.edu> (Xiao-Yong Jin's message of "Sun, 25 Apr 2010 18:07:55 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Xiao-Yong Jin writes: > On Sat, 24 Apr 2010 16:43:53 -0600, Eric Schulte wrote: [...] >> Use the following to change this behavior > >> (setq org-mime-preserve-breaks nil) > >> Perhaps this should be the default setting. I currently have this >> set to true because quoted mail (i.e. lines starting with ">") can >> look very bad with line wrapping. > > I see the problem. Is it possible to detect quoted mail and > enclose it between '#+begin_src' and '#+end_src'? > My personal solution has been to only call org-mime-htmlize on active regions, ensuring that the htmlized text is of my own making and leaving the quoted mail as plain/text. I'm not sure of an existing mailer-independent method of recognizing quoted mail (especially given the variety of different ways of quoting mail "> " "| " etc...). It is probably possible to use mailer (e.g. gnus, WL, etc...) specific functions to notice quoted mail, however that could complicate the org-mime.el code substantially. My gut feeling is that this feature may be more work to implement and maintain than it's worth, but I could be wrong. Thanks -- Eric > > > Xiao-Yong