From owner-svn-ports-head@freebsd.org Wed Apr 29 07:12:16 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9956D2AA4AD; Wed, 29 Apr 2020 07:12:16 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49BqTD3P5sz3MV4; Wed, 29 Apr 2020 07:12:16 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6F52A182E; Wed, 29 Apr 2020 07:12:16 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03T7CGoM079875; Wed, 29 Apr 2020 07:12:16 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03T7CFp5079873; Wed, 29 Apr 2020 07:12:15 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <202004290712.03T7CFp5079873@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Wed, 29 Apr 2020 07:12:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r533322 - in head/mail/neomutt: . files X-SVN-Group: ports-head X-SVN-Commit-Author: bapt X-SVN-Commit-Paths: in head/mail/neomutt: . files X-SVN-Commit-Revision: 533322 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2020 07:12:16 -0000 Author: bapt Date: Wed Apr 29 07:12:15 2020 New Revision: 533322 URL: https://svnweb.freebsd.org/changeset/ports/533322 Log: Update to 20200424 Add an upstream patch to fix a regression in the display of the sidebar Added: head/mail/neomutt/files/0001-fix-sidebar-use-abbreviated-path-if-possible.patch (contents, props changed) Modified: head/mail/neomutt/Makefile head/mail/neomutt/distinfo Modified: head/mail/neomutt/Makefile ============================================================================== --- head/mail/neomutt/Makefile Wed Apr 29 07:07:56 2020 (r533321) +++ head/mail/neomutt/Makefile Wed Apr 29 07:12:15 2020 (r533322) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= neomutt -PORTVERSION= 20200417 +PORTVERSION= 20200424 CATEGORIES= mail MAINTAINER= bapt@FreeBSD.org @@ -24,7 +24,7 @@ HAS_CONFIGURE= yes OPTIONS_SUB= yes SHEBANG_FILES= contrib/smime_keys -EXTRA_PATCHES= ${FILESDIR}/indent-sidebar.patch:-p1 +EXTRA_PATCHES= ${FILESDIR}/0001-fix-sidebar-use-abbreviated-path-if-possible.patch:-p1 OPTIONS_DEFINE= NLS DOCS SASL IDN FLOCK GPGME NOTMUCH OPTIONS_DEFAULT=SASL TOKYOCABINET NOTMUCH GPGME LMDB NCURSES GSSAPI_BASE Modified: head/mail/neomutt/distinfo ============================================================================== --- head/mail/neomutt/distinfo Wed Apr 29 07:07:56 2020 (r533321) +++ head/mail/neomutt/distinfo Wed Apr 29 07:12:15 2020 (r533322) @@ -1,3 +1,3 @@ -TIMESTAMP = 1587368728 -SHA256 (neomutt-neomutt-20200417_GH0.tar.gz) = 6ed358053ae17694b580f3b5b13eec9f00f5a7320e76fae6fba767607c40cc48 -SIZE (neomutt-neomutt-20200417_GH0.tar.gz) = 3322435 +TIMESTAMP = 1588144159 +SHA256 (neomutt-neomutt-20200424_GH0.tar.gz) = e708d04f057a788041acaced765861bcfbab50f287f8e83620447ec8eb5145df +SIZE (neomutt-neomutt-20200424_GH0.tar.gz) = 3323821 Added: head/mail/neomutt/files/0001-fix-sidebar-use-abbreviated-path-if-possible.patch ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/neomutt/files/0001-fix-sidebar-use-abbreviated-path-if-possible.patch Wed Apr 29 07:12:15 2020 (r533322) @@ -0,0 +1,41 @@ +From 96af299e8c8aff16f4c5e400f79d6edc3792eef5 Mon Sep 17 00:00:00 2001 +From: Austin Ray +Date: Tue, 28 Apr 2020 21:00:57 -0400 +Subject: [PATCH] fix(sidebar): use abbreviated path if possible + +After the refactor in commit d77c704ceb85f34061e1333ab9c8eb5a264a0685, +the sidebar only displays a mailbox's full path/URI except in the case +of 'sidebar_short_path'. The full path/URI is not preferable for end +users. + +What broke during the refactor is how the variable 'display' is updated. +It's initialized to a mailbox's full path/URI and only updated if using +'sidebar_short_path'. However, after initialization, an abbreviation is +calculated to remove the 'folder' or protocol. + +To resolve this issue, if there's an abbreviation, store it in the +'display' variable. + +Fixes #2293 +--- + sidebar.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/sidebar.c b/sidebar.c +index 810146e66..bc680000d 100644 +--- a/sidebar.c ++++ b/sidebar.c +@@ -1101,6 +1101,10 @@ static void draw_sidebar(struct MuttWindow *win, int num_rows, int num_cols, int + if (!abbr) + abbr = abbrev_url(display, m->type); + ++ // Use the abbreviation if we have one. The full path is not preferable. ++ if (abbr) ++ display = abbr; ++ + const char *last_part = abbr; + int depth = calc_path_depth(abbr, C_SidebarDelimChars, &last_part); + +-- +2.26.2 +