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 CFF0D6DE1700 for ; Mon, 13 Mar 2017 04:28:14 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=5 tests=[AWL=0.006, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 CJWhUz-q_iD4 for ; Mon, 13 Mar 2017 04:28:14 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 01BC76DE16FE for ; Mon, 13 Mar 2017 04:28:13 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1cnO8P-0007gf-HD; Mon, 13 Mar 2017 07:27:29 -0400 Received: (nullmailer pid 29635 invoked by uid 1000); Mon, 13 Mar 2017 11:28:07 -0000 From: David Bremner 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 08:28:07 -0300 Message-ID: <8760jd4drs.fsf@tesseract.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain 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 11:28:15 -0000 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. I guess the first step is to test on the command line with % notmuch reply --format=json id:foo and % notmuch reply --format=sexp id:foo where id:foo is some message-id in your notmuch database. In both cases you'll get a kind of data structure that you can process how you like, but I think the strings inside are pretty much the same. If you're trying to modify elisp, the actual function is notmuch-mua-reply I'm afraid I don't have any specific advice about sending HTML. d