You might like
[org-mime](http://orgmode.org/worg/org-contrib/org-mime.html) or
`mimedown`:

    ; For writing pretty mail
    (defun mimedown ()
      (interactive)
      (save-excursion
        (message-goto-body)
        (mml-unsecure-message)
        (let* ((sig-point (save-excursion (message-goto-signature) 
(forward-line -1) (point)))
               (orig-txt (buffer-substring-no-properties (point) sig-point)))
          (shell-command-on-region (point) sig-point "/usr/local/bin/pandoc 
--from markdown --to html --smart --standalone" nil t)
          (insert "
\n")
          (insert orig-txt)
          (insert "
At least as seeds for your own work.  Mimedown copes smoothly with `>`
for replies, and was used for this message.  org-mime not so much---it
preserves line breaks, but leaves them as `>` prefixes, rather than
using a blockquote.

-Brian

bserrao <bgser...@gmail.com> writes:

> Well, at work almost everyone uses Outlook (Exchange Server) and send HTML
> mails. I've made a script to convert mail to html before sending, but when
> replying emacs uses de '>' character has quotation and because of it the
> mail gets messed up when i do the conversion.
> From what i've read i've concluded that if using the format=json those HTML
> pieces were handled differently...maybe i'm wrong. I was just trying to
> find a solution/workaround to deal with this.
>
> Thanks, and sorry for my bad english.
>
> Bruno
>
> On Sat, Mar 11, 2017 at 5:17 PM David Bremner-2 [via notmuch] <
> ml-node+s198994n4037213...@n3.nabble.com> wrote:
>
>> bserrao <[hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=4037213&i=0>> writes:
>>
>> > Hello,
>> >
>> > I need some help in changing the default reply format to JSON in
>> > notmuch-emacs.
>> > I've looked in the docs and there's this option:
>> >
>>
>> I'm afraid I don't understand what behaviour you want.  Internally
>> notmuch-emacs uses --format=sexp to communicate with the CLI, but this
>> output contains the same information --format=json.
>>
>> d
>> _______________________________________________
>> notmuch mailing list
>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=4037213&i=1>
>> https://notmuchmail.org/mailman/listinfo/notmuch
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://notmuch.198994.n3.nabble.com/Notmuch-Emacs-reply-format-JSON-tp4037188p4037213.html
>> To unsubscribe from Notmuch Emacs reply format=JSON, click here
>> <http://notmuch.198994.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4037188&code=YmdzZXJyYW9AZ21haWwuY29tfDQwMzcxODh8LTIxMzM3MDk4MTg=>
>> .
>> NAML
>> <http://notmuch.198994.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: 
> http://notmuch.198994.n3.nabble.com/Notmuch-Emacs-reply-format-JSON-tp4037188p4037238.html
> Sent from the notmuch mailing list archive at Nabble.com.
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Reply via email to