From: Felipe Contreras Date: Sat, 2 Nov 2013 13:55:36 +0000 (+1800) Subject: [PATCH 03/21] vim: use notmuch fields X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ff2c39aee888132e539d990ddfcb6c61823c8675;p=notmuch-archives.git [PATCH 03/21] vim: use notmuch fields --- diff --git a/2e/9ce6b4e0c956f9bcb45fc4285f525bbe6bd2d1 b/2e/9ce6b4e0c956f9bcb45fc4285f525bbe6bd2d1 new file mode 100644 index 000000000..fda1ec94a --- /dev/null +++ b/2e/9ce6b4e0c956f9bcb45fc4285f525bbe6bd2d1 @@ -0,0 +1,89 @@ +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 BAB5E429E29 + for ; Sat, 2 Nov 2013 07:02:49 -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 9W0lnTheLuIc for ; + Sat, 2 Nov 2013 07:02:45 -0700 (PDT) +Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com + [209.85.214.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 53136431FAF + for ; Sat, 2 Nov 2013 07:02:45 -0700 (PDT) +Received: by mail-ob0-f173.google.com with SMTP id gq1so5547601obb.4 + for ; Sat, 02 Nov 2013 07:02:44 -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:in-reply-to:references; + bh=u6DFz4yCguBnpytALdC8aOITH5Lz4dKJJNxlM3eKVeE=; + b=M1m66SC+VGoQVKVsihVuektAxweD2nePUEaYm4vLnD6dRrMllieIiogx1nJXz1AMc6 + SPHAb8LoCy+ooS8YzUsnfCn93/mcTMbZyOXjBtY7Gjs8PuyS+uGxTa6rW6u5O4sQyOwC + H9nlg+cSgFmuJPppnlhPVnDmVn4kDoG9ia0Gbhf8MmiTItBOeQPP1YmB4zKetpfP9Zy8 + 3HJFEEJC0BU0NixQIs+Rz0zbiI0GN8/PY/SfV6TmMdQnjrUL/u6bQqsXo/s9XoFbHytd + h7dZMtcIYLI0JL/u8JNXc4tvnvt2y94GNOonvE2WHw1ltsKnYJSsw0qp61WzRqYgcsO1 + l/Hw== +X-Received: by 10.182.246.39 with SMTP id xt7mr6506526obc.16.1383400964910; + Sat, 02 Nov 2013 07:02:44 -0700 (PDT) +Received: from localhost (187-162-140-241.static.axtel.net. [187.162.140.241]) + by mx.google.com with ESMTPSA id + s14sm24761936oeo.1.2013.11.02.07.02.43 for + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sat, 02 Nov 2013 07:02:44 -0700 (PDT) +From: Felipe Contreras +To: notmuch@notmuchmail.org +Subject: [PATCH 03/21] vim: use notmuch fields +Date: Sat, 2 Nov 2013 07:55:36 -0600 +Message-Id: <1383400554-1832-4-git-send-email-felipe.contreras@gmail.com> +X-Mailer: git-send-email 1.8.4.2+fc1 +In-Reply-To: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com> +References: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com> +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: Sat, 02 Nov 2013 14:02:50 -0000 + +They are better encoded than Ruby's Mail. + +Signed-off-by: Felipe Contreras +--- + vim/notmuch.vim | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/vim/notmuch.vim b/vim/notmuch.vim +index 438fadf..11a7c26 100644 +--- a/vim/notmuch.vim ++++ b/vim/notmuch.vim +@@ -309,9 +309,9 @@ ruby << EOF + nm_m.start = b.count + b << "%s %s (%s)" % [msg['from'], date, msg.tags] + b << "Subject: %s" % [msg['subject']] +- b << "To: %s" % m['to'] +- b << "Cc: %s" % m['cc'] +- b << "Date: %s" % m['date'] ++ b << "To: %s" % msg['to'] ++ b << "Cc: %s" % msg['cc'] ++ b << "Date: %s" % msg['date'] + nm_m.body_start = b.count + b << "--- %s ---" % part.mime_type + part.convert.each_line do |l| +-- +1.8.4.2+fc1 +