From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SOuACoy3fGAguAAAgWs5BA (envelope-from ) for ; Mon, 19 Apr 2021 00:49:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uJtNBIy3fGD/OgAAB5/wlQ (envelope-from ) for ; Sun, 18 Apr 2021 22:49:48 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9EEFC1CF92 for ; Mon, 19 Apr 2021 00:49:47 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 7F8C4271B6; Sun, 18 Apr 2021 18:49:16 -0400 (EDT) Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by mail.notmuchmail.org (Postfix) with ESMTPS id 0889A2718F for ; Sun, 18 Apr 2021 18:49:12 -0400 (EDT) Received: by mail-oi1-x234.google.com with SMTP id e25so3775391oii.2 for ; Sun, 18 Apr 2021 15:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=inJtjyw6UD6AsD+dPnH5e4JFALZXOFhHBbqv1XMBO6o=; b=IEmALHxT8JpzCqzmf9kadQO/Mxp0DOoiQ07yghXqGMEtZru0foxjRKSYhaEyXiVl71 PKcUCQ5TsBHDMIZy+INu8/H3Gj9XhfAEuib3s1TIgTFzbSgiHOT3CC0Eulb299y7bjCS zzdZPispm0TOHJWELA0fIRwauKuZ+Frbz/gqYnoMgfAGeQBUbl+gU1Kz0pN+hR5yLb/E 6Cd7AncRj5ZNbSxEhsOFYDVlQxvKjJplD4M9EObSx8Q8S8YCHZnWSXUj05A8UIFyEUr8 ovSQBdhLKLv83IjR9WL+fSYPOjxgnVav12XU8CTL4Ds35VL0j7pBF8ACcH0QZN9Zqhm8 ZkUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=inJtjyw6UD6AsD+dPnH5e4JFALZXOFhHBbqv1XMBO6o=; b=paDg0WYFRjvAIZALvlBOxepTiFKYQ3VGKHRFSRqZRuN3VsCKQXZqFzou6QIfM5B+2v gvZChxH9gxPECU6hQgcviBh+TJKiIrFtoM98LTVn6A14kqVKm/rcjLaVdRpMkLIFownl DuGJ2eUIRLJ1BBDQLEkN5iqOa3awKGUphFU0pz4NOBR3oI6FsWGpbjqSjkFqFuXwRFvr 0mdQ1Z8aH1nU+8sKWbL/5cGZ5OAg5Yql2BIyAFDTIEPbolX7Y2njD00bbLXn2VdeHTru e4LmJqMGjVre5lGEGXkl6d+AhT96SvenoAHD43uggTa8FQN0eNaTMyijfLuLR5jtVYMp 1mnw== X-Gm-Message-State: AOAM532gUYpT9sUu6hnWq37jZJR/i5IqUqYFEU28pboedqDYGiyVpGTW ++GS0kkx6BvK2XdIU+UaPsRSr7526apfJw== X-Google-Smtp-Source: ABdhPJwNE/MtUZfnq/Z8OJwlEVIIokGRCEibWZYXzSHPhHtVKl7OmYvzTFQyt/5VuR/THy+MZP2rJA== X-Received: by 2002:aca:2b18:: with SMTP id i24mr13119974oik.165.1618786151048; Sun, 18 Apr 2021 15:49:11 -0700 (PDT) Received: from localhost ([2806:2f0:4000:bfd0:a2c5:89ff:fe0c:1151]) by smtp.gmail.com with ESMTPSA id h184sm2871941oia.1.2021.04.18.15.49.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Apr 2021 15:49:10 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH 09/13] vim: option to add email address to reply quote Date: Sun, 18 Apr 2021 17:48:47 -0500 Message-Id: <20210418224851.88240-10-felipe.contreras@gmail.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210418224851.88240-1-felipe.contreras@gmail.com> References: <20210418224851.88240-1-felipe.contreras@gmail.com> MIME-Version: 1.0 Message-ID-Hash: 2HROZ35YCICS4G4JPZX3565JK53YKW7O X-Message-ID-Hash: 2HROZ35YCICS4G4JPZX3565JK53YKW7O X-MailFrom: felipe.contreras@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Aaron Borden X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618786187; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CoWWWxRB/CVEMuVzMu5tGAdqLpPYiUjVC2VVnn/XAaQ=; b=OoiXksDl5KFEIK1MPGYTaNTiS492+8NWmVzCIbG7jZ00XKbElAbPJMUd/p6XcIweNR0BYn bWg2tzTc3T39VrFymoHoFJRo0nLcHDyd5xOJzRdf39tGE2TMdm1t929EShqVPed73tjg8J 3NHqV+clSrdAIQDZZdpZV2M/dmCIHcdhwpOCwD5s3lCl2h2cnKSNuTpISMzmxO/nG6e2CZ INQt8qst3CKDZVunpsCaLd9ZZAwKxLlYJfaTG7ISZVMXbq2v8vi3htc6x6Em6NSuFfMKbC u/uZ2l54FXW0ThXFmYP3JjZI/keV4dQsdFl8sYMzp1vebQjIofL8l/sjMmDz3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618786187; a=rsa-sha256; cv=none; b=UjJriEo69ausVe1gGn7MqAlgFGqXWPMC4Lasaf+nBdmcCWtnJJ/FZo5RAsm50wCOlOp0uX YK6R9Awsff8yG7nFoqvJl1Cl2LZ1RAEWnI/X0u6bQXecOOp4Oj4s+sf0qNXrFOCzoQYkpF f7U11H1EbCYPKMsYHFj5D7gYXNPHTzk3hclEdCpwML8GPRsuDAiS8lTKI0ZQqnyWHAmoUI R1GeaOiuCDrHatNL11kj/CBSR6OQTzIEE/nfpj111MWjme6u1WZ74OVN37RoJECcjcxBee 6bpa6oAXbXiOxKWwpYNh27RjXHoGX4nOnLZo34hqtq7hpWLms+M/QMdoWcSe+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=IEmALHxT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=IEmALHxT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 9EEFC1CF92 X-Spam-Score: -0.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: A9ycNrt1WxGM From: Aaron Borden Cleanup-by: Felipe Contreras Signed-off-by: Felipe Contreras --- vim/notmuch.txt | 6 ++++++ vim/notmuch.vim | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/vim/notmuch.txt b/vim/notmuch.txt index c98f2b53..b658020d 100644 --- a/vim/notmuch.txt +++ b/vim/notmuch.txt @@ -133,6 +133,12 @@ You can do the same for the thread view: > let g:notmuch_datetime_format = '%d.%m.%y %H:%M:%S' < + *g:notmuch_reply_quote_format* + +If you want to change the reply quote format to show the email address: +> + let g:notmuch_reply_quote_format = '%s <%s>' +< *g:notmuch_folders_count_threads* diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 7a448467..59914a76 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -56,6 +56,7 @@ let s:notmuch_folders_default = [ let s:notmuch_date_format_default = '%d.%m.%y' let s:notmuch_datetime_format_default = '%d.%m.%y %H:%M:%S' +let s:notmuch_reply_quote_format_default = '%s' let s:notmuch_reader_default = 'mutt -f %s' let s:notmuch_sendmail_default = 'sendmail' let s:notmuch_folders_count_threads_default = 0 @@ -413,6 +414,10 @@ function! s:set_defaults() endif endif + if !exists('g:notmuch_reply_quote_format') + let g:notmuch_reply_quote_format = s:notmuch_reply_quote_format_default + endif + if !exists('g:notmuch_reader') if exists('g:notmuch_rb_reader') let g:notmuch_reader = g:notmuch_rb_reader @@ -593,6 +598,8 @@ ruby << EOF addr = Mail::Address.new(orig[:from].value) name = addr.name name = addr.local + "@" if name.nil? && !addr.local.nil? + name_format = VIM::evaluate('g:notmuch_reply_quote_format') + name = name_format % [name, addr.address] if !addr.address.nil? else name = orig[:from] end -- 2.31.0