From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uFtwA0RFLGDSHAAA0tVLHw (envelope-from ) for ; Tue, 16 Feb 2021 22:20:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gK+aOkNFLGDwZAAAbx9fmQ (envelope-from ) for ; Tue, 16 Feb 2021 22:20:51 +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 D30A61220F for ; Tue, 16 Feb 2021 23:20:49 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5159E1FF0D; Tue, 16 Feb 2021 17:20:41 -0500 (EST) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by mail.notmuchmail.org (Postfix) with ESMTPS id 29B4B1FC00 for ; Tue, 16 Feb 2021 17:20:39 -0500 (EST) Received: by mail-wr1-x431.google.com with SMTP id 7so15247668wrz.0 for ; Tue, 16 Feb 2021 14:20:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RPx2FC4paWtKiifqAC7a44NkhxKwZGqEqRTv8t7hS6c=; b=RMIeLiE5O+YbNflHJgH4+YqV6OSVWzrD5lMP66+d6hHwVKu3C2l/T/2QkxTYQKleXF H+uYm6aOPHL9WTHAjzne2CtGeOpTXC00Ya+QDESmVUeZ37q7yrDqS3eR5sDlhLhrS5k4 IzceU6cb6WLl2ihcae+oWz7CnnYrwvLLtyyZEIJst4KTDfLrod59SxX271h+SF8mVxxL Cx06ZXcWW045/GwN1W3zg2q/fnMkRDeh8CJo21eW/K/r+xgoq3onZxuOEbbzFho/9LRd MFZ+hJkkFVTqrytxQpFeKsUVnevkimlOzEHWa+om1eyYhMG2hLGlQjWx125yUgD5cimN NGUg== 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:mime-version :content-transfer-encoding; bh=RPx2FC4paWtKiifqAC7a44NkhxKwZGqEqRTv8t7hS6c=; b=WHac7Oew/NkaXTGwzJXTkhFwblc9HuHSmzpu0AfA8KFHiEKwL3K59RSybdZkQ5xkO9 B0W6Sd8lJE163nWhy8qEJ67pMhbWEXJRUbhthrguM2eyVhGOO4+qOqFgPUIb69VBRMGJ kRZ2314gS2Z884Q9NAyFHSjCGV0/8APyyeiLDieKS4ln+DcDlfsMI1hD4NLp3kGukwUA ErTvFANYuZFbsx9/1flnuAHZBi+iYaOMlUb4Dq5aftf0ILDKC18E7SuTw97VkiPMgdJy 4JIUTjg2Oy2sSwsY3gb7M0UyaTsu2r0sSHfAtYuIomia2fpWI5tjtMwD3CbPUey76mgq lXxg== X-Gm-Message-State: AOAM533f3Sv3GEdZM5gRDCCfrelU86Y16KiVebToLR7nLwr9oGz0BRym WTwQm5e64cZyKphOZrcNSLqNeGWnfxA75g== X-Google-Smtp-Source: ABdhPJyqkVHaNKQTQGBVmWlLKWIT1iZkIjHd4r8VpN4eft3HKShpK3E7XX9Tn+wgMQdc79hFjU6hJw== X-Received: by 2002:a5d:6803:: with SMTP id w3mr19955663wru.300.1613514034196; Tue, 16 Feb 2021 14:20:34 -0800 (PST) Received: from localhost (pop.92-184-108-122.mobile.abo.orange.fr. [92.184.108.122]) by smtp.gmail.com with ESMTPSA id c22sm256499wrb.91.2021.02.16.14.20.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 14:20:33 -0800 (PST) From: Jules Aguillon To: notmuch@notmuchmail.org Subject: [PATCH] Vim: Fix a deprecated call to the 'mail' gem Date: Tue, 16 Feb 2021 23:20:29 +0100 Message-Id: <20210216222029.4891-1-juloo.dsi@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Message-ID-Hash: SXCUYZBKWRJF2DNFUI6VPK73NGYWZTR7 X-Message-ID-Hash: SXCUYZBKWRJF2DNFUI6VPK73NGYWZTR7 X-MailFrom: juloo.dsi@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: Jules Aguillon 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 X-Migadu-Spam-Score: 0.71 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=RMIeLiE5; 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: D30A61220F X-Spam-Score: 0.71 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6BXXj8Ype04o The Field.new function from the 'mail' gem changed recently (since 2.7.0, Nov 2017) and now prints a message on stdout: > Passing an unparsed header field to Mail::Field.new is deprecated and will be removed in Mail 2.8.0. Use Mail::Field.parse instead. --- NEWS | 5 +++++ vim/notmuch.vim | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 6484567e..f2d2b43a 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,11 @@ Library Fix for memory error in notmuch_database_get_config_list +Vim +--- + +Fix a deprecation warning since the version 2.7.0 of the 'mail' gem. + Notmuch 0.31.2 (2020-11-08) =========================== diff --git a/vim/notmuch.vim b/vim/notmuch.vim index ad8b7c80..332fefee 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -666,7 +666,7 @@ ruby << EOF date = Time.at(e.newest_date).strftime(date_fmt) subject = e.messages.first['subject'] if $mail_installed - subject = Mail::Field.new("Subject: " + subject).to_s + subject = Mail::Field.new("subject", subject).to_s else subject = subject.force_encoding('utf-8') end -- 2.30.0