From: Felipe Contreras Date: Wed, 18 Apr 2012 12:39:10 +0000 (+0300) Subject: [PATCH v2 0/3] composing patches X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=bbcb402057028f8cf1a77c01aa3e84307179bf03;p=notmuch-archives.git [PATCH v2 0/3] composing patches --- diff --git a/e7/70a439a3671569030af4e1a813f3ff137021a4 b/e7/70a439a3671569030af4e1a813f3ff137021a4 new file mode 100644 index 000000000..9a746ed11 --- /dev/null +++ b/e7/70a439a3671569030af4e1a813f3ff137021a4 @@ -0,0 +1,93 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 4FE2C431FBC + for ; Wed, 18 Apr 2012 05:39:42 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id Fb9+WX9nAZXN for ; + Wed, 18 Apr 2012 05:39:41 -0700 (PDT) +Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com + [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 86763431FAE + for ; Wed, 18 Apr 2012 05:39:41 -0700 (PDT) +Received: by lahc1 with SMTP id c1so5790633lah.26 + for ; Wed, 18 Apr 2012 05:39:40 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer; + bh=024Y0JNzNcY6P1CqEDi2qnglsErBJOS0+dFstgnLSwM=; + b=lJDTsVYorZS1hYR8CIWYECkuJlaiYMg2MD9HyLdx0KCFYNQaNjGmSHEMwa4UyjtDwy + ZzCw+uk5nc5oGG5S1uf6KsycGxe43yDxSmx2yfKakKr+xMVA+5bbgf+MmMjZm7+XmLba + bmviqYyLCOcbwJJDe8gcUusVtebzxRbuvva1DlaF5SqZnZUYV6br8xxSSmuJGjgXc1l5 + oxvJOpljmX4k0SpGZ5w8cjvO9gmrjkf+8Gc7f6wxqy7EuX7jD5jhLqH+yqmup1phCDIn + 8oob7IMKkrqIeC6Vb8W1vl1Sq8gSSc4zuXWIwXLZa4kyghQJE0L2G0crjvHCeNJzZt38 + z3xA== +Received: by 10.152.105.197 with SMTP id go5mr1898984lab.43.1334752779912; + Wed, 18 Apr 2012 05:39:39 -0700 (PDT) +Received: from localhost (85-156-70-103.elisa-mobile.fi. [85.156.70.103]) + by mx.google.com with ESMTPS id mr15sm26189870lab.8.2012.04.18.05.39.38 + (version=TLSv1/SSLv3 cipher=OTHER); + Wed, 18 Apr 2012 05:39:39 -0700 (PDT) +From: Felipe Contreras +To: notmuch@notmuchmail.org +Subject: [PATCH v2 0/3] composing patches +Date: Wed, 18 Apr 2012 15:39:10 +0300 +Message-Id: <1334752753-23970-1-git-send-email-felipe.contreras@gmail.com> +X-Mailer: git-send-email 1.7.10 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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: Wed, 18 Apr 2012 12:39:42 -0000 + +Hi, + +I don't know how it works in gnus, but at least on the vim mode, the output +generated by 'notmuch reply' is not ready to be sent, at least the Message-ID +field is needed, and also is nice to have the User-Agent. + +Besides, in order to avoid creating a new message by hand (possibly fetching +the info from notmuch config), it's more straightforward to have 'notmuch +compose' command. + +In the future 'notmuch compose' might be used to replace 'notmuch reply' and +possily add a forward option too. It might also be possible to add mail aliases +when composing a message, and these aliases might be used while generating the +'notmuch search' output. + +Although we are adding extra fields in notmuch reply, higher layers can just +override them easily. + +Felipe Contreras (3): + Add 'compose' command + reply: add message-id header + reply: add user-agent field + + Makefile.local | 1 + + notmuch-client.h | 3 ++ + notmuch-compose.c | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++ + notmuch-reply.c | 17 ++++++++ + notmuch.c | 5 +++ + 5 files changed, 137 insertions(+) + create mode 100644 notmuch-compose.c + +-- +1.7.10 +