Re: [PATCH v2 0/3] composing patches
authorAdam Wolfe Gordon <awg+notmuch@xvx.ca>
Wed, 18 Apr 2012 17:36:36 +0000 (11:36 +1800)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:34 +0000 (09:46 -0800)
8c/62f94e6f0bb0aa2ae9f82cb959e5b22703ea58 [new file with mode: 0644]

diff --git a/8c/62f94e6f0bb0aa2ae9f82cb959e5b22703ea58 b/8c/62f94e6f0bb0aa2ae9f82cb959e5b22703ea58
new file mode 100644 (file)
index 0000000..fde777a
--- /dev/null
@@ -0,0 +1,118 @@
+Return-Path: <awg@xvx.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5194F431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 10:36:39 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id ikW8f8CctOd4 for <notmuch@notmuchmail.org>;\r
+       Wed, 18 Apr 2012 10:36:38 -0700 (PDT)\r
+Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com\r
+       [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A15C5431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 10:36:38 -0700 (PDT)\r
+Received: by lahc1 with SMTP id c1so6037950lah.26\r
+       for <notmuch@notmuchmail.org>; Wed, 18 Apr 2012 10:36:37 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=mime-version:sender:x-originating-ip:in-reply-to:references:date\r
+       :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
+       :content-transfer-encoding:x-gm-message-state;\r
+       bh=PBLAWRvQ0mlo41cgoo2N7O8+C5lkd/AUJaVkKCAysLg=;\r
+       b=LiP70Qb+86OxuV71VJpZggvayBH7ISvQqXlPjaWVZqJkOBexkuFindUlk5Y17IehEu\r
+       tU+P2DaadYS/VmAhNYw4jpEPvoo9FWkWTLwpKfEY/bi9bt8nhjZmwzPp6SI9hZLKtAEc\r
+       dpl0amHuCItUSOklMs8f5GPPk/grr/Zsokh5z+ZvNnHNTG8630SXpQrjoK9qGIy19fuH\r
+       xiQ1SbxOYtxxfhR5e3f1fem7jWIlp3YfEXy6XYI4mcHczgBR/0NMf5glK68hsrmhrVSh\r
+       s0BFQm2xs0YPEBsSbH/SNvrsk3z3BeyWZwGmS8QO0Umtx+OlFRy0F41SOeBRRe+nTALM\r
+       01BQ==\r
+MIME-Version: 1.0\r
+Received: by 10.112.98.70 with SMTP id eg6mr1518119lbb.13.1334770596938; Wed,\r
+       18 Apr 2012 10:36:36 -0700 (PDT)\r
+Sender: awg@xvx.ca\r
+Received: by 10.112.23.39 with HTTP; Wed, 18 Apr 2012 10:36:36 -0700 (PDT)\r
+X-Originating-IP: [128.221.197.57]\r
+In-Reply-To: <1334752753-23970-1-git-send-email-felipe.contreras@gmail.com>\r
+References: <1334752753-23970-1-git-send-email-felipe.contreras@gmail.com>\r
+Date: Wed, 18 Apr 2012 11:36:36 -0600\r
+X-Google-Sender-Auth: Lai21sVIhadXB4ncuAsYsxGwiA0\r
+Message-ID:\r
+ <CAMoJFUsnpaoug58RUS_oQB9m1mhNjmBVZG5v6EDHkVqG3wX0jg@mail.gmail.com>\r
+Subject: Re: [PATCH v2 0/3] composing patches\r
+From: Adam Wolfe Gordon <awg+notmuch@xvx.ca>\r
+To: Felipe Contreras <felipe.contreras@gmail.com>\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+Content-Transfer-Encoding: quoted-printable\r
+X-Gm-Message-State:\r
+ ALoCoQlRAR+aFFGJd+OZJIw9XMwYImIYNFOpPW8x8t+xzfxpdSW5un4vpDgZKTfKCSIBhMmRZs8f\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 18 Apr 2012 17:36:39 -0000\r
+\r
+Hi Felipe,\r
+\r
+On Wed, Apr 18, 2012 at 06:39, Felipe Contreras\r
+<felipe.contreras@gmail.com> wrote:\r
+> I don't know how it works in gnus, but at least on the vim mode, the outp=\r
+ut\r
+> generated by 'notmuch reply' is not ready to be sent, at least the Messag=\r
+e-ID\r
+> field is needed, and also is nice to have the User-Agent.\r
+\r
+In the emacs interface, the Message-ID header is generated when the\r
+message is sent, so it never shows up in the reply buffer. The\r
+User-Agent header is created by the emacs reply code.\r
+\r
+> Besides, in order to avoid creating a new message by hand (possibly fetch=\r
+ing\r
+> the info from notmuch config), it's more straightforward to have 'notmuch\r
+> compose' command.\r
+>\r
+> In the future 'notmuch compose' might be used to replace 'notmuch reply' =\r
+and\r
+> possily add a forward option too. It might also be possible to add mail a=\r
+liases\r
+> when composing a message, and these aliases might be used while generatin=\r
+g the\r
+> 'notmuch search' output.\r
+\r
+I can see how this functionality is useful, and I like the idea of\r
+consolidating message creation, forwarding, and reply. However, if\r
+this is intended to replace or share code with reply (and I think it\r
+should), it should support all the existing reply formats: default,\r
+json, and headers-only.\r
+\r
+In fact, I think it might make more sense to make this work an\r
+extension of the existing reply code rather than a rewrite.\r
+notmuch-reply.c could become notmuch-compose.c, and provide the\r
+compose command (with flags for creating a reply), and also the reply\r
+command (which would just be an alias to the compose functionality).\r
+\r
+> =A0Makefile.local =A0 =A0| =A0 =A01 +\r
+> =A0notmuch-client.h =A0| =A0 =A03 ++\r
+> =A0notmuch-compose.c | =A0111 +++++++++++++++++++++++++++++++++++++++++++=\r
+++++++++++\r
+> =A0notmuch-reply.c =A0 | =A0 17 ++++++++\r
+> =A0notmuch.c =A0 =A0 =A0 =A0 | =A0 =A05 +++\r
+\r
+Such a big new features should definitely have some tests.\r
+\r
+-- Adam\r