From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 5DE106DE1690 for ; Mon, 13 Mar 2017 10:08:09 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.659 X-Spam-Level: X-Spam-Status: No, score=0.659 tagged_above=-999 required=5 tests=[AWL=-0.544, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URI_HEX=1.313] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e29RHBk0grq1 for ; Mon, 13 Mar 2017 10:08:07 -0700 (PDT) X-Greylist: delayed 466 seconds by postgrey-1.35 at arlo; Mon, 13 Mar 2017 10:08:07 PDT Received: from istari.evenmere.org (istari.evenmere.org [136.248.125.194]) by arlo.cworth.org (Postfix) with ESMTP id 900816DE165C for ; Mon, 13 Mar 2017 10:08:07 -0700 (PDT) Received: by istari.evenmere.org (Postfix, from userid 1000) id 9A2BD1E00AE; Mon, 13 Mar 2017 13:00:17 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=evenmere.org; s=default; t=1489424417; bh=daqiEHe0x3jaaivVmwSZAOU3PirlcrQeP7CMw/nSFvU=; h=From:To:Subject:In-Reply-To:References:Date:From; b=RrnImQZ0x6+X5tMrCUo1gaSlYQapL/yYRNt5IC8fuyJgJKAEXKFkxa5hZHFvh3qeA wsd4Wt4nWiyUoFvJ+YdWkTCbuSF7NipLWkIn1DJL6iSIi40omnDo0vTJQlmZExnAOj H7wh2uHqCQnSzaIy4PWD1xe7NZGlRXMGiZc36+JU= From: Brian Sniffen To: bserrao , notmuch@notmuchmail.org Subject: Re: Notmuch Emacs reply format=JSON In-Reply-To: References: <1489141643746-4037188.post@n3.nabble.com> <878tobraw5.fsf@tethera.net> Date: Mon, 13 Mar 2017 13:00:17 -0400 Message-ID: <8760jddsda.fsf@istari.evenmere.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Mar 2017 17:08:09 -0000 --=-=-= Content-Type: text/plain 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 " --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain \n") (insert orig-txt) (insert " --==-=-= Content-Type: text/html \n") (exchange-point-and-mark) (insert "\n --==-=-=-- --=-=-= Content-Type: text/plain 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 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+s198994n4037213h55@n3.nabble.com> wrote: > >> bserrao <[hidden email] >> > 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] >> 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 >> >> . >> 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 --=-=-=--